/* Lomas de Nirgua - Premium Slate Dark Theme (Bento Layout & Neo-Premium Buttons) */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;800&display=swap');

:root {
    --primary: #2E7D32; /* Forest Green */
    --primary-glow: rgba(46, 125, 50, 0.5);
    --secondary: #FFC107; /* Sun Gold */
    --secondary-glow: rgba(255, 193, 7, 0.5);
    --bg-dark: #0f172a; /* Slate Dark */
    --bg-darker: #020617; /* Slate Darker */
    --text-light: #f8fafc;
    --text-muted: #94a3b8;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

body {
    background-color: var(--bg-darker);
    color: var(--text-light);
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-weight: 800;
    line-height: 1.2;
}

/* --- Neo-Premium Buttons --- */
.btn-primary {
    background: linear-gradient(135deg, var(--primary), #1B5E20);
    color: white;
    padding: 12px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(46, 125, 50, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    display: inline-block;
}
.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(46, 125, 50, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.btn-glow {
    background: linear-gradient(135deg, var(--secondary), #FF8F00);
    color: #1a1a1a;
    padding: 16px 40px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 800;
    font-size: 1.1rem;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    border: 1px solid rgba(255, 255, 255, 0.4);
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(255, 193, 7, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.6);
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.3);
    display: inline-block;
}
.btn-glow:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 30px rgba(255, 193, 7, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.btn-outline {
    background: rgba(255, 255, 255, 0.03);
    color: white;
    padding: 12px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    cursor: pointer;
    display: inline-block;
}
.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.btn-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    margin-top: 15px;
    display: inline-block;
}
.btn-link:hover {
    color: var(--secondary);
    transform: translateX(5px);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    transition: all 0.3s ease;
    background: transparent;
}
.navbar.scrolled {
    background: rgba(2, 6, 23, 0.85);
    padding: 15px 5%;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--glass-border);
}
.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: white;
    text-decoration: none;
}
.nav-links {
    display: flex;
    gap: 30px;
}
.nav-links a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: color 0.3s ease;
}
.nav-links a:hover {
    color: var(--secondary);
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 20px;
    overflow: hidden;
}
.hero-slider {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}
.slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transform: translateX(-100%);
    will-change: transform;
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(2,6,23,0.4) 0%, rgba(2,6,23,0.95) 100%);
    z-index: 1;
}
.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.badge {
    background: linear-gradient(135deg, var(--secondary), #FF8F00);
    color: #1a1a1a;
    border: none;
    padding: 8px 24px;
    border-radius: 20px;
    font-weight: 800;
    font-size: 0.9rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 25px;
    display: inline-block;
    box-shadow: 0 4px 15px var(--secondary-glow);
}

.hero-content h1 {
    font-size: 4.5rem;
    color: white;
    margin-bottom: 20px;
    text-shadow: 0 4px 20px rgba(0,0,0,0.5);
}
.hero-content p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    line-height: 1.6;
}
.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

/* Base Section Styles */
.section-padding {
    padding: 100px 5%;
}
.section-header {
    text-align: center;
    margin-bottom: 60px;
}
.section-header h2 {
    font-size: 2.5rem;
    color: white;
    margin-bottom: 15px;
}
.section-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* --- Bento Grid Layouts --- */
.stats-grid, .cards-grid, .directiva-grid, .prensa-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Base Card Styles */
.stat-card, .service-card, .profile-card, .prensa-card {
    background: var(--bg-dark);
    padding: 40px 30px;
    border-radius: 24px;
    border: 1px solid var(--glass-border);
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

/* Hover Effects for Cards */
.stat-card:hover, .service-card:hover, .profile-card:hover, .prensa-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.05);
    border-color: rgba(46, 125, 50, 0.5);
    background: rgba(15, 23, 42, 0.8);
}

/* Experience Section (Stats) */
.experience {
    background: var(--bg-dark);
}
.stat-card {
    flex: 1 1 250px;
    max-width: 320px; /* Previene estiramiento infinito */
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    align-items: center;
    text-align: center;
}
.stat-card h3 {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 10px;
}
.stat-card p {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-light);
}

/* Services Section */
.services {
    background: var(--bg-darker);
}
.service-card {
    flex: 1 1 300px;
    max-width: 380px; /* Fix the extreme stretching */
}
.card-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    display: inline-block;
    padding: 18px;
    background: linear-gradient(135deg, rgba(46, 125, 50, 0.15), rgba(46, 125, 50, 0.05));
    border-radius: 20px;
    color: var(--primary);
    border: 1px solid rgba(46, 125, 50, 0.2);
    transition: all 0.4s ease;
}
.service-card:hover .card-icon {
    transform: translateY(-5px) scale(1.05);
    background: linear-gradient(135deg, rgba(46, 125, 50, 0.3), rgba(46, 125, 50, 0.1));
    border-color: rgba(46, 125, 50, 0.4);
    box-shadow: 0 10px 20px rgba(46, 125, 50, 0.2);
}
.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: white;
}
.service-card p {
    color: var(--text-muted);
    line-height: 1.6;
}

/* Directiva Section */
.directiva {
    background: var(--bg-dark);
}
.profile-card {
    flex: 1 1 250px;
    max-width: 320px;
    text-align: center;
    align-items: center;
}
.profile-img {
    width: 100px;
    height: 100px;
    background: var(--bg-darker);
    border-radius: 50%;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    border: 2px solid var(--primary);
    transition: all 0.4s ease;
}
.profile-card:hover .profile-img {
    transform: scale(1.1);
    box-shadow: 0 0 20px var(--primary-glow);
}
.profile-card h3 {
    color: white;
    margin-bottom: 5px;
    font-size: 1.3rem;
}
.profile-card p {
    color: var(--secondary);
    font-weight: 600;
}

/* Prensa y Galardones Section */
.prensa {
    background: var(--bg-darker);
}
.prensa-card {
    flex: 1 1 320px;
    max-width: 400px;
}
.prensa-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    transition: all 0.4s ease;
}
.prensa-card:hover .prensa-icon {
    transform: scale(1.1) rotate(5deg);
}
.prensa-card h3 {
    color: white;
    font-size: 1.4rem;
    margin-bottom: 15px;
}
.prensa-card p {
    color: var(--text-muted);
    line-height: 1.6;
    flex-grow: 1;
}

/* Footer */
.footer {
    background: #01040a;
    padding: 60px 5% 30px;
    color: white;
}
.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}
.footer-brand h2 {
    font-size: 2rem;
    margin-bottom: 10px;
    color: white;
}
.footer-brand p {
    color: var(--text-muted);
}
.footer-links {
    display: flex;
    gap: 20px;
}
.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s ease;
}
.footer-links a:hover {
    color: var(--secondary);
}
.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid var(--glass-border);
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(46, 125, 50, 0.4);
    padding: 15px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    z-index: 9999;
    box-shadow: 0 -10px 40px rgba(0,0,0,0.5);
    transform: translateY(150%);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.cookie-banner.show {
    transform: translateY(0);
}
.cookie-banner.hidden {
    display: none;
}
.cookie-content h4 {
    margin-bottom: 8px;
    font-size: 1.15rem;
    color: white;
    display: flex;
    align-items: center;
    gap: 8px;
}
.cookie-content p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
}
.cookie-content a {
    color: var(--secondary);
    text-decoration: none;
    font-weight: 600;
}
.cookie-content a:hover {
    text-decoration: underline;
}
.cookie-actions {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

/* Responsive (Mobile/Tablet) */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    .hero-content h1 {
        font-size: 3rem;
    }
    .hero-buttons {
        flex-direction: column;
    }
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    .cookie-banner {
        flex-direction: column;
        text-align: center;
        padding: 15px;
    }
    .cookie-actions {
        width: 100%;
        justify-content: center;
    }
    /* Touch targets */
    .btn-primary, .btn-glow, .btn-outline {
        width: 100%;
        text-align: center;
    }
}
