/* Premium Light Theme for Asesorías YV */

/* --- DESIGN SYSTEM & VARIABLES --- */
:root {
    --bg-light: #ffffff;       /* Pure white base */
    --bg-section: #f8fafc;     /* Soft slate white */
    --bg-footer: #f1f5f9;      /* Light gray footer background */
    --bg-card: #ffffff;
    --bg-card-hover: #ffffff;
    
    --primary: #0b1a30;        /* Deep Navy Blue for high contrast */
    --primary-light: #152d4e;
    --text-dark: #1e293b;      /* Slate black */
    --text-muted: #475569;     /* Muted slate gray */
    
    --border-glass: rgba(226, 232, 240, 0.8);
    --border-glass-active: rgba(212, 175, 55, 0.5);
    
    /* Gradients */
    --gold-grad: linear-gradient(135deg, #d97706 0%, #b45309 100%);
    --emerald-grad: linear-gradient(135deg, #10b981 0%, #047857 100%);
    --text-grad: linear-gradient(120deg, #0b1a30 0%, #1e293b 60%, #475569 100%);
    
    --accent: #d4af37;         /* Gold Accent */
    --success: #25d366;       /* WhatsApp Green */
    --success-hover: #128c7e;
    
    --font-title: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --border-radius-sm: 8px;
    --border-radius-md: 16px;
    --border-radius-lg: 24px;
    
    /* Soft premium drop shadows */
    --shadow-sm: 0 2px 8px rgba(11, 26, 48, 0.04);
    --shadow-md: 0 10px 25px -5px rgba(11, 26, 48, 0.05), 0 8px 16px -6px rgba(11, 26, 48, 0.03);
    --shadow-lg: 0 20px 40px -10px rgba(11, 26, 48, 0.08), 0 10px 20px -10px rgba(11, 26, 48, 0.04);
    --shadow-xl: 0 30px 60px -15px rgba(11, 26, 48, 0.12);
    
    --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: 0.2s ease;
}

/* --- RESET & BASIC STYLES --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 130px;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

.container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-fast);
}

/* --- GLOW EFFECTS IN BACKGROUND (Very soft pastel) --- */
.ambient-glows {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(140px);
    opacity: 0.06; /* Barely visible soft wash */
    animation: drift 20s infinite alternate ease-in-out;
}

.glow-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.4) 0%, rgba(255,255,255,0) 70%);
    top: -5%;
    right: -10%;
}

.glow-2 {
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.3) 0%, rgba(255,255,255,0) 70%);
    bottom: 20%;
    left: -10%;
    animation-delay: -5s;
}

@keyframes drift {
    0% { transform: translateY(0) scale(1); }
    100% { transform: translateY(30px) scale(1.05); }
}

/* --- HEADER & NAVIGATION --- */
.header {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 48px);
    max-width: 1200px;
    height: 110px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: var(--border-radius-md);
    z-index: 1000;
    display: flex;
    align-items: center;
    transition: var(--transition-smooth);
}

.header.scrolled {
    top: 10px;
    height: 80px;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow-md);
    border-color: rgba(226, 232, 240, 0.9);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 14px;
}

.logo-img {
    height: 82px;
    width: auto;
    object-fit: contain;
    transition: var(--transition-smooth);
}

.header.scrolled .logo-img {
    height: 60px;
}

.logo-text {
    font-family: var(--font-title);
    font-weight: 800;
    font-size: 22px;
    color: var(--primary);
    letter-spacing: -0.5px;
}

.logo-text span {
    color: #6b7280; /* gray - as requested */
}

/* Last word of key headings in gray (brand-consistent, like the logo "YV") */
.gray {
    color: #6b7280;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 16px;
}

.nav-link {
    font-family: var(--font-title);
    font-weight: 600;
    font-size: 15px;
    color: var(--text-muted);
    padding: 8px 16px;
    border-radius: 50px;
    transition: var(--transition-fast);
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
    background-color: rgba(11, 26, 48, 0.05);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--primary);
    cursor: pointer;
    font-size: 24px;
}

/* --- BUTTONS --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    font-family: var(--font-title);
    font-weight: 600;
    font-size: 14px;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.btn-primary {
    background: var(--gold-grad);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(217, 119, 6, 0.2);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(217, 119, 6, 0.35);
}

.btn-primary-dark {
    background-color: var(--primary);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(11, 26, 48, 0.15);
}

.btn-primary-dark:hover {
    transform: translateY(-2px);
    background-color: var(--primary-light);
    box-shadow: 0 6px 20px rgba(11, 26, 48, 0.25);
}

.btn-secondary {
    background: var(--bg-light);
    color: var(--primary);
    border: 1px solid rgba(11, 26, 48, 0.15);
}

.btn-secondary:hover {
    background: rgba(11, 26, 48, 0.02);
    border-color: var(--primary);
    transform: translateY(-2px);
}

.btn-block {
    width: 100%;
}

.badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(11, 26, 48, 0.05);
    border: 1px solid rgba(11, 26, 48, 0.08);
    color: #b45309;
    font-family: var(--font-title);
    font-weight: 700;
    font-size: 12px;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* --- HERO SECTION --- */
.hero {
    position: relative;
    padding: 210px 0 100px 0;
    z-index: 10;
    background-color: var(--bg-light);
}

.hero-container {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    align-items: center;
    gap: 60px;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
}

.hero-content h1 {
    font-family: var(--font-title);
    font-size: 54px;
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -1.5px;
    color: var(--primary);
    background: var(--text-grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content p {
    font-size: 18px;
    color: var(--text-muted);
    max-width: 580px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.visual-image-wrapper {
    position: relative;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    border: 10px solid #ffffff;
    transform: rotate(2deg);
    transition: var(--transition-smooth);
    width: 100%;
    max-width: 440px;
}

.visual-image-wrapper:hover {
    transform: rotate(0deg) scale(1.03);
    box-shadow: 0 40px 80px rgba(11, 26, 48, 0.15);
}

.hero-main-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* --- SERVICES --- */
.services {
    position: relative;
    padding: 100px 0;
    background-color: var(--bg-section);
    z-index: 10;
    border-top: 1px solid rgba(226, 232, 240, 0.8);
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.section-subtitle {
    color: #b45309;
    font-family: var(--font-title);
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.section-header h2 {
    font-family: var(--font-title);
    font-size: 38px;
    font-weight: 800;
    letter-spacing: -1px;
    color: var(--primary);
}

.section-header p {
    color: var(--text-muted);
    font-size: 16px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--bg-card);
    padding: 40px;
    border-radius: var(--border-radius-md);
    border: 1px solid var(--border-glass);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.service-card:hover {
    transform: translateY(-6px);
    border-color: var(--border-glass-active);
    box-shadow: var(--shadow-lg);
}

.service-icon-wrapper {
    width: 56px;
    height: 56px;
    background: rgba(11, 26, 48, 0.03);
    border: 1px solid rgba(11, 26, 48, 0.06);
    color: var(--primary);
    border-radius: var(--border-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

.service-card:hover .service-icon-wrapper {
    background: var(--gold-grad);
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(217, 119, 6, 0.25);
}

.service-icon-wrapper i {
    width: 24px;
    height: 24px;
}

.service-card h3 {
    font-family: var(--font-title);
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
}

.service-card p {
    color: var(--text-muted);
    font-size: 15px;
}

/* --- ABOUT SECTION --- */
.about {
    position: relative;
    padding: 100px 0;
    background-color: var(--bg-light);
    z-index: 10;
}

.about-container {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 72px;
    align-items: center;
}

.about-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.about-content h2 {
    font-family: var(--font-title);
    font-size: 38px;
    font-weight: 800;
    color: var(--primary);
}

.about-content p {
    color: var(--text-muted);
    font-size: 16px;
}

.features-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 10px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 14px;
}

.feature-item i {
    color: #10b981;
    width: 20px;
    height: 20px;
}

.feature-item span {
    font-weight: 600;
    color: var(--primary);
}

.about-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.stat-box {
    background: var(--bg-section);
    border-radius: var(--border-radius-md);
    padding: 44px 30px;
    text-align: center;
    border: 1px solid var(--border-glass);
    transition: var(--transition-smooth);
}

.stat-box:hover {
    border-color: rgba(16, 185, 129, 0.3);
    background: var(--bg-light);
    box-shadow: var(--shadow-md);
}

.stat-number {
    display: block;
    font-family: var(--font-title);
    font-size: 44px;
    font-weight: 800;
    background: var(--emerald-grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 6px;
}

.stat-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* --- CONTACT SECTION --- */
.contact {
    position: relative;
    padding: 100px 0;
    background-color: var(--bg-section);
    z-index: 10;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 60px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-card {
    background: var(--bg-card);
    border-radius: var(--border-radius-md);
    padding: 30px;
    display: flex;
    gap: 24px;
    align-items: center;
    border: 1px solid var(--border-glass);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
}

.contact-card:hover {
    border-color: rgba(11, 26, 48, 0.15);
    box-shadow: var(--shadow-md);
}

.contact-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon.email {
    background: rgba(11, 26, 48, 0.03);
    color: var(--primary);
    border: 1px solid rgba(11, 26, 48, 0.08);
}

.contact-icon.whatsapp {
    background: rgba(37, 211, 102, 0.08);
    color: #15803d;
    border: 1px solid rgba(37, 211, 102, 0.15);
}

.contact-details h3 {
    font-family: var(--font-title);
    font-size: 18px;
    font-weight: 700;
    color: var(--primary);
}

.contact-details a {
    font-weight: 600;
    font-size: 16px;
    color: var(--text-dark);
}

.contact-details a:hover {
    color: #b45309;
}

.contact-details p {
    color: var(--text-muted);
    font-size: 14px;
    margin-top: 2px;
}

.contact-form {
    background: var(--bg-card);
    border-radius: var(--border-radius-md);
    padding: 44px;
    border: 1px solid var(--border-glass);
    box-shadow: var(--shadow-md);
}

.contact-form h3 {
    font-family: var(--font-title);
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 24px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    background: var(--bg-section);
    border-radius: var(--border-radius-sm);
    border: 1px solid rgba(11, 26, 48, 0.12);
    font-family: var(--font-body);
    font-size: 15px;
    color: var(--text-dark);
    transition: var(--transition-fast);
    outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    background: #ffffff;
    border-color: rgba(212, 175, 55, 0.6);
    box-shadow: 0 0 12px rgba(212, 175, 55, 0.15);
}

.form-group select option {
    background: #ffffff;
    color: var(--text-dark);
}

/* --- FOOTER --- */
.footer {
    position: relative;
    background-color: var(--bg-footer);
    color: var(--text-muted);
    padding: 80px 0 30px 0;
    z-index: 10;
    border-top: 1px solid rgba(226, 232, 240, 0.8);
}

.footer-container {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer-brand .logo-img {
    height: 110px;
    width: auto;
    object-fit: contain;
    display: inline-block;
}

.footer-brand .logo-text {
    color: var(--primary);
    font-size: 30px;
}

.footer-brand p {
    font-size: 15px;
    line-height: 1.6;
}

.footer h3 {
    font-family: var(--font-title);
    color: var(--primary);
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 24px;
}

.footer-links ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-info {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-info p {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-info i {
    width: 18px;
    height: 18px;
    color: #b45309;
}

.footer-bottom {
    border-top: 1px solid rgba(11, 26, 48, 0.08);
    padding-top: 30px;
    text-align: center;
    font-size: 14px;
}

/* --- FLOATING WHATSAPP BUTTON --- */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: var(--success);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.3);
    z-index: 999;
    transition: var(--transition-smooth);
    animation: pulse 2s infinite;
}

.whatsapp-float:hover {
    background-color: var(--success-hover);
    transform: scale(1.1);
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.4); }
    70% { box-shadow: 0 0 0 20px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* --- RESPONSIVE MEDIA QUERIES --- */
@media (max-width: 992px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 50px;
    }
    
    .hero-content {
        align-items: center;
    }
    
    .hero-content h1 {
        font-size: 44px;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .hero-visual {
        order: -1;
    }
    
    .visual-image-wrapper {
        transform: none;
    }
    
    .about-container {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    
    .footer-container {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .nav {
        position: fixed;
        top: 130px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 130px);
        background-color: var(--bg-light);
        z-index: 998;
        transition: var(--transition-smooth);
        border-top: 1px solid var(--border-glass);
        overflow-y: auto;
    }

    .header.scrolled .nav {
        top: 96px;
        height: calc(100vh - 96px);
    }

    .nav.open {
        left: 0;
    }

    .nav-list {
        flex-direction: column;
        align-items: center;
        padding: 60px 0;
        gap: 28px;
    }

    .nav-link {
        font-size: 18px;
    }

    /* Keep the phone button visible on mobile, show it inside the opened menu */
    .btn-header {
        display: inline-flex;
    }

    .header-actions {
        gap: 10px;
    }

    .btn-header span,
    .btn-header {
        font-size: 13px;
        padding: 10px 16px;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

/* --- MOBILE-FIRST TUNING (phones) --- */
@media (max-width: 600px) {
    :root {
        scroll-padding-top: 150px;
    }

    .container {
        padding: 0 18px;
    }

    /* Compact fixed header so it doesn't eat half the screen */
    .header {
        top: 10px;
        width: calc(100% - 20px);
        height: 72px;
        border-radius: 14px;
    }

    .header.scrolled {
        height: 64px;
    }

    .logo-img {
        height: 48px;
    }

    .header.scrolled .logo-img {
        height: 40px;
    }

    .logo-text {
        font-size: 17px;
    }

    .btn-header {
        font-size: 12px;
        padding: 9px 12px;
    }

    .btn-header i {
        width: 16px;
        height: 16px;
    }

    /* Hero */
    .hero {
        padding: 130px 0 70px 0;
    }

    .hero-content h1 {
        font-size: 32px;
        letter-spacing: -0.5px;
        line-height: 1.18;
    }

    .hero-content p {
        font-size: 16px;
        max-width: 100%;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
        gap: 12px;
    }

    .hero-actions .btn {
        width: 100%;
    }

    /* Section headers scale down to avoid overflow */
    .section-header {
        margin: 0 auto 40px auto;
    }

    .section-header h2 {
        font-size: 26px;
    }

    .section-header p {
        font-size: 15px;
    }

    .services {
        padding: 64px 0;
    }

    .service-card {
        padding: 28px 22px;
    }

    .service-card h3 {
        font-size: 18px;
    }

    /* Services grid: single column on phones */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .about {
        padding: 64px 0;
    }

    .about-content h2 {
        font-size: 26px;
    }

    .about-stats {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .stat-box {
        padding: 32px 24px;
    }

    .stat-number {
        font-size: 38px;
    }

    /* Contact */
    .contact {
        padding: 64px 0;
    }

    .contact-wrapper {
        gap: 32px;
    }

    .contact-card {
        padding: 22px;
        gap: 16px;
    }

    .contact-form {
        padding: 28px 20px;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 12px 14px;
        font-size: 16px; /* >=16px prevents iOS zoom on focus */
    }

    /* Footer */
    .footer {
        padding: 56px 0 24px 0;
    }

    .footer-container {
        gap: 32px;
    }

    /* Floating WhatsApp: keep clear of content */
    .whatsapp-float {
        bottom: 18px;
        right: 18px;
        width: 54px;
        height: 54px;
    }
}

/* Very small phones */
@media (max-width: 380px) {
    .hero-content h1 {
        font-size: 28px;
    }

    .logo-text {
        font-size: 15px;
    }

    .btn-header {
        padding: 8px 10px;
        font-size: 11px;
    }
}

/* --- SERVICE CARD IMAGE & LINK & REVEAL ANIMATIONS --- */
.service-img-wrapper {
    width: 100%;
    height: 180px;
    border-radius: var(--border-radius-md);
    overflow: hidden;
    margin-bottom: 4px;
}

.service-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform var(--transition-smooth);
}

.service-card:hover .service-img-wrapper img {
    transform: scale(1.06);
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: auto;
    font-family: var(--font-title);
    font-weight: 700;
    font-size: 14px;
    color: var(--primary);
    transition: var(--transition-fast);
}

.service-link i {
    width: 16px;
    height: 16px;
    transition: transform var(--transition-fast);
}

.service-link:hover {
    color: #b45309;
}

.service-link:hover i {
    transform: translateX(4px);
}

.about-cta {
    margin-top: 28px;
    align-self: flex-start;
}

/* Reveal on scroll */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s cubic-bezier(0.16,1,0.3,1),
                transform 0.7s cubic-bezier(0.16,1,0.3,1);
    will-change: opacity, transform;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger children for a nicer cascade */
.services-grid .reveal:nth-child(2) { transition-delay: 0.08s; }
.services-grid .reveal:nth-child(3) { transition-delay: 0.16s; }
.services-grid .reveal:nth-child(4) { transition-delay: 0.24s; }
.services-grid .reveal:nth-child(5) { transition-delay: 0.32s; }

/* Respect users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* --- LEGAL / POLÍTICA DE PRIVACIDAD PAGE --- */
.legal-page {
    padding: 140px 0 80px 0;
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
    min-height: 70vh;
}

.legal-page .container {
    max-width: 820px;
}

.legal-page .section-subtitle {
    display: inline-block;
    color: var(--accent);
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.legal-page h1 {
    font-family: var(--font-title);
    color: var(--primary);
    font-size: 40px;
    line-height: 1.15;
    margin-bottom: 8px;
}

.legal-updated {
    color: var(--gray-text);
    font-size: 14px;
    margin-bottom: 36px;
}

.legal-section {
    margin-bottom: 28px;
}

.legal-section h2 {
    font-family: var(--font-title);
    color: var(--primary);
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid rgba(212, 175, 55, 0.3);
}

.legal-section p {
    font-size: 16px;
    line-height: 1.7;
    color: var(--gray-text);
    margin-bottom: 12px;
}

.legal-section ul {
    list-style: disc;
    padding-left: 22px;
    margin-bottom: 12px;
}

.legal-section li {
    font-size: 16px;
    line-height: 1.7;
    color: var(--gray-text);
    margin-bottom: 6px;
}

.legal-back {
    display: inline-block;
    margin-top: 20px;
}

@media (max-width: 600px) {
    .legal-page {
        padding: 120px 0 60px 0;
    }
    .legal-page h1 {
        font-size: 30px;
    }
    .legal-section h2 {
        font-size: 19px;
    }
}

.cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    max-width: 920px;
    margin: 0 auto;
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 18px;
    background: rgba(11, 26, 48, 0.97);
    backdrop-filter: blur(8px);
    color: #e2e8f0;
    border: 1px solid rgba(212, 175, 55, 0.25);
    border-radius: var(--border-radius-md, 16px);
    padding: 18px 22px;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
    font-family: var(--font-body, 'Outfit', sans-serif);
    animation: cookieSlide 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes cookieSlide {
    from { transform: translateY(120%); opacity: 0; }
    to   { transform: translateY(0); opacity: 1; }
}

.cookie-banner.hidden {
    display: none;
}

.cookie-content {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    flex: 1;
}

.cookie-content i {
    color: var(--accent, #d4af37);
    width: 26px;
    height: 26px;
    flex-shrink: 0;
    margin-top: 2px;
}

.cookie-content p {
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
    color: #cbd5e1;
}

.cookie-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.cookie-actions .btn {
    padding: 10px 20px;
    font-size: 14px;
    white-space: nowrap;
}

.cookie-link {
    color: var(--accent, #d4af37);
    font-size: 13px;
    text-decoration: underline;
    white-space: nowrap;
}

.cookie-link:hover {
    opacity: 0.8;
}

.btn-ghost {
    background: transparent;
    color: #e2e8f0;
    border: 1px solid rgba(226, 232, 240, 0.35);
}

.btn-ghost:hover {
    background: rgba(226, 232, 240, 0.1);
}

/* Mobile: stack vertically */
@media (max-width: 640px) {
    .cookie-banner {
        flex-direction: column;
        align-items: stretch;
        left: 12px;
        right: 12px;
        bottom: 12px;
        padding: 16px;
        gap: 14px;
    }
    .cookie-actions {
        justify-content: space-between;
    }
    .cookie-actions .btn {
        flex: 1;
        text-align: center;
    }
}
