/* ==========================================================================
   GRACE CHURCH CANCÚN - PREMIUM DESIGN SYSTEM (ESTILO ANTIGRAVITY)
   ========================================================================== */

/* 1. IMPORTS & FUENTES */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

/* 2. VARIABLES DEL SISTEMA DE DISEÑO (TRILOGÍA: CLARO / OSCURO / ORO) */
:root {
    /* Colores Fijos */
    --primary: hsl(45, 60%, 51%);      /* Oro Grace */
    --primary-hover: hsl(45, 75%, 60%);/* Oro Resplandeciente */
    --primary-rgb: 201, 163, 58;
    --success: hsl(120, 39%, 54%);
    --error: hsl(0, 79%, 63%);
    
    /* Configuración por defecto: TEMA CLARO */
    --bg: hsl(40, 24%, 97%);           /* Blanco Crema */
    --bg-secondary: hsl(0, 0%, 100%);
    --bg-hero-overlay: linear-gradient(180deg, rgba(12, 13, 18, 0.75) 0%, rgba(12, 13, 18, 0.93) 100%);
    --card-bg: rgba(255, 255, 255, 0.85);
    --card-border: rgba(201, 163, 58, 0.15);
    --navbar-bg: rgba(255, 255, 255, 0.85);
    --text: hsl(222, 47%, 11%);        /* Gris Azulado Oscuro */
    --text-muted: hsl(215, 16%, 47%);
    --shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.06), 0 1px 3px rgba(0, 0, 0, 0.02);
    --shadow-hover: 0 20px 40px -15px rgba(201, 163, 58, 0.15), 0 1px 5px rgba(201, 163, 58, 0.05);
    --input-bg: hsl(40, 15%, 98%);
    --pill-bg: rgba(201, 163, 58, 0.08);
    
    /* Fuentes */
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
    --font-alt: 'Montserrat', sans-serif;
    
    /* Transición Global */
    --transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);

    /* Botones de Control (Alternancia y Hamburguesa) */
    --ctrl-bg: rgba(201, 163, 58, 0.08);             /* Fondo de oro muy suave */
    --ctrl-border: rgba(201, 163, 58, 0.28);          /* Borde de oro sutil */
    --ctrl-color: hsl(45, 60%, 42%);                  /* Iconos y líneas en oro oscuro */
    --ctrl-hover-bg: var(--primary);                  /* Fondo oro completo al pasar el mouse */
    --ctrl-hover-color: #ffffff;                      /* Iconos y líneas blancos al pasar el mouse */
}

/* TEMA OSCURO (Por defecto o activado) */
[data-theme="dark"] {
    --bg: hsl(222, 25%, 8%);           /* Azul Carbón */
    --bg-secondary: hsl(222, 29%, 5%);
    --card-bg: rgba(20, 23, 34, 0.65);
    --card-border: rgba(201, 163, 58, 0.2);
    --navbar-bg: rgba(12, 13, 18, 0.82);
    --text: hsl(210, 40%, 96%);        /* Blanco Grisáceo */
    --text-muted: hsl(215, 16%, 65%);
    --shadow: 0 15px 35px -15px rgba(0, 0, 0, 0.4), 0 1px 5px rgba(0, 0, 0, 0.2);
    --shadow-hover: 0 22px 45px -12px rgba(201, 163, 58, 0.22), 0 1px 6px rgba(201, 163, 58, 0.08);
    --input-bg: hsl(222, 22%, 11%);
    --pill-bg: rgba(201, 163, 58, 0.12);

    /* Botones de Control (Alternancia y Hamburguesa) - Modo Oscuro */
    --ctrl-bg: rgba(201, 163, 58, 0.12);             /* Fondo de oro translúcido */
    --ctrl-border: rgba(201, 163, 58, 0.45);          /* Borde de oro brillante */
    --ctrl-color: var(--primary);                     /* Iconos y líneas en oro brillante */
    --ctrl-hover-bg: var(--primary);                  /* Fondo oro completo al pasar el mouse */
    --ctrl-hover-color: #0c0d12;                      /* Iconos y líneas en azul carbón al pasar el mouse */
}

/* 3. RESET GENERAL & ESTILOS BASE */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    line-height: 1.65;
    overflow-x: hidden;
    transition: background-color 0.5s ease, color 0.5s ease;
}

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

img {
    max-width: 100%;
    display: block;
}

/* Barra de progreso de lectura */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--primary-hover));
    width: 0%;
    z-index: 2000;
    transition: width 0.1s ease;
}

/* Personalización del Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--card-border);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* 4. PANTALLA DE CARGA (PRELOADER LUXURY) */
#loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: transparent;
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: auto;
    transition: visibility 1.0s step-end;
}

#loader.hide {
    visibility: hidden;
    pointer-events: none;
}

/* Sliding Panels (Theater curtain effect) */
.loader-panel {
    position: absolute;
    top: 0;
    height: 100%;
    width: 50%;
    background-color: var(--bg-secondary);
    z-index: 1;
    transition: transform 1.0s cubic-bezier(0.85, 0, 0.15, 1);
}

.loader-panel-left {
    left: 0;
    transform: translateX(0);
    border-right: 1px solid rgba(201, 163, 58, 0.05);
}

.loader-panel-right {
    right: 0;
    transform: translateX(0);
    border-left: 1px solid rgba(201, 163, 58, 0.05);
}

#loader.hide .loader-panel-left {
    transform: translateX(-100%);
}

#loader.hide .loader-panel-right {
    transform: translateX(100%);
}

.loader-container {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 320px;
    padding: 20px;
    text-align: center;
    transition: opacity 0.5s cubic-bezier(0.25, 0.8, 0.25, 1), transform 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

#loader.hide .loader-container {
    opacity: 0;
    transform: scale(0.92);
}

/* Glowing ring behind the logo */
.loader-logo-wrap {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
}

.loader-logo-img {
    height: 85px;
    width: auto;
    z-index: 2;
    animation: loaderPulse 2s infinite ease-in-out;
}

.loader-glow-ring {
    position: absolute;
    width: 115px;
    height: 115px;
    border: 1.5px solid rgba(201, 163, 58, 0.08);
    border-top: 1.5px solid var(--primary);
    border-bottom: 1.5px solid var(--primary);
    border-radius: 50%;
    z-index: 1;
    animation: loaderRingRotate 6s linear infinite;
    opacity: 0.8;
}

.loader-brand {
    font-family: var(--font-alt);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 5px;
    color: var(--text);
    text-transform: uppercase;
    margin-bottom: 25px;
    opacity: 0;
    animation: loaderFadeInText 0.8s ease forwards 0.2s;
    background: linear-gradient(135deg, var(--text) 30%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.loader-progress-wrap {
    width: 100%;
    height: 3px;
    background-color: rgba(201, 163, 58, 0.08);
    border-radius: 6px;
    position: relative;
    margin-bottom: 16px;
}

.loader-progress-bar {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, transparent, var(--primary), var(--primary-hover));
    border-radius: 6px;
    box-shadow: 0 0 10px rgba(201, 163, 58, 0.3);
    transition: width 0.08s linear;
}

/* Spark/glow dot on the progress tip */
.loader-progress-bar::after {
    content: '';
    position: absolute;
    right: -2px;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background-color: #ffffff;
    border-radius: 50%;
    box-shadow: 0 0 8px var(--primary-hover), 0 0 16px var(--primary);
}

.loader-percentage {
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 1px;
}

@keyframes loaderPulse {
    0%, 100% {
        transform: scale(1);
        filter: drop-shadow(0 0 5px rgba(201, 163, 58, 0));
    }
    50% {
        transform: scale(1.05);
        filter: drop-shadow(0 0 20px rgba(201, 163, 58, 0.3));
    }
}

@keyframes loaderRingRotate {
    100% {
        transform: rotate(360deg);
    }
}

@keyframes loaderFadeInText {
    to {
        opacity: 0.95;
        letter-spacing: 6px;
    }
}


/* 5. NAVEGACIÓN PREMIUM (GLASSBAR) */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--navbar-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: var(--shadow);
    border-bottom: 1px solid var(--card-border);
    z-index: 1500;
    transition: var(--transition);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

.navbar.scrolled .nav-container {
    padding: 10px 25px;
}

/* Logo Navbar */
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 1600;
}

.logo img {
    height: 50px;
    width: auto;
    padding-right: 12px;
    border-right: 1.5px solid rgba(201, 163, 58, 0.2); /* Elegant vertical line */
    transition: border-color 0.4s ease, transform 0.4s ease, filter 0.4s ease, padding 0.4s ease, height 0.4s ease;
}

.logo:hover img {
    transform: scale(1.05) rotate(1deg); /* Subtle premium tilt */
    filter: drop-shadow(0 4px 12px rgba(201, 163, 58, 0.45));
    border-color: var(--primary);
}

.navbar.scrolled .logo img {
    height: 42px;
}

.logo span {
    font-family: var(--font-alt);
    font-size: 1.25rem;
    font-weight: 500;
    letter-spacing: 0.8px;
    color: var(--text);
    transition: var(--transition);
}

.logo:hover span {
    text-shadow: 0 0 10px rgba(201, 163, 58, 0.15);
}

.logo:hover span strong {
    color: var(--primary-hover);
    text-shadow: 0 0 15px rgba(201, 163, 58, 0.35);
}

.logo span strong {
    font-weight: 700;
    color: var(--primary);
    transition: var(--transition);
}

@media (max-width: 1100px) and (min-width: 769px) {
    .logo span {
        font-size: 1.1rem;
    }
    .logo img {
        height: 42px;
    }
    .nav-links a {
        padding: 6px 12px;
        font-size: 0.85rem;
    }
}

/* Links Desktop */
.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.04);
    padding: 4px 8px;
    border-radius: 30px;
    transition: var(--transition);
}

[data-theme="dark"] .nav-links {
    background: rgba(255, 255, 255, 0.02);
    border-color: rgba(255, 255, 255, 0.04);
}

.nav-links a {
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text);
    opacity: 0.85;
    position: relative;
    padding: 8px 16px;
    border-radius: 20px;
    z-index: 2;
    border: 1px solid transparent;
    transition: color 0.3s ease, opacity 0.3s ease, background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active-link {
    color: var(--primary);
    opacity: 1;
}

.nav-links a:not(.nav-cta):hover,
.nav-links a:not(.nav-cta).active-link {
    background-color: var(--bg-secondary);
    border-color: var(--card-border);
    box-shadow: var(--shadow);
}

[data-theme="dark"] .nav-links a:not(.nav-cta):hover,
[data-theme="dark"] .nav-links a:not(.nav-cta).active-link {
    background-color: rgba(255, 255, 255, 0.05);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Call to Action Button in Nav */
.nav-cta {
    font-family: var(--font-alt) !important;
    font-size: 0.78rem !important;
    font-weight: 700 !important;
    background-color: var(--primary) !important;
    color: hsl(222, 29%, 5%) !important;
    padding: 8px 16px !important;
    border-radius: 20px !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-left: 8px;
    box-shadow: 0 4px 12px rgba(201, 163, 58, 0.22);
    transition: var(--transition) !important;
}

.nav-cta:hover {
    background-color: var(--primary-hover) !important;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(201, 163, 58, 0.35);
    opacity: 1 !important;
}

/* Selector de Idiomas */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-left: 24px;
    z-index: 1600;
}

.lang-selector {
    position: relative;
    display: inline-block;
    z-index: 1600;
}

.lang-btn {
    background: transparent;
    border: 1px solid var(--card-border);
    color: var(--text);
    padding: 6px 14px;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
    font-family: var(--font-body);
}

.lang-btn:hover,
.lang-selector.active .lang-btn {
    border-color: var(--primary);
    background-color: rgba(201, 163, 58, 0.05);
}

.lang-arrow {
    font-size: 0.6rem;
    color: var(--primary);
    transition: var(--transition);
}

.lang-selector.active .lang-arrow {
    transform: rotate(180deg);
}

.lang-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background-color: var(--bg-secondary);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 6px;
    box-shadow: var(--shadow);
    display: none;
    flex-direction: column;
    gap: 2px;
    min-width: 130px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 1600;
    animation: slideInDropdown 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
}

.lang-dropdown.show {
    display: flex;
}

@keyframes slideInDropdown {
    from { opacity: 0; transform: translateY(-10px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.lang-option {
    background: transparent;
    border: none;
    color: var(--text);
    padding: 8px 12px;
    font-size: 0.85rem;
    font-weight: 500;
    text-align: left;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font-body);
    width: 100%;
}

.lang-option:hover {
    background-color: rgba(201, 163, 58, 0.08);
    color: var(--primary);
}

.lang-option.active {
    background-color: var(--primary);
    color: hsl(222, 29%, 5%);
    font-weight: 600;
}

/* Theme Toggle Button */
.theme-toggle {
    background-color: var(--ctrl-bg);
    border: 1px solid var(--ctrl-border);
    cursor: pointer;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--ctrl-color);
    transition: var(--transition);
    z-index: 1600;
}

.theme-toggle:hover {
    background-color: var(--ctrl-hover-bg);
    border-color: var(--ctrl-hover-bg);
    color: var(--ctrl-hover-color);
    transform: scale(1.05) rotate(15deg);
}

[data-theme="dark"] .theme-icon-light { display: inline; }
[data-theme="dark"] .theme-icon-dark { display: none; }
.theme-icon-light { display: none; }
.theme-icon-dark { display: inline; }

.menu-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid var(--ctrl-border);
    background-color: var(--ctrl-bg);
    cursor: pointer;
    transition: var(--transition);
    z-index: 1600;
}

.menu-btn span {
    display: block;
    width: 20px;
    height: 2px;
    background-color: var(--ctrl-color);
    transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1), width 0.28s ease, background-color 0.4s ease;
    border-radius: 2px;
}

/* Hide the middle line to create a modern 2-line designer menu */
.menu-btn span:nth-child(2) {
    display: none !important;
}

.menu-btn span:nth-child(3) {
    width: 12px;
    align-self: flex-end;
    margin-right: 9px;
}

/* Hover micro-interactions */
.menu-btn:hover {
    border-color: var(--ctrl-hover-bg);
    background-color: var(--ctrl-hover-bg);
    transform: scale(1.05);
}

.menu-btn:hover span {
    background-color: var(--ctrl-hover-color);
}

.menu-btn:hover span:nth-child(3) {
    width: 20px; /* Short line expands smoothly on hover */
}

/* 6. HERO SECTION DE LUJO WITH PARALLAX */
#inicio.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: var(--bg-hero-overlay), url("fondograce.jpg") center/cover no-repeat;
    padding: 0 24px;
    overflow: hidden;
}

.hero-inner {
    max-width: 900px;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-tag {
    font-family: var(--font-alt);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--primary);
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 8px;
}

.hero-tag::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 1px;
    background-color: var(--primary);
}

#inicio h1 {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    color: hsl(0, 0%, 100%);
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 20px;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

#inicio .sub {
    font-family: var(--font-body);
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: hsl(210, 20%, 88%);
    max-width: 700px;
    margin-bottom: 30px;
    line-height: 1.6;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.hero-service {
    font-family: var(--font-alt);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary);
    letter-spacing: 0.5px;
    margin-top: 10px;
    text-transform: uppercase;
}

.hero-date {
    font-size: 1.1rem;
    color: hsl(0, 0%, 100%);
    font-weight: 500;
    margin-bottom: 10px;
}

/* Countdown Widget */
.countdown-container {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin: 25px 0 35px 0;
    width: 100%;
    max-width: 460px;
}

.countdown-box {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 12px;
    flex: 1;
    padding: 12px 6px;
    min-width: 75px;
    text-align: center;
    transition: var(--transition);
}

.countdown-box:hover {
    border-color: var(--primary);
    background: rgba(251, 191, 36, 0.05);
    transform: translateY(-3px);
}

.countdown-num {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
    display: block;
    line-height: 1.2;
}

.countdown-label {
    font-family: var(--font-alt);
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
    margin-top: 4px;
    display: block;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
}

/* Indicador de Deslizamiento del Héroe */
.hero-scroll {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.75rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-family: var(--font-alt);
    z-index: 10;
    pointer-events: none;
}

.scroll-mouse {
    width: 20px;
    height: 32px;
    border: 2px solid rgba(255, 255, 255, 0.6);
    border-radius: 12px;
    margin-bottom: 8px;
    position: relative;
}

.scroll-wheel {
    width: 4px;
    height: 8px;
    background-color: var(--primary);
    border-radius: 2px;
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollAnimation 1.5s infinite;
}

@keyframes scrollAnimation {
    0% { opacity: 1; transform: translate(-50%, 0); }
    100% { opacity: 0; transform: translate(-50%, 10px); }
}

/* 7. BOTONES */
.btn-primary,
.btn-secondary {
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 700;
    padding: 14px 28px;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    outline: none;
    border: none;
}

.btn-primary {
    background-color: var(--primary);
    color: hsl(222, 29%, 5%);
    box-shadow: 0 10px 25px -5px rgba(201, 163, 58, 0.35);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-3px);
    box-shadow: 0 14px 30px -5px rgba(201, 163, 58, 0.45);
}

.btn-secondary {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1.5px solid rgba(255, 255, 255, 0.25);
    color: hsl(0, 0%, 100%);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-3px);
}

/* 8. SECCIONES Y ENCABEZADOS */
section {
    padding: 100px 24px;
    position: relative;
    overflow: hidden;
}

.section-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    max-width: 650px;
    margin: 0 auto 60px auto;
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 3.5vw, 2.75rem);
    color: var(--text);
    font-weight: 700;
    margin-bottom: 12px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--primary);
    margin: 15px auto 0 auto;
    border-radius: 2px;
}

.section-subtitle {
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* 9. TARJETAS (CARDS) GENERALES */
.card {
    background-color: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 24px;
    padding: 35px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary);
}

/* 10. SOBRE NOSOTROS & EQUIPO PASTORAL */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.card-title {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    color: var(--primary);
    margin-bottom: 20px;
    font-weight: 600;
}

.card-text {
    color: var(--text);
    font-size: 0.98rem;
    margin-bottom: 20px;
    opacity: 0.9;
}

/* Píldoras de Valores */
.values-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 15px 0 25px 0;
}

.pill {
    background-color: var(--pill-bg);
    color: var(--primary);
    border: 1px solid rgba(201, 163, 58, 0.25);
    padding: 8px 18px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    font-family: var(--font-alt);
    letter-spacing: 0.5px;
    transition: var(--transition);
}

.pill:hover {
    background-color: var(--primary);
    color: var(--bg-secondary);
    transform: scale(1.05);
}

/* Equipo Pastoral Grid */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
}

.team-card {
    background-color: var(--bg-secondary);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 24px 16px;
    text-align: center;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.team-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: var(--shadow-hover);
}

.team-photo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin: 0 auto 16px auto;
    background-size: cover;
    background-position: center;
    border: 3px solid var(--primary);
    box-shadow: 0 5px 15px rgba(201, 163, 58, 0.2);
    transition: var(--transition);
}

.team-card:hover .team-photo {
    transform: scale(1.08) rotate(3deg);
    box-shadow: 0 8px 20px rgba(201, 163, 58, 0.3);
}

.team-name {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 4px;
}

.team-role {
    font-family: var(--font-alt);
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.team-bio {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* 11. VISIÓN Y MISIÓN (SPLIT CARDS DE LUJO) */
.vision-mision {
    background-color: var(--bg-secondary);
}

.vm-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.vm-card {
    background: linear-gradient(135deg, var(--card-bg), var(--bg));
    border: 1px solid var(--card-border);
    border-radius: 28px;
    padding: 45px;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.vm-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background-color: var(--primary);
    transition: var(--transition);
}

.vm-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary);
}

.vm-card:hover::before {
    width: 8px;
}

.vm-card h3 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--primary);
    margin-bottom: 18px;
    font-weight: 600;
}

.vm-card p {
    color: var(--text);
    font-size: 1.05rem;
    line-height: 1.7;
    opacity: 0.9;
}

/* 12. MINISTERIOS CON SLIDER/CAROUSEL MÓVIL */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.ministerio-card {
    display: flex;
    flex-direction: column;
    padding: 24px;
}

.ministerio-card h3 {
    font-family: var(--font-heading);
    font-size: 1.45rem;
    color: var(--text);
    margin-bottom: 18px;
    font-weight: 600;
    position: relative;
    padding-left: 14px;
}

.ministerio-card h3::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 18px;
    background-color: var(--primary);
    border-radius: 2px;
}

/* Contenedor del Carrusel del Ministerio */
.ministerio-carousel {
    position: relative;
    width: 100%;
    height: 250px;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--card-border);
}

.carousel-track {
    width: 100%;
    height: 100%;
    position: relative;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transform: scale(1.04);
    transition: opacity 0.6s cubic-bezier(0.25, 0.8, 0.25, 1), transform 0.6s ease;
}

.carousel-slide.active {
    opacity: 1;
    transform: scale(1);
}

.carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: rgba(12, 13, 18, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.7rem;
    z-index: 5;
    transition: var(--transition);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.carousel-control:hover {
    background-color: var(--primary);
    color: hsl(222, 29%, 5%);
    border-color: var(--primary);
}

.carousel-prev {
    left: 12px;
}

.carousel-next {
    right: 12px;
}

/* Dots del Carrusel */
.carousel-indicators {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 5;
}

.indicator-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: var(--transition);
}

.indicator-dot.active {
    background-color: var(--primary);
    width: 14px;
    border-radius: 3px;
}

.ministerio-desc {
    font-size: 0.92rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-top: auto;
}

.lista-ministerio {
    list-style: none;
    padding: 0;
    margin-bottom: 15px;
}

.lista-ministerio li {
    font-size: 0.9rem;
    color: var(--text);
    padding: 6px 0;
    position: relative;
    padding-left: 20px;
}

.lista-ministerio li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: bold;
}

/* 13. SERVICIOS Y ACTIVIDADES (ACORDEÓN PREMIUM) */
.services-grid-upgraded {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
}

.service-card {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px 30px;
}

.service-icon {
    font-size: 2.2rem;
    color: var(--primary);
    background-color: var(--pill-bg);
    width: 65px;
    height: 65px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    border: 1px solid rgba(201, 163, 58, 0.2);
    box-shadow: 0 4px 12px rgba(201, 163, 58, 0.1);
    transition: var(--transition);
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
    background-color: var(--primary);
    color: var(--bg-secondary);
}

.service-card h3 {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 12px;
}

.service-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    line-height: 1.5;
}

.service-time {
    font-family: var(--font-alt);
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--primary);
    background-color: var(--pill-bg);
    padding: 6px 14px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: auto;
}

/* Acordeón de Grupos de Estudio */
.study-card {
    align-items: center;
}

.study-toggle {
    background-color: transparent;
    border: 1.5px solid var(--primary);
    color: var(--primary);
    padding: 10px 24px;
    font-size: 0.88rem;
    font-weight: 700;
    border-radius: 30px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
    font-family: var(--font-body);
    margin-top: auto;
}

.study-toggle:hover {
    background-color: var(--primary);
    color: hsl(222, 29%, 5%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(201, 163, 58, 0.25);
}

.study-toggle .arrow {
    font-size: 0.65rem;
    transition: var(--transition);
}

.study-toggle.active .arrow {
    transform: rotate(180deg);
}

.study-dropdown {
    display: none;
    width: 100%;
    margin-top: 15px;
    background-color: var(--input-bg);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 6px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.02);
    overflow: hidden;
    text-align: left;
    animation: slideDownAccordion 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
}

@keyframes slideDownAccordion {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

.study-dropdown a {
    display: block;
    padding: 10px 14px;
    color: var(--text);
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 8px;
    transition: var(--transition);
    font-family: var(--font-body);
    border-left: 0px solid var(--primary);
}

.study-dropdown a:hover {
    background-color: rgba(201, 163, 58, 0.08);
    color: var(--primary);
    padding-left: 18px;
    border-left: 3px solid var(--primary);
}

/* 14. PROYECTOS Y COMUNIDAD */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.project-card {
    padding: 35px;
    display: flex;
    flex-direction: column;
}

.project-tag {
    font-family: var(--font-alt);
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 12px;
}

.project-card h3 {
    font-family: var(--font-heading);
    font-size: 1.45rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 12px;
}

.project-card p {
    font-size: 0.92rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* 15. CONTACTO Y DIRECCIÓN (FLOATING LABELS) */
.contacto-section {
    background-color: var(--bg-secondary);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 40px;
    align-items: stretch;
}

.contact-form-container {
    background-color: var(--bg);
    border: 1px solid var(--card-border);
    border-radius: 24px;
    padding: 40px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.contact-form-container:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-hover);
}

/* Input Animación Floating Label */
.input-group {
    position: relative;
    margin-bottom: 24px;
}

.input-group input,
.input-group textarea {
    width: 100%;
    padding: 16px;
    border-radius: 12px;
    border: 1.5px solid var(--card-border);
    background-color: var(--input-bg);
    color: var(--text);
    font-size: 0.95rem;
    font-family: var(--font-body);
    transition: var(--transition);
    outline: none;
}

.input-group textarea {
    height: 140px;
    resize: none;
}

.input-group label {
    position: absolute;
    top: 18px;
    left: 16px;
    color: var(--text-muted);
    font-size: 0.95rem;
    pointer-events: none;
    transition: var(--transition);
    font-family: var(--font-body);
}

/* Efectos al Enfocar o Rellenar */
.input-group input:focus,
.input-group textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 10px rgba(201, 163, 58, 0.15);
    background-color: var(--bg-secondary);
}

.input-group input:focus ~ label,
.input-group input:not(:placeholder-shown) ~ label,
.input-group textarea:focus ~ label,
.input-group textarea:not(:placeholder-shown) ~ label {
    top: -10px;
    left: 12px;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--primary);
    background-color: var(--bg);
    padding: 2px 8px;
    border-radius: 4px;
    border: 1px solid var(--card-border);
}

/* Validaciones Visuales */
.input-group input:focus:invalid,
.input-group textarea:focus:invalid {
    border-color: var(--error);
}

.input-group input:focus:valid,
.input-group textarea:focus:valid {
    border-color: var(--success);
}

.contact-btn {
    width: 100%;
    border-radius: 12px;
    padding: 16px;
    font-size: 1rem;
}

/* Toast de éxito */
.toast-success {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: hsl(222, 29%, 5%);
    border: 1px solid var(--primary);
    color: #ffffff;
    padding: 16px 25px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    display: none;
    align-items: center;
    gap: 12px;
    z-index: 2000;
    animation: slideInToast 0.4s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
}

@keyframes slideInToast {
    from { opacity: 0; transform: translateY(20px) scale(0.9); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.toast-icon {
    color: var(--primary);
    font-size: 1.25rem;
}

/* Tarjeta de Información e Iframe */
.contact-card {
    padding: 40px;
    display: flex;
    flex-direction: column;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.info-icon {
    font-size: 1.5rem;
    color: var(--primary);
    background-color: var(--pill-bg);
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(201, 163, 58, 0.15);
}

.info-item p {
    font-size: 0.95rem;
    color: var(--text);
}

.info-item strong {
    color: var(--primary);
    display: block;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

/* Map de Google */
.contact-map {
    width: 100%;
    height: 240px;
    border-radius: 16px;
    margin: 15px 0 25px 0;
    border: 1px solid var(--card-border);
    box-shadow: var(--shadow);
    filter: grayscale(20%) contrast(95%);
    transition: var(--transition);
}

.contact-map:hover {
    filter: grayscale(0%) contrast(100%);
    border-color: var(--primary);
}

.contact-actions {
    display: flex;
    gap: 15px;
    margin-top: auto;
    width: 100%;
}

.btn-ghost {
    flex: 1;
    background: transparent;
    border: 1.5px solid var(--primary);
    color: var(--primary);
    padding: 12px;
    font-size: 0.88rem;
    font-weight: 700;
    border-radius: 30px;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    font-family: var(--font-body);
}

.btn-ghost:hover {
    background-color: var(--pill-bg);
    transform: translateY(-2px);
}

.btn-as-arrive {
    flex: 1;
    background-color: var(--primary);
    color: hsl(222, 29%, 5%);
    padding: 12px;
    font-size: 0.88rem;
    font-weight: 700;
    border-radius: 30px;
    transition: var(--transition);
    text-align: center;
    font-family: var(--font-body);
    box-shadow: 0 6px 15px rgba(201, 163, 58, 0.2);
}

.btn-as-arrive:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(201, 163, 58, 0.35);
}

/* 16. FOOTER PREMIUM Y ALTAMENTE DETALLADO */
.footer-premium {
    background-color: var(--bg-secondary);
    padding: 80px 24px 40px 24px;
    border-top: 1px solid var(--card-border);
    color: var(--text);
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.3fr 0.8fr 1.1fr 1.2fr;
    gap: 45px;
    margin-bottom: 50px;
}

.footer-col h4 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 24px;
    position: relative;
}

.footer-col h4::after {
    content: '';
    display: block;
    width: 30px;
    height: 2px;
    background-color: var(--primary);
    margin-top: 8px;
    border-radius: 2px;
}

/* Columna de Identidad */
.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}

.footer-logo-img {
    height: 40px;
    width: auto;
}

.footer-logo h4 {
    margin-bottom: 0;
    font-size: 1.2rem;
    color: var(--text);
}

.footer-logo h4::after {
    display: none;
}

.footer-logo h4 strong {
    color: var(--primary);
}

.footer-description {
    font-size: 0.88rem;
    line-height: 1.6;
    color: var(--text-muted);
}

/* Columna de Links */
.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    font-size: 0.88rem;
    color: var(--text-muted);
    font-weight: 500;
}

.footer-links a:hover {
    color: var(--primary);
    padding-left: 5px;
}

/* Columna Calendario */
.footer-schedule-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.schedule-item {
    border-left: 2px solid var(--primary);
    padding-left: 12px;
}

.schedule-day {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text);
    display: block;
}

.schedule-time {
    font-family: var(--font-alt);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary);
    display: block;
    margin: 2px 0;
}

.schedule-name {
    font-size: 0.8rem;
    color: var(--text-muted);
    display: block;
}

/* Columna Conexión y Redes */
.footer-address {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 20px;
}

.footer-social {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.footer-social a,
.footer-social .social-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background-color: transparent;
    border: none;
    border-radius: 50%;
    transition: var(--transition);
    cursor: pointer;
}

.footer-social a img,
.footer-social .social-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    transition: var(--transition);
}

/* Hover effects with golden glow */
.footer-social a:hover,
.footer-social .social-circle:hover {
    transform: translateY(-4px);
    filter: drop-shadow(0 6px 12px rgba(201, 163, 58, 0.45));
}

.footer-social a:hover img,
.footer-social .social-circle:hover img {
    transform: scale(1.08);
}

.footer-visit {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 16px;
}

/* Línea Final del Footer */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 30px;
    border-top: 1px solid var(--card-border);
    font-size: 0.82rem;
    color: var(--text-muted);
}

.footer-nexora {
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-nexora span {
    font-weight: 500;
}

.nexora-link {
    display: inline-flex;
}

.nexora-icon {
    height: 22px;
    width: auto;
    transition: var(--transition);
}

.nexora-link:hover .nexora-icon {
    transform: translateY(-2px);
}

/* 17. ANIMACIONES DE DESPLAZAMIENTO (SCROLL REVEAL) */
.reveal {
    opacity: 0;
    transform: translateY(35px);
    transition: opacity 1s cubic-bezier(0.25, 1, 0.5, 1), transform 1s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: transform, opacity;
}

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

/* Animaciones específicas si se requiere */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.25, 0.8, 0.25, 1), transform 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* 18. CONSULTAS DE MEDIOS (RESPONSIVIDAD PERFECTA) */
@media (max-width: 1024px) {
    .grid-2 {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .vm-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 35px;
    }
}

@media (max-width: 768px) {
    section {
        padding: 70px 16px;
    }
    
    .logo img {
        height: 40px;
        padding-right: 8px; /* Tighter padding on mobile */
    }
    
    .logo span {
        font-size: 1.05rem;
    }
    
    /* Navbar móvil */
    .menu-btn {
        display: flex;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: #000000 !important; /* Force solid opaque black background in both themes to override desktop specificity */
        background-image: radial-gradient(circle at 80% 20%, rgba(201, 163, 58, 0.08) 0%, transparent 50%) !important;
        flex-direction: column;
        justify-content: center;
        gap: 20px;
        padding: 60px 40px;
        transform: translateY(-100%);
        transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
        border: none !important;
    }

    /* Style overrides for header elements when the fullscreen mobile menu is open (black background) */
    .navbar.menu-open {
        background-color: transparent !important;
        box-shadow: none !important;
        border-bottom: none !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }

    .navbar.menu-open .logo span {
        color: #ffffff !important;
    }

    .navbar.menu-open .lang-btn,
    .navbar.menu-open .theme-toggle {
        color: var(--primary) !important;
        border-color: rgba(201, 163, 58, 0.4) !important;
        background-color: rgba(201, 163, 58, 0.1) !important;
    }

    .navbar.menu-open .menu-btn {
        background-color: var(--primary) !important; /* Solid gold badge when open */
        border-color: var(--primary) !important;
        transform: rotate(180deg); /* Modern spin reveal for the X icon */
        box-shadow: 0 4px 15px rgba(201, 163, 58, 0.3) !important;
    }

    .navbar.menu-open .menu-btn span {
        background-color: #0c0d12 !important; /* Invert to high-contrast dark charcoal lines inside the gold badge */
    }

    .navbar.menu-open .menu-btn:hover {
        background-color: var(--primary-hover) !important;
        transform: rotate(270deg) scale(1.08) !important; /* Additional rotation and scale on hover */
        box-shadow: 0 0 20px rgba(201, 163, 58, 0.65) !important;
    }
    
    .nav-links.active {
        transform: translateY(0);
    }
    
    .nav-links a {
        font-size: 1.45rem;
        width: 100%;
        text-align: center;
        padding: 10px;
        border-radius: 0;
        opacity: 0;
        transform: translateY(-15px);
        transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
        border: none !important;
        background-color: transparent !important;
        box-shadow: none !important;
        color: #ffffff !important; /* Force crisp white text on solid black background */
    }
    
    .nav-links.active a {
        opacity: 0.85;
        transform: translateY(0);
    }
    
    .nav-links.active a:hover,
    .nav-links.active a.active-link {
        opacity: 1;
        color: var(--primary) !important; /* Force gold color when hovered or active */
        background-color: transparent !important;
        border: none !important;
        box-shadow: none !important;
    }
    
    .nav-links.active a:nth-child(2) { transition-delay: 0.1s; }
    .nav-links.active a:nth-child(3) { transition-delay: 0.15s; }
    .nav-links.active a:nth-child(4) { transition-delay: 0.20s; }
    .nav-links.active a:nth-child(5) { transition-delay: 0.25s; }
    .nav-links.active a:nth-child(6) { transition-delay: 0.30s; }
    .nav-links.active a:nth-child(7) { transition-delay: 0.35s; }
    .nav-links.active a:nth-child(8) { transition-delay: 0.40s; }
    
    .nav-cta {
        margin-left: 0 !important;
        margin-top: 15px;
        width: auto !important;
        display: inline-block !important;
        padding: 12px 35px !important;
        font-size: 0.95rem !important;
    }
    
    /* Hamburguesa activa (2 líneas cruzadas en X) */
    .menu-btn.open span:nth-child(1) {
        transform: translateY(3px) rotate(45deg);
    }
    
    .menu-btn.open span:nth-child(3) {
        transform: translateY(-3px) rotate(-45deg);
        width: 20px !important;
    }
    
    .nav-actions {
        margin-left: auto;
        gap: 12px;
    }
    
    .lang-selector {
        margin-left: 0;
        margin-right: 0;
    }
    
    /* Ajustes generales */
    .contact-form-container,
    .contact-card,
    .vm-card,
    .card {
        padding: 25px;
    }
}

@media (max-width: 480px) {
    .logo img {
        height: 36px;
        padding-right: 6px; /* Symmetrical spacing for small displays */
    }
    
    .logo span {
        font-size: 0.95rem;
        letter-spacing: -0.2px;
    }
    
    #inicio.hero {
        padding: 0 16px;
    }
    
    .countdown-container {
        gap: 8px;
    }
    
    .countdown-box {
        min-width: 65px;
        padding: 8px 4px;
    }
    
    .countdown-num {
        font-size: 1.45rem;
    }
    
    .countdown-label {
        font-size: 0.58rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    
    .footer-col h4::after {
        margin: 8px auto 0 auto;
    }
    
    .footer-logo {
        justify-content: center;
    }
    
    .footer-social {
        justify-content: center;
    }
    
    .schedule-item {
        border-left: none;
        border-bottom: 1px solid var(--card-border);
        padding-left: 0;
        padding-bottom: 10px;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
}
