/* =========================================================
   REGISTRO DE FUENTES LOCALES (Identidad TSB)
   ========================================================= */
@font-face {
    font-family: 'Poppins';
    src: url('assets/fonts/poppins-v24-latin-regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Poppins';
    src: url('assets/fonts/poppins-v24-latin-600.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Poppins';
    src: url('assets/fonts/poppins-v24-latin-700.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Poppins';
    src: url('assets/fonts/poppins-v24-latin-800.woff2') format('woff2');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

/* --- VARIABLES BASE (Colores extraídos del Logo) --- */
:root {
    --color-primary: #343438; 
    --color-accent: #007A33; 
    --color-accent-light: #95C11F; 
    --color-text: #4B5563;
    --color-bg-light: #F6EFE7; 
    --color-white: #FFFFFF;
    
    --font-main: 'Poppins', sans-serif; 
    
    --transition: all 0.3s ease;
}

/* --- RESET & GLOBAL --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    color: var(--color-text);
    background-color: var(--color-white);
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.text-center { text-align: center; }
.text-white { color: var(--color-white) !important; }

/* --- BOTONES --- */
.btn-primary, .btn-primary-small, .btn-outline {
    display: inline-block;
    font-weight: 600;
    border-radius: 4px;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-white);
    padding: 16px 32px;
    font-size: 1rem;
}

.btn-primary:hover {
    background-color: var(--color-accent);
    transform: translateY(-2px);
}

.btn-primary-small {
    background-color: var(--color-accent);
    color: var(--color-white);
    padding: 10px 20px;
    font-size: 0.9rem;
    margin-left: 20px;
}

.btn-primary-small:hover {
    background-color: var(--color-accent-light);
}

.btn-block {
    width: 100%;
}

/* --- TÍTULOS DE SECCIÓN MÁS GRANDES Y ELEGANTES --- */
.section-title {
    font-size: 3rem; /* ¡Más impacto visual! */
    line-height: 1.2;
    color: var(--color-primary);
    font-weight: 800;
    margin-bottom: 25px;
    /* Se quitó el text-transform uppercase para que se vea como en tu imagen */
}

.section-description {
    font-size: 1.15rem; /* Un poco más grande para leer fácil */
    margin-bottom: 40px;
    color: var(--color-text);
}

@media (max-width: 768px) {
    .section-title { font-size: 2.2rem; }
}


/* --- NAVEGACIÓN --- */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: transparent !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    z-index: 1000;
    transition: all 0.4s ease !important;
    padding: 25px 0 !important; /* Más espacio arriba para respirar */
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Esta clase se activará con JS cuando hagas scroll */
.navbar.navbar-scrolled {
    background: rgba(255, 255, 255, 0.85) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05) !important;
    padding: 15px 0 !important; /* Se encoge elegantemente al bajar */
}

/* --- TAMAÑO, CENTRADO Y RESPLANDOR DEL LOGO --- */
.logo a {
    display: flex;
    align-items: center;
}

.main-logo {
    height: 70px; 
    width: auto;
    object-fit: contain; 
    transition: all 0.3s ease;
}

/* EL TOQUE NINJA: Un resplandor blanco difuminado SOLO cuando está sobre el video */
.navbar:not(.navbar-scrolled) .main-logo {
    filter: drop-shadow(0px 0px 12px rgba(255, 255, 255, 0.85));
}

/* Cuando hacemos scroll y el menú se vuelve blanco */
.navbar-scrolled .main-logo {
    height: 55px; /* Se achica */
    filter: none; /* Le quitamos el resplandor porque el fondo ya es blanco */
}

@media (max-width: 768px) {
    .main-logo {
        height: 50px;
    }
}

.nav-links {
    display: flex;
    align-items: center;
}

.nav-links a:not(.btn-primary-small) {
    text-decoration: none;
    color: var(--color-primary);
    font-weight: 600;
    margin-left: 30px;
    transition: var(--transition);
    font-size: 0.95rem;
}

/* El texto se hace blanco en la parte superior porque es transparente sobre el video */
.navbar:not(.navbar-scrolled) .nav-links a:not(.btn-primary-small) {
    color: var(--color-white);
    text-shadow: 0 2px 5px rgba(0,0,0,0.5);
}

.nav-links a:not(.btn-primary-small):hover {
    color: var(--color-accent);
}

@media (max-width: 768px) {
    .nav-links { display: none; }
}


/* --- HERO SLIDER SECTION --- */
.hero-slider {
    position: relative;
    height: 100vh;
    width: 100%;
    overflow: hidden;
    background-color: #1F1F22; 
}

.slide {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1s ease-in-out, visibility 1s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 1;
}

.hero-video {
    position: absolute;
    top: 0; left: 0; 
    width: 100%; height: 100%;
    object-fit: cover;
    z-index: 1;
}

.video-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.55); 
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 1000px;
    padding: 0 20px;
    color: var(--color-white);
    /* ¡ELIMINAMOS EL TRANSFORM Y LA TRANSICIÓN QUE LO HACÍAN BRINCAR! */
}

/* IMPORTANTE: Borramos la regla ".slide.active .hero-content" que teníamos antes.
   Ya no la necesitas porque el texto se quedará completamente quieto. */

/* Aplicamos el mismo diseño al H1 y al H2 disfrazado de H1 */
.hero-content h1, .hero-content .h1-style {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.1;
    letter-spacing: -1.5px;
    text-shadow: 0 4px 20px rgba(0,0,0,0.5);
    color: var(--color-white);
}

@media (max-width: 768px) {
    .hero-content h1, .hero-content .h1-style { font-size: 2.5rem; }
}

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 40px;
    font-weight: 400;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

/* Controles del Slider (Puntitos) */
.slider-controls {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 15px;
}

.slide-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.4);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.slide-dot.active {
    background-color: var(--color-accent-light);
    transform: scale(1.3);
}

@media (max-width: 768px) {
    .hero-content h1 { font-size: 2.5rem; }
    .hero-content p { font-size: 1.1rem; }
}

/* =========================================================
   VENTANAS DE LUJO (Tarjetas de Servicios con Video)
   ========================================================= */
.smart-services-section {
    background-color: var(--color-white);
    padding: 100px 0;
}

.services-container {
    display: flex;
    flex-direction: column;
    gap: 60px;
}

@media (min-width: 992px) {
    .services-container {
        flex-direction: row;
        align-items: flex-start;
        gap: 5%; /* Separación perfecta */
    }
    .services-intro { 
        flex: 0 0 40%; /* Un poco más de espacio para el texto */
        position: sticky;
        top: 120px;
    }
    .services-grid { flex: 0 0 55%; }
}

.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px; 
}

@media (min-width: 768px) {
    .services-grid { grid-template-columns: repeat(2, 1fr); }
}

.luxury-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    height: 420px; /* Tarjetas más altas e imponentes */
    display: flex;
    align-items: flex-end; 
    padding: 30px;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    background: #000;
    border: none;
    transform: translateZ(0); 
}

.card-video-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    object-fit: cover;
    z-index: 0;
    transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.card-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.3) 50%, rgba(0,0,0,0) 100%);
    z-index: 1;
    transition: background 0.5s ease;
}

.luxury-card .card-content {
    position: relative;
    z-index: 2;
    transform: translateY(70px); 
    transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.luxury-card .card-title {
    color: #ffffff;
    font-size: 1.8rem; /* Más grande en los videos */
    margin-bottom: 15px;
    font-weight: 700;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
    font-family: var(--font-main);
}

.luxury-card .card-text {
    color: #e5e7eb;
    font-size: 0.95rem;
    line-height: 1.6;
    opacity: 0; 
    transition: opacity 0.5s ease 0.1s; 
}

.luxury-card:hover .card-video-bg {
    transform: scale(1.08); 
}

.luxury-card:hover .card-overlay {
    background: linear-gradient(to top, rgba(0,122,51,0.95) 0%, rgba(0,0,0,0.5) 60%, rgba(0,0,0,0.1) 100%);
}

.luxury-card:hover .card-content {
    transform: translateY(0); 
}

.luxury-card:hover .card-text {
    opacity: 1; 
}

/* =========================================================================
   NUESTRO PROCESO (Cuadrícula Perfecta 3x2 con CSS Grid y Hover Nivel Dios)
   ========================================================================= */

.process-section {
    padding: 80px 0;
    background-color: #ffffff;
}

.process-grid-modern {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.process-card {
    background: #ffffff;
    border-radius: 16px; 
    padding: 40px 30px 30px 30px;
    text-align: center;
    position: relative;
    overflow: hidden;
    z-index: 1;
    
    border: 1px solid #E5E7EB; 
    box-shadow: 0 4px 15px rgba(0,0,0,0.03); 
    transition: all 0.5s cubic-bezier(0.2, 0.8, 0.2, 1); 
}

.process-card::before {
    content: '';
    position: absolute;
    top: 100%; 
    left: 0; right: 0; height: 100%;
    background: linear-gradient(135deg, #007A33 0%, #034b21 100%); 
    z-index: -1;
    transition: top 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.process-card:hover {
    transform: translateY(-12px); 
    box-shadow: 0 30px 60px rgba(0, 122, 51, 0.3); 
    border-color: transparent; 
}

.process-card:hover::before {
    top: 0; 
}

.process-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px; 
}

.process-icon svg {
    width: 65px; height: 65px; 
    color: #007a33; 
    transition: all 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.process-card:hover .process-icon svg {
    color: #95C11F; 
    transform: scale(1.15) translateY(-5px); 
    filter: drop-shadow(0 10px 15px rgba(148, 193, 31, 0.5)); 
}

.process-card h4 {
    font-size: 1.25rem; color: #1f2937; margin-bottom: 12px; font-weight: 800; transition: color 0.4s ease;
}

.process-card p {
    font-size: 0.95rem; color: #4b5563; line-height: 1.6; transition: color 0.4s ease;
}

.process-card:hover h4,
.process-card:hover p {
    color: #ffffff; 
}

/* --- BOTÓN DE AUDIO MÁGICO --- */
.audio-btn {
    display: inline-flex; align-items: center; gap: 12px;
    margin-top: 25px; padding: 6px 20px 6px 6px; 
    background: #f3f4f6; color: #1f2937;
    border: 1px solid #e5e7eb; border-radius: 50px;
    font-size: 0.85rem; font-weight: 700; cursor: pointer;
    font-family: var(--font-main); transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.process-card:hover .audio-btn {
    background: rgba(255, 255, 255, 0.1); color: #ffffff;
    border-color: rgba(255, 255, 255, 0.3); backdrop-filter: blur(5px);
}

.process-card:hover .audio-btn:hover {
    background: #95C11F; color: #007A33; border-color: #95C11F; transform: scale(1.05);
}

.process-card:hover .audio-btn .audio-icon-wrapper {
    background-color: #95C11F; box-shadow: 0 2px 10px rgba(148, 193, 31, 0.4);
}

.process-card:hover .audio-btn:hover .audio-icon-wrapper { background-color: #ffffff; }
.process-card:hover .audio-btn:hover .audio-icon { border-color: transparent transparent transparent #007A33; }

.audio-icon-wrapper {
    width: 32px; height: 32px; background-color: #007A33; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; transition: all 0.3s ease;
}

.audio-icon {
    width: 0; height: 0; border-style: solid; border-width: 6px 0 6px 10px;
    border-color: transparent transparent transparent #ffffff; margin-left: 3px; transition: all 0.2s ease;
}

.audio-btn.playing {
    background: #95C11F !important; color: #007A33 !important; border-color: #95C11F !important;
    box-shadow: 0 0 0 4px rgba(148, 193, 31, 0.3) !important; transform: scale(1.05);
}

.audio-btn.playing .audio-icon-wrapper { background-color: #ffffff !important; }
.audio-btn.playing .audio-icon { border-width: 0; width: 10px; height: 10px; background-color: #007A33; margin-left: 0; }

@media (max-width: 992px) {
    .process-grid-modern { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .process-grid-modern { grid-template-columns: 1fr; }
    .process-card { padding: 30px 20px 20px 20px; }
    .process-icon svg { width: 55px; height: 55px; }
}

/* Botón de audio estilo cristal para las tarjetas de video */
.luxury-card .glass-audio {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(5px);
    margin-top: 15px;
}
.luxury-card .glass-audio:hover, .luxury-card .glass-audio.playing {
    background: var(--color-accent-light) !important;
    color: var(--color-primary) !important;
    border-color: var(--color-accent-light) !important;
}
/* =========================================================
   SECCIÓN DE CONTACTO Y MAPA REAL (DISEÑO PREMIUM OSCURO)
   ========================================================= */
.contact-section {
    background-color: #111112; 
    padding: 100px 0;
    color: #ffffff;
}

/* La magia para que queden uno al lado del otro */
.contact-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 50px;
    align-items: start;
}

@media (min-width: 992px) {
    .contact-container {
        grid-template-columns: 1.1fr 0.9fr; /* Mapa un poco más ancho que el form */
        gap: 60px;
    }
}

.contact-info-block .section-title {
    font-size: 2.5rem;
    margin-bottom: 15px;
    text-align: left;
}

.contact-subtitle {
    color: #9CA3AF;
    font-size: 1.1rem;
    margin-bottom: 35px;
}

/* Contenedor del Mapa */
.map-wrapper {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #27272A;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.map-wrapper iframe {
    display: block;
    width: 100%;
    min-height: 420px; /* Igualamos la altura con el formulario */
}

/* Formulario de Alta Gama (Fondo oscuro) */
.contact-form-wrapper {
    background: #1F1F22;
    padding: 40px;
    border-radius: 16px;
    border: 1px solid #27272A;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.form-title {
    font-size: 1.75rem;
    color: #ffffff;
    margin-bottom: 8px;
}

.form-subtitle {
    color: #9CA3AF;
    font-size: 0.95rem;
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: left;
}

.form-group label {
    color: #E5E7EB;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Inputs oscuros estilo corporativo */
.form-group input, 
.form-group select, 
.form-group textarea {
    background: #111112;
    border: 1px solid #3F3F46;
    color: #ffffff;
    padding: 14px 16px;
    border-radius: 8px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    outline: none;
    width: 100%;
    max-width: 100%; /* Evita que crezca más allá de su contenedor */
    font-family: var(--font-main);
}

/* Efecto focus (¡No lo perdamos!) */
.form-group input:focus, 
.form-group select:focus, 
.form-group textarea:focus {
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.15);
}

/* Regla específica para que el select no se desborde */
.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%239CA3AF'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 16px;
    
    /* MAGIA ANTI-DESBORDAMIENTO */
    text-overflow: ellipsis; /* Pone "..." si el texto es muy largo */
    white-space: nowrap;     /* Evita que el texto intente hacer doble línea */
    overflow: hidden;        /* Oculta lo que se salga de la caja */
    padding-right: 40px;     /* Deja espacio para la flechita */
}

/* Opciones del menú desplegable oscuras */
.form-group select option {
    background-color: #1F1F22;
    color: #ffffff;
}

/* =========================================================
   FOOTER PREMIUM
   ========================================================= */
.footer {
    background: #1F1F22; 
    color: #9CA3AF;
    padding: 80px 0 20px; 
    border-top: 4px solid var(--color-accent); /* Línea verde superior */
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

/* En tablets 2 columnas, en PC 4 columnas */
@media (min-width: 768px) {
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 992px) {
    .footer-grid { 
        grid-template-columns: 1.5fr 1fr 1fr 1fr; 
        gap: 30px; 
    }
}

.footer-logo {
    margin-bottom: 20px;
    filter: brightness(0) invert(1);
    height: 60px;
}

.footer-brand-col p {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 25px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
    width: 45px; height: 45px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--color-accent);
    transform: translateY(-3px);
}

.footer h4 {
    color: #ffffff;
    font-size: 1.15rem;
    margin-bottom: 20px;
    font-weight: 600;
}

.footer-links-col ul {
    list-style: none;
}

.footer-links-col ul li {
    margin-bottom: 12px;
}

.footer-links-col ul a {
    color: #9CA3AF;
    text-decoration: none;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Flechita estilo la competencia pero verde */
.footer-links-col ul a::before {
    content: '▸'; 
    color: var(--color-accent-light);
    font-size: 1rem;
}

.footer-links-col ul a:hover {
    color: var(--color-white);
    padding-left: 5px; /* Pequeño brinco a la derecha al pasar el mouse */
}

.footer-contact-col p {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 15px;
}

.footer-bottom {
    border-top: 1px solid #374151;
    padding-top: 25px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    font-size: 0.85rem;
    text-align: center;
}

@media (min-width: 768px) {
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}

.legal-links {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.legal-links a {
    color: #9CA3AF;
    text-decoration: none;
    transition: var(--transition);
}

.legal-links a:hover {
    color: var(--color-white);
}

/* --- WHATSAPP FLOTANTE --- */
.float-wa { position: fixed; width: 60px; height: 60px; bottom: 40px; right: 40px; background-color: #25d366; color: #FFFFFF; border-radius: 50px; display: flex; align-items: center; justify-content: center; box-shadow: 2px 4px 15px rgba(0,0,0,0.2); z-index: 100; transition: var(--transition); }
.float-wa:hover { transform: scale(1.1); background-color: #007a33; color: #FFFFFF; }
@media (max-width: 768px) { .float-wa { width: 50px; height: 50px; bottom: 20px; right: 20px; } }

/* =========================================================
   ARSENAL "WOW": GRADIENTES Y CASCADA
   ========================================================= */

/* TEXTO ILUMINADO (TSB Acero Tecnológico) */
.text-gradient {
    background: linear-gradient(to right, var(--color-primary) 0%, var(--color-accent) 50%, var(--color-accent-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

/* EFECTO CASCADA (Reveal on Scroll) */
.fade-up {
    opacity: 0;
    transform: translateY(40px);
}

@keyframes fadeInUp {
    to { opacity: 1; transform: translateY(0); }
}

.fade-up.visible {
    animation: fadeInUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

/* Retrasos para que entren una tras otra (Tarjetas de Video y de Proceso) */
.services-grid .luxury-card:nth-child(1) { animation-delay: 0.1s; }
.services-grid .luxury-card:nth-child(2) { animation-delay: 0.3s; }
.services-grid .luxury-card:nth-child(3) { animation-delay: 0.2s; }
.services-grid .luxury-card:nth-child(4) { animation-delay: 0.4s; }

.process-grid-modern .process-card:nth-child(1) { animation-delay: 0.1s; }
.process-grid-modern .process-card:nth-child(2) { animation-delay: 0.3s; }
.process-grid-modern .process-card:nth-child(3) { animation-delay: 0.5s; }
.process-grid-modern .process-card:nth-child(4) { animation-delay: 0.2s; }
.process-grid-modern .process-card:nth-child(5) { animation-delay: 0.4s; }
.process-grid-modern .process-card:nth-child(6) { animation-delay: 0.6s; }

/* =========================================================
   SERVICIOS EMPRESARIALES (B2B Grid - 4 Tarjetas)
   ========================================================= */
.business-services-section {
    /* Un fondo ligeramente distinto para separar Residencial de Corporativo */
    background-color: #F9FAFB; 
    padding: 100px 0;
    border-top: 1px solid #E5E7EB;
}

.b2b-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px; 
}

/* Formamos la cuadrícula perfecta de 2x2 en pantallas de PC/Laptops */
@media (min-width: 992px) {
    .b2b-grid { 
        grid-template-columns: repeat(2, 1fr); 
    }
}

/* Animación en cascada para que entren fluidas al hacer scroll */
.b2b-grid .luxury-card:nth-child(1) { animation-delay: 0.1s; }
.b2b-grid .luxury-card:nth-child(2) { animation-delay: 0.3s; }
.b2b-grid .luxury-card:nth-child(3) { animation-delay: 0.2s; }
.b2b-grid .luxury-card:nth-child(4) { animation-delay: 0.4s; }

/* =========================================================
   SECCIÓN SEO Y COBERTURA
   ========================================================= */
.seo-footer-links {
    background-color: #0A0A0B; /* Fondo extra oscuro para transición elegante */
    padding: 50px 0; /* Espacio para que el texto respire */
    border-top: 1px solid #1F1F22;
}

.seo-footer-links p {
    line-height: 2.2; /* Da un interlineado amplio para que no se vea amontonado en celulares */
    color: #3F3F46; /* Color oscuro para los puntitos separadores (&bull;) */
}

.seo-label {
    color: #ffffff;
    font-weight: 600;
    font-size: 0.95rem;
    margin-right: 8px;
}

.seo-tag {
    color: #6B7280; /* Gris discreto para las palabras clave */
    font-size: 0.85rem;
    transition: var(--transition);
}

.seo-tag:hover {
    color: var(--color-white); /* Al pasar el mouse, resalta sutilmente en blanco */
}

/* =========================================================
   SECCIÓN: NUESTRA FIRMA (AUTORIDAD)
   ========================================================= */
.firm-authority-section {
    background-color: var(--color-white);
    padding: 100px 0;
    border-top: 1px solid #E5E7EB;
}

.firm-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 60px;
    align-items: center;
}

@media (min-width: 992px) {
    .firm-container {
        grid-template-columns: 1fr 1fr; /* Dos columnas perfectas en PC */
        gap: 80px;
    }
}

.firm-manifesto .section-title {
    text-align: left;
    margin-bottom: 20px;
}

.firm-manifesto .section-description {
    margin-bottom: 30px;
    text-align: justify;
}

.firm-audio-wrapper {
    display: flex;
    justify-content: flex-start;
}

/* Contenedor y diseño de Pilares Metódicos */
.firm-pillars {
    display: flex;
    flex-direction: column;
    gap: 35px;
}

.pillar-item {
    border-left: 3px solid #E5E7EB; /* Línea de guía estructural */
    padding-left: 25px;
    transition: all 0.4s ease;
}

.pillar-item:hover {
    border-left-color: var(--color-accent); /* Cambia al verde de la identidad al pasar el mouse */
    transform: translateX(5px);
}

.pillar-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
}

.pillar-number {
    font-family: var(--font-main);
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--color-accent);
}

.pillar-item h3 {
    font-family: var(--font-main);
    font-size: 1.35rem;
    color: var(--color-primary);
    font-weight: 700;
    margin: 0;
}

.pillar-item p {
    font-size: 0.95rem;
    color: var(--color-text);
    line-height: 1.6;
    margin: 0;
}

/* --- Estilos de la Experiencia Inmersiva --- */
.glass-float-btn {
    position: fixed;
    bottom: 30px;
    left: 30px; /* Del lado izquierdo para no tapar WhatsApp */
    z-index: 999;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    cursor: pointer;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.glass-float-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

.glass-float-btn.is-playing .music-icon {
    animation: pulse-glow 2s infinite;
    color: #4CAF50; /* Un verde sutil cuando está activo */
}

/* Tooltip (Texto al pasar el mouse) */
.tooltip-btn { position: relative; }
.tooltip-text {
    visibility: hidden;
    width: 180px;
    background-color: rgba(0, 0, 0, 0.8);
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 8px 0;
    position: absolute;
    z-index: 1;
    left: 120%; 
    top: 50%;
    transform: translateY(-50%);
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 0.85rem;
}
.tooltip-btn:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

/* Modal Overlay */
.ambient-modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.ambient-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.ambient-modal-content {
    background: #111;
    border: 1px solid rgba(255,255,255,0.1);
    padding: 40px;
    border-radius: 12px;
    max-width: 450px;
    text-align: center;
    color: #fff;
    transform: translateY(20px);
    transition: all 0.4s ease;
}

.ambient-modal-overlay.active .ambient-modal-content {
    transform: translateY(0);
}

.ambient-modal-icon { font-size: 2.5rem; margin-bottom: 15px; }
.ambient-modal-content h3 { font-size: 1.5rem; margin-bottom: 15px; background: linear-gradient(90deg, #fff, #aaa); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.ambient-modal-content p { color: #aaa; font-size: 0.95rem; line-height: 1.6; margin-bottom: 15px; }

.ambient-modal-actions { margin-top: 30px; display: flex; flex-direction: column; gap: 15px; }
.ambient-modal-actions .btn-text { background: none; border: none; color: #888; cursor: pointer; font-size: 0.9rem; transition: color 0.3s; }
.ambient-modal-actions .btn-text:hover { color: #fff; }

@keyframes pulse-glow {
    0% { box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.4); }
    70% { box-shadow: 0 0 0 15px rgba(76, 175, 80, 0); }
    100% { box-shadow: 0 0 0 0 rgba(76, 175, 80, 0); }
}

/* =========================================================
   EXPERIENCIA INMERSIVA (MÚSICA, MODAL Y FLECHA)
   ========================================================= */
/* Botón Flotante Principal */
#btn-ambient-music {
    position: fixed !important;
    bottom: 40px !important; 
    left: 40px !important;   
    z-index: 999999 !important;
    width: 60px !important;
    height: 60px !important;
    border-radius: 50% !important;
    background: #1F1F22 !important; 
    border: 2px solid #95C11F !important; 
    color: #95C11F !important; 
    cursor: pointer !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3), 0 0 15px rgba(148, 193, 31, 0.2) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.3s ease !important;
}

#btn-ambient-music:hover {
    transform: scale(1.1) !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4), 0 0 25px rgba(148, 193, 31, 0.5) !important;
}

#btn-ambient-music.is-playing {
    background: #95C11F !important;
    color: #1F1F22 !important;
    border-color: #95C11F !important;
    animation: pulse-glow-music 2.5s infinite !important;
}

/* Tooltip al pasar el mouse */
.tooltip-music-text {
    visibility: hidden; width: 180px; background-color: #1F1F22; color: #fff; text-align: center; border-radius: 6px; padding: 8px 0; position: absolute; z-index: 1; left: 120%; top: 50%; transform: translateY(-50%); opacity: 0; transition: opacity 0.3s; font-size: 0.85rem; border: 1px solid #333;
}
#btn-ambient-music:hover .tooltip-music-text { visibility: visible; opacity: 1; }

/* La flecha animada que apunta al botón */
.attention-arrow-wrapper {
    position: fixed !important;
    bottom: 53px !important; 
    left: 115px !important;  
    z-index: 999998 !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    color: #95C11F !important;
    font-family: 'Poppins', sans-serif !important;
    font-weight: 600 !important;
    font-size: 0.95rem !important;
    pointer-events: none !important; 
    animation: bounce-left 1.5s infinite !important;
    transition: opacity 0.5s ease, visibility 0.5s ease !important;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5) !important;
}

.attention-arrow-wrapper.fade-out {
    opacity: 0 !important;
    visibility: hidden !important;
}

@keyframes bounce-left {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(-12px); }
}

/* Modal Oscuro */
.modal-ambient-overlay {
    position: fixed !important; top: 0 !important; left: 0 !important; width: 100vw !important; height: 100vh !important; background: rgba(0, 0, 0, 0.85) !important; backdrop-filter: blur(10px) !important; -webkit-backdrop-filter: blur(10px) !important; z-index: 9999999 !important; display: flex !important; align-items: center !important; justify-content: center !important; opacity: 0; visibility: hidden; transition: all 0.4s ease;
}
.modal-ambient-overlay.active { opacity: 1; visibility: visible; }

.modal-ambient-box {
    background: #111 !important; border: 1px solid rgba(255,255,255,0.1) !important; padding: 35px 40px !important; border-radius: 12px !important; width: 90% !important; max-width: 650px !important; max-height: 90vh !important; overflow-y: auto !important; text-align: center !important; color: #fff !important; transform: translateY(20px); transition: all 0.4s ease; box-shadow: 0 20px 50px rgba(0,0,0,0.5) !important; position: relative;
}
.modal-ambient-overlay.active .modal-ambient-box { transform: translateY(0); }

.modal-ambient-box h3 { font-size: 1.45rem !important; margin-bottom: 15px !important; color: #ffffff !important; font-family: 'Poppins', sans-serif !important; font-weight: 700 !important; }
.modal-ambient-box p { color: #A1A1AA !important; font-size: 0.95rem !important; line-height: 1.6 !important; margin-bottom: 15px !important; font-family: 'Poppins', sans-serif !important; }

.modal-ambient-instruction {
    font-size: 0.85rem !important; color: #95C11F !important; margin-top: 5px !important; font-style: italic !important;
}

.modal-ambient-btns { margin-top: 25px !important; display: flex !important; flex-direction: column !important; gap: 12px !important; align-items: center !important; }

.btn-play-music { padding: 12px 28px !important; border-radius: 50px !important; background: #95C11F !important; color: #000 !important; font-weight: bold !important; cursor: pointer !important; border: none !important; transition: transform 0.3s !important; font-family: 'Poppins', sans-serif !important; font-size: 0.95rem !important; width: 100%; max-width: 350px;}
.btn-play-music:hover { transform: scale(1.05) !important; background: #a6d622 !important; }

.btn-close-music { background: transparent !important; border: 1px solid rgba(255,255,255,0.2) !important; color: #D1D5DB !important; cursor: pointer !important; font-size: 0.9rem !important; padding: 10px 24px !important; border-radius: 50px !important; transition: all 0.3s !important; font-family: 'Poppins', sans-serif !important; width: 100%; max-width: 350px; }
.btn-close-music:hover { background: rgba(255,255,255,0.1) !important; color: #fff !important; border-color: rgba(255,255,255,0.4) !important; }

@keyframes pulse-glow-music { 0% { box-shadow: 0 0 0 0 rgba(148, 193, 31, 0.4); } 70% { box-shadow: 0 0 0 15px rgba(148, 193, 31, 0); } 100% { box-shadow: 0 0 0 0 rgba(148, 193, 31, 0); } }

/* Scrollbar del modal */
.modal-ambient-box::-webkit-scrollbar { width: 6px; }
.modal-ambient-box::-webkit-scrollbar-track { background: rgba(0,0,0,0.2); border-radius: 10px; }
.modal-ambient-box::-webkit-scrollbar-thumb { background: #95C11F; border-radius: 10px; }

/* Nueva X para cerrar */
.close-x-btn {
    position: absolute !important;
    top: 15px !important;
    right: 15px !important;
    background: transparent !important;
    border: none !important;
    color: #A1A1AA !important;
    font-size: 1.8rem !important;
    cursor: pointer !important;
    transition: color 0.3s ease !important;
    line-height: 1 !important;
    padding: 0 !important;
    width: 30px !important;
    height: 30px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}
.close-x-btn:hover {
    color: #d9534f !important; /* Se pone roja al pasar el mouse */
}

/* Estilo rojo para el botón de No gracias */
.btn-close-music.btn-red-outline {
    border-color: rgba(217, 83, 79, 0.4) !important;
    color: #d9534f !important;
}
.btn-close-music.btn-red-outline:hover {
    background: rgba(217, 83, 79, 0.1) !important;
    border-color: rgba(217, 83, 79, 0.8) !important;
    color: #ff6b6b !important;
}

/* =========================================================
   REPARACIÓN RESPONSIVE: MENÚ HAMBURGUESA Y ESPACIOS
   ========================================================= */

/* Estilos de las 3 rayitas de la hamburguesa */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    z-index: 1001; 
}
.menu-toggle .bar {
    width: 25px;
    height: 3px;
    background-color: var(--color-white); /* Blancas por defecto sobre el video */
    margin: 4px 0;
    transition: 0.4s ease;
    border-radius: 3px;
}
/* Si scrolleamos, las rayitas se vuelven oscuras */
.navbar-scrolled .menu-toggle .bar {
    background-color: var(--color-primary);
}

@media (max-width: 768px) {
    /* 1. Activar Hamburguesa y Menú Lateral */
    .menu-toggle { display: flex; }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%; /* Oculto a la derecha */
        width: 75%; 
        height: 100vh;
        background-color: var(--color-white);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.4s ease;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
        z-index: 1000;
        display: flex; /* Anulamos el display:none que tenías antes */
    }
    
    .nav-links.active {
        right: 0; /* Aparece el menú */
    }

    /* Forzar que los textos del menú móvil sean SIEMPRE oscuros, sin sombra */
    .nav-links a:not(.btn-primary-small), 
    .navbar:not(.navbar-scrolled) .nav-links.active a:not(.btn-primary-small) {
        color: var(--color-primary) !important;
        margin: 20px 0;
        font-size: 1.2rem;
        text-shadow: none !important;
    }

    /* Animación de Hamburguesa a X (Cerrar) */
    .menu-toggle.is-active .bar:nth-child(1) { transform: translateY(11px) rotate(45deg); background-color: var(--color-primary); }
    .menu-toggle.is-active .bar:nth-child(2) { opacity: 0; }
    .menu-toggle.is-active .bar:nth-child(3) { transform: translateY(-11px) rotate(-45deg); background-color: var(--color-primary); }

    /* 2. Reparar superposición del Título con el Logo en el Hero */
    .hero-content {
        padding-top: 130px !important; /* Más espacio arriba para liberar el logo */
    }
    .hero-content h1, .hero-content .h1-style {
        font-size: 2.2rem !important;
        margin-bottom: 15px;
    }
    .hero-content p {
        font-size: 1rem !important;
        margin-bottom: 25px;
    }

    /* 3. Ordenar la guerra de botones en la parte inferior */
    .slider-controls {
        bottom: 95px; /* Subimos los puntitos para que no toquen los botones */
    }
    
    #btn-ambient-music {
        width: 50px !important;
        height: 50px !important;
        bottom: 25px !important;
        left: 20px !important;
    }
    #btn-ambient-music svg { width: 20px; height: 20px; }

    .attention-arrow-wrapper {
        bottom: 35px !important;
        left: 80px !important; /* Acerca la flecha al botón pequeño */
        font-size: 0.8rem !important;
    }
    .attention-arrow-wrapper svg { width: 18px; height: 18px; }

    .float-wa {
        width: 50px !important;
        height: 50px !important;
        bottom: 25px !important;
        right: 20px !important;
    }
    .float-wa svg { width: 25px; height: 25px; }
}

/* =========================================================
   SECCIÓN PREGUNTAS FRECUENTES (Premium Accordion)
   ========================================================= */
.faq-section {
    background-color: var(--color-white);
    padding: 100px 0;
    border-top: 1px solid #E5E7EB;
}

.faq-accordion {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.faq-item {
    background: #ffffff;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item:hover {
    border-color: var(--color-accent);
    box-shadow: 0 10px 25px rgba(0, 122, 51, 0.05);
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    padding: 24px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    cursor: pointer;
    text-align: left;
    font-family: var(--font-main);
    color: var(--color-primary);
    font-size: 1.15rem;
    font-weight: 700;
    transition: color 0.3s ease;
}

.faq-question:hover {
    color: var(--color-accent);
}

/* Indicador Animado (+ / -) */
.faq-icon-toggle {
    position: relative;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.faq-line {
    position: absolute;
    background-color: var(--color-primary);
    border-radius: 2px;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.3s ease;
}

/* Línea Horizontal */
.faq-line:nth-child(1) {
    top: 8px; left: 0;
    width: 100%; height: 2px;
}

/* Línea Vertical */
.faq-line:nth-child(2) {
    top: 0; left: 8px;
    width: 2px; height: 100%;
}

.faq-item:hover .faq-line {
    background-color: var(--color-accent);
}

/* Animación de apertura al activar la clase */
.faq-item.faq-active {
    border-color: var(--color-accent);
    background-color: #FAFBF9; /* Un fondo sumamente sutil para resaltar el item abierto */
}

.faq-item.faq-active .faq-question {
    color: var(--color-accent);
}

.faq-item.faq-active .faq-line:nth-child(1) {
    transform: rotate(180deg);
}

.faq-item.faq-active .faq-line:nth-child(2) {
    transform: rotate(90deg);
    opacity: 0; /* Desaparece la línea vertical para simular el signo de menos (-) */
}

/* Caja de la Respuesta Desplegable (Cero brincos con Max-Height) */
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-answer-content {
    padding: 0 30px 24px 30px;
    font-family: var(--font-main);
    font-size: 1rem;
    color: var(--color-text);
    line-height: 1.7;
}

.faq-answer-content strong {
    color: var(--color-primary);
}

@media (max-width: 768px) {
    .faq-question {
        padding: 20px;
        font-size: 1rem;
    }
    .faq-answer-content {
        padding: 0 20px 20px 20px;
        font-size: 0.95rem;
    }
}
/* =========================================================
   ESTILOS PREMIUM GLOBALES (HERO OVERLAYS, MODAL Y BOTONES)
   ========================================================= */

/* Unificamos el overlay degradado para los videos de portada de todo el sitio */
.hero-video-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to top, rgba(15,23,42,0.95) 0%, rgba(15,23,42,0.6) 50%, rgba(15,23,42,0.2) 100%);
    z-index: 1;
}

/* Botón 'X' de cierre para el modal de experiencia inmersiva */
.close-x-btn {
    position: absolute !important;
    top: 15px !important;
    right: 15px !important;
    background: transparent !important;
    border: none !important;
    color: #A1A1AA !important;
    font-size: 1.8rem !important;
    cursor: pointer !important;
    transition: color 0.3s ease !important;
    line-height: 1 !important;
    padding: 0 !important;
    width: 30px !important;
    height: 30px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.close-x-btn:hover {
    color: #d9534f !important; /* Rojo elegante de advertencia al pasar el cursor */
}

/* Botón de rechazo con borde rojo sutil en el modal de audio */
.btn-close-music.btn-red-outline {
    border-color: rgba(217, 83, 79, 0.4) !important;
    color: #d9534f !important;
    background: transparent !important;
    transition: all 0.3s ease !important;
}

.btn-close-music.btn-red-outline:hover {
    background: rgba(217, 83, 79, 0.1) !important;
    border-color: rgba(217, 83, 79, 0.8) !important;
    color: #ff6b6b !important;
}

/* --- SELECTOR DE IDIOMA PREMIUM --- */
.lang-switch {
    margin-left: 25px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600 !important;
    font-size: 0.85rem !important;
    color: var(--color-white) !important; /* Blanco sobre el video */
    border: 1px solid rgba(255, 255, 255, 0.5);
    padding: 4px 10px;
    border-radius: 4px;
    transition: all 0.3s ease !important;
    text-shadow: none !important;
    letter-spacing: 1px;
}

/* Cuando hacemos scroll y la barra se vuelve blanca */
.navbar-scrolled .lang-switch {
    color: var(--color-primary) !important;
    border-color: var(--color-primary);
}

/* El Hover supremo (Fondo oscuro, letra blanca) */
.lang-switch:hover {
    background-color: var(--color-primary) !important;
    color: var(--color-white) !important;
    border-color: var(--color-primary) !important;
    transform: translateY(-2px);
}

/* Ajuste para móviles */
@media (max-width: 768px) {
    .nav-links.active .lang-switch {
        margin: 15px 0 !important;
        font-size: 1.1rem !important;
        padding: 6px 20px;
        color: var(--color-primary) !important;
        border-color: var(--color-primary);
    }
}

/* --- DISTRIBUIDOR DE IDIOMA EN INDEX (DROPDOWN) --- */
.lang-dropdown-container {
    position: relative;
    display: inline-block;
    margin-left: 25px;
}

.lang-dropdown-menu {
    position: absolute;
    top: 150%;
    right: 0;
    background: rgba(31, 31, 34, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    min-width: 250px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    display: flex;
    flex-direction: column;
    padding: 10px 0;
    z-index: 1000;
}

.lang-dropdown-container:hover .lang-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-dropdown-menu a {
    margin: 0 !important;
    padding: 12px 20px !important;
    color: #E5E7EB !important;
    font-size: 0.9rem !important;
    font-weight: 500 !important;
    text-shadow: none !important;
    display: block;
    text-align: left;
    transition: background 0.3s ease, color 0.3s ease !important;
}

.lang-dropdown-menu a:hover {
    background: rgba(149, 193, 31, 0.15) !important;
    color: var(--color-accent-light) !important;
}

/* Ajuste móvil para el menú desplegable */
@media (max-width: 768px) {
    .lang-dropdown-menu {
        position: relative;
        top: 0;
        right: auto;
        background: transparent;
        box-shadow: none;
        border: none;
        min-width: 100%;
        opacity: 1;
        visibility: visible;
        transform: none;
        padding: 0;
        align-items: center;
        display: none; /* Se oculta por defecto en móvil para no estorbar */
    }
    
    .lang-dropdown-container:hover .lang-dropdown-menu {
        display: flex; /* Aparece al tocar */
    }
}

/* --- INDICADOR DE PÁGINA ACTIVA (ACTIVE STATE) --- */
.nav-links a.active-link {
    color: var(--color-accent-light) !important;
    position: relative;
}

/* Subrayado sutil y elegante */
.nav-links a.active-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--color-accent-light);
    border-radius: 2px;
}

/* Asegurar que el botón de agendar cita y el selector de idioma NO tengan este subrayado aunque tengan la clase */
.nav-links a.btn-primary-small.active-link::after,
.nav-links .lang-switch.active-link::after {
    display: none;
}