/* =========================================
   1. VARIABLES & SISTEMA DE DISEÑO
   ========================================= */
:root {
    /* --- COLORES BASE DE LA MARCA --- */
    --gold-primary: #C5A059;  /* DORADO EXACTO */
    --gold-hover: #D4AF6A;
    --navy-dark: #0B1623;
    --navy-light: #1A2634;
    --white: #FFFFFF;

    /* --- PALETA TEMA CLARO (Por defecto) --- */
    /* Usamos grises elegantes en lugar de azules para el modo claro */
    --bg-body: #F4F4F4;        /* Fondo general */
    --bg-card: #FFFFFF;        /* Fondo tarjetas */
    --text-main: #2D2D2D;      /* Texto principal (gris oscuro) */
    --text-light: #666666;     /* Texto secundario */
    
    /* Colores para Header, Contacto y Footer en MODO CLARO */
    --bg-header: rgba(255, 255, 255, 0.98);
    --text-header: #0B1623;
    --bg-contact-section: #E0E0E0; /* Gris Platino para la sección de contacto */
    --bg-footer: #D0D0D0;          /* Gris Humo un poco más oscuro para el footer */
    --text-on-colored-bg: #2D2D2D; /* Texto oscuro sobre fondos grises */
    --border-color: rgba(0,0,0,0.1);

    /* --- CONFIGURACIÓN DE TAMAÑOS --- */
    --container-width: 1200px;
    --header-height: 100px;
    --logo-height: 80px;

    /* --- BOTÓN WHATSAPP FLOTANTE --- */
    --wa-size: 75px;
    --wa-icon-size: 45px;
    --wa-bottom: 40px;
    --wa-right: 40px;

    /* --- ESTILOS BASE --- */
    --radius: 8px;
    --shadow: 0 4px 20px rgba(0,0,0,0.08);
    --font-main: 'Montserrat', sans-serif;
}

/* --- PALETA TEMA OSCURO (Con separación de secciones) --- */
@media (prefers-color-scheme: dark) {
    :root {
        --bg-body: #0B1623;            /* Navy Muy Oscuro (Fondo general) */
        --bg-card: #1C2B3C;            /* Tarjetas (Más claro para que resalten) */
        --text-main: #F0F0F0;
        --text-light: #A0A0A0;

        --bg-header: rgba(11, 22, 35, 0.98);
        --text-header: #FFFFFF;

        /* CAMBIO AQUÍ: Usamos un tono intermedio para separar la sección */
        --bg-contact-section: #15202E; 
        
        --bg-footer: #050a10;          /* Footer casi negro para profundidad */
        --text-on-colored-bg: #FFFFFF; 
        
        --shadow: 0 4px 25px rgba(0,0,0,0.5);
        --border-color: rgba(255,255,255,0.08);
    }
}

/* =========================================
   2. RESET & BASE
   ========================================= */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-height); }

body {
    font-family: var(--font-main);
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.6;
    padding-top: var(--header-height);
    transition: background-color 0.3s ease, color 0.3s ease;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; transition: all 0.3s ease; }

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* =========================================
   3. HEADER (MENÚ)
   ========================================= */
.main-header {
    height: var(--header-height);
    display: flex;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: var(--bg-header); /* Variable dinámica */
    border-bottom: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: height 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
}

/* Encabezado compacto: se activa por JS al hacer scroll para que el menú
   siga siendo accesible sin ocupar tanto espacio en pantalla. */
.main-header.is-scrolled {
    height: 70px;
    box-shadow: 0 4px 18px rgba(0,0,0,0.12);
}
.main-header.is-scrolled .logo img { height: 44px; }
.main-header.is-scrolled .brand-main,
.main-header.is-scrolled .brand-slogan { font-size: 1.3rem; }

.header-flex { display: flex; justify-content: space-between; align-items: center; width: 100%; }

.logo img {
    height: var(--logo-height);
    width: auto;
    object-fit: contain;
    padding: 5px 0;
    transition: height 0.3s ease;
}
/* --- 1. ESTILOS NUEVOS PARA EL LOGO CON TEXTO --- */
.logo {
    display: flex;
    align-items: center;
    gap: 40px; /* Espacio entre el icono y el texto */
    text-decoration: none;
}

.logo-text {
    display: flex;
    flex-direction: row; /* Pone AscendBoom y Lifting en la misma línea */
    align-items: baseline;
    gap: 5px;
    font-family: var(--font-main);
}

.brand-main {
    font-weight: 700; /* Negrita */
    font-size: 1.9rem; /* Ajusta este tamaño según prefieras */
    color: var(--text-header); /* Se pone oscuro en día y blanco en noche automáticamente */
    transition: font-size 0.3s ease;
}

.brand-slogan {
    font-weight: 600;
    font-size: 1.9rem;
    color: var(--gold-primary); /* Siempre dorado */
    transition: font-size 0.3s ease;
}

/* Ajuste para móviles para que no ocupe tanto espacio */
@media (max-width: 768px) {
    .brand-main, .brand-slogan { font-size: 1.1rem; }
    .main-header.is-scrolled .brand-main,
    .main-header.is-scrolled .brand-slogan { font-size: 0.95rem; }
}
.nav-list { display: flex; gap: 30px; list-style: none; }

.nav-list a { 
    color: var(--text-header); /* Variable dinámica */
    font-weight: 600; 
    font-size: 0.95rem; 
    position: relative; 
    letter-spacing: 0.5px;
}

.nav-list a::after {
    content: ''; position: absolute; width: 0; height: 2px;
    bottom: -5px; left: 0; background-color: var(--gold-primary);
    transition: width 0.3s ease;
}
.nav-list a:hover::after { width: 100%; }

.nav-contact {
    border: 1px solid var(--gold-primary);
    padding: 8px 20px;
    border-radius: var(--radius);
    color: var(--gold-primary) !important;
}
.nav-contact:hover {
    background-color: var(--gold-primary);
    color: var(--navy-dark) !important;
}

/* --- MENÚ HAMBURGUESA (MÓVIL) --- */
.hamburger-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    padding: 0;
    background: none;
    border: none;
    cursor: pointer;
    position: relative;
    z-index: 1200;
}
.hamburger-line {
    display: block;
    width: 26px;
    height: 2px;
    border-radius: 2px;
    background-color: var(--text-header);
    transition: transform 0.3s ease, opacity 0.2s ease;
}
.hamburger-btn[aria-expanded="true"] .hamburger-line:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger-btn[aria-expanded="true"] .hamburger-line:nth-child(2) { opacity: 0; }
.hamburger-btn[aria-expanded="true"] .hamburger-line:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
.nav-overlay.is-open { opacity: 1; visibility: visible; }

body.nav-open { overflow: hidden; }

/* =========================================
   4. SOLUCIÓN DEFINITIVA: ÍCONOS DORADOS
   ========================================= */

/* Clase base para el color y el comportamiento */
.icon-gold-mask {
    display: inline-block;
    background-color: var(--gold-primary); /* Tu dorado exacto */
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-size: contain;
    mask-size: contain;
    vertical-align: middle;
    margin-right: 12px;
}

/*
 * Máscaras: usa --icon-* definidas en cada HTML (ruta desde la página, como tus <img>).
 * Respaldo: rutas relativas a este archivo (assets/css/ → ../img/icon/).
 */
.icon-mail {
    -webkit-mask-image: var(--icon-mail, url('../img/icon/mail.svg'));
    mask-image: var(--icon-mail, url('../img/icon/mail.svg'));
    width: 29px;
    height: 37px;
}
.icon-pin {
    -webkit-mask-image: var(--icon-pin, url('../img/icon/pin.svg'));
    mask-image: var(--icon-pin, url('../img/icon/pin.svg'));
    width: 30px;
    height: 25px;
}
.icon-phone {
    -webkit-mask-image: var(--icon-phone, url('../img/icon/phone.svg'));
    mask-image: var(--icon-phone, url('../img/icon/phone.svg'));
    width: 30px;
    height: 23px;
}

.icon-social-wa,
.icon-social-fb,
.icon-social-ig,
.icon-social-linkedin,
.icon-social-youtube,
.icon-social-tiktok,
.icon-social-x {
    width: 34px;
    height: 34px;
}

.icon-social-wa {
    -webkit-mask-image: url('../img/icon/social-whatsapp.svg');
    mask-image: url('../img/icon/social-whatsapp.svg');
}
.icon-social-fb {
    -webkit-mask-image: url('../img/icon/social-facebook.svg');
    mask-image: url('../img/icon/social-facebook.svg');
}
.icon-social-ig {
    -webkit-mask-image: url('../img/icon/social-instagram.svg');
    mask-image: url('../img/icon/social-instagram.svg');
}
.icon-social-linkedin {
    -webkit-mask-image: url('../img/icon/social-linkedin.svg');
    mask-image: url('../img/icon/social-linkedin.svg');
}
.icon-social-youtube {
    -webkit-mask-image: url('../img/icon/social-youtube.svg');
    mask-image: url('../img/icon/social-youtube.svg');
}
.icon-social-tiktok {
    -webkit-mask-image: url('../img/icon/social-tiktok.svg');
    mask-image: url('../img/icon/social-tiktok.svg');
}
.icon-social-x {
    -webkit-mask-image: url('../img/icon/social-x.svg');
    mask-image: url('../img/icon/social-x.svg');
}

/* =========================================
   5. HERO SECTION
   ========================================= */
.hero {
    height: 85vh;
    background: linear-gradient(rgba(11, 22, 35, 0.7), rgba(11, 22, 35, 0.6)), 
                url('../img/Genie JLG brazos y plataformas hero image.webp'); 
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex; align-items: center; text-align: center; color: var(--white);
}

.hero-text { max-width: 800px; margin: 0 auto; }
.hero h1 { font-size: 3.5rem; font-weight: 700; margin-bottom: 20px; line-height: 1.1; }
.hero h1 span { color: var(--gold-primary); }
.hero p { font-size: 1.2rem; margin-bottom: 40px; color: #E0E0E0; }
.hero-ctas { display: flex; justify-content: center; gap: 20px; }

/* Iconos dentro de botones (estos sí usan img normal) */
.btn-call img, .btn-secondary img {
    width: 20px; height: 20px; margin-right: 10px;
}

.btn-call {
    background: linear-gradient(45deg, var(--gold-primary), var(--gold-hover));
    color: var(--navy-dark);
    padding: 15px 35px; border-radius: var(--radius); font-weight: 700;
    display: flex; align-items: center;
    box-shadow: 0 4px 15px rgba(197, 160, 89, 0.4);
}
.btn-call:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(197, 160, 89, 0.6); }

.btn-secondary {
    background: transparent; border: 2px solid var(--white); color: var(--white);
    padding: 15px 35px; border-radius: var(--radius); font-weight: 600;
}
.btn-secondary:hover { background: var(--white); color: var(--navy-dark); }

/* =========================================
   6. CATÁLOGO
   ========================================= */
.catalog { padding: 40px 0; background-color: var(--bg-body); }

.section-title {
    text-align: center; font-size: 2.5rem; color: var(--text-main);
    margin-bottom: 50px; position: relative; width: 100%;
}
.section-title::after {
    content: ''; display: block; width: 120px; height: 4px;
    background-color: var(--gold-primary); margin: 15px auto 0;
}

/* --- GRID AJUSTADO A 2x2 --- */
.equipment-grid { 
    display: grid; 
    /* Cambiamos el auto-fit por 2 columnas fijas en escritorio */
    grid-template-columns: 1fr 1fr; 
    gap: 50px; 
    /* Añadimos un ancho máximo para que las tarjetas no se estiren infinitamente */
    max-width: 1000px; 
    margin: 0 auto; /* Esto centra el grupo de 4 tarjetas en la página */
    padding: 20px 0;
}

/* --- TU FORMATO ORIGINAL (SIN CAMBIOS) --- */
.equipment-card {
    background-color: var(--bg-card); border-radius: var(--radius);
    overflow: hidden; box-shadow: var(--shadow); transition: transform 0.3s ease;
    border: 1px solid var(--border-color);
}
.equipment-card:hover { transform: translateY(-5px); }

.card-img { height: 250px; overflow: hidden; position: relative; }
.card-img img { width: 100%; height: 100%; object-fit: cover; padding: 0; transition: transform 0.5s ease; }
.equipment-card:hover .card-img img { transform: scale(1.05); }

.card-content { padding: 25px; text-align: center; }
.card-content h3 { font-size: 1.5rem; margin-bottom: 10px; color: var(--text-main); }
.card-content p { color: var(--text-light); font-size: 0.95rem; margin-bottom: 20px; }

.btn-outline {
    display: inline-block; border: 2px solid var(--text-main);
    color: var(--text-main); padding: 10px 25px; border-radius: var(--radius);
    font-weight: 600; font-size: 0.9rem;
}
.btn-outline:hover { background-color: var(--gold-primary); color: var(--navy-dark); border-color: var(--gold-primary); }

/* --- RESPONSIVE PARA MÓVIL --- */
@media (max-width: 768px) {
    .equipment-grid {
        grid-template-columns: 1fr; /* En celular vuelve a ser 1 sola columna */
    }
}
/* =========================================
   7. CONTACTO RÁPIDO (Colores Corregidos)
   ========================================= */
.quick-contact {
    /* Usa la variable dinámica (Gris en claro, Navy en oscuro) */
    background-color: var(--bg-contact-section);
    color: var(--text-on-colored-bg);
    padding: 80px 0;
    transition: background-color 0.3s ease;
}

.grid-contact { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.contact-text h2 { font-size: 2.5rem; margin-bottom: 20px; }
.contact-text p { font-size: 1.1rem; opacity: 0.8; margin-bottom: 30px; }

.contact-data li {
    list-style: none; display: flex; align-items: center;
    margin-bottom: 15px; font-size: 1.1rem;
}

/* Formulario */
.contact-form {
    background: var(--bg-card); padding: 40px; border-radius: var(--radius);
    display: flex; flex-direction: column; gap: 15px; box-shadow: var(--shadow);
}
.contact-form input, .contact-form select {
    padding: 15px; border: 1px solid var(--border-color); border-radius: 4px;
    font-family: var(--font-main); font-size: 1rem; background-color: var(--bg-body); color: var(--text-main);
}
.contact-form input:focus { outline: none; border-color: var(--gold-primary); }
.contact-form textarea {width: 100%;
    padding: 15px;
    margin-bottom: 15px;
    background-color:var(--bg-body); /* Azul más oscuro para el fondo del campo */
    color: var(--text-main);
    border: 1px solid var(--border-color); border-radius: 4px;
    font-family: var(--font-main);
    font-size: 1rem;
    outline: none;}
.btn-submit {
    background-color: var(--gold-primary); color: var(--navy-dark); border: none;
    padding: 15px; font-size: 1.1rem; font-weight: 700; border-radius: 4px;
    cursor: pointer; transition: background 0.3s;
}
.btn-submit:hover { background-color: var(--gold-hover); }

/* Arreglo para el fondo blanco del autocompletado */
input:-webkit-autofill,
input:-webkit-autofill:hover, 
input:-webkit-autofill:focus, 
input:-webkit-autofill:active {
    /* Esto reemplaza el color de fondo con una sombra interna que imita tu color */
    -webkit-box-shadow: 0 0 0 30px var(--bg-body) inset !important;
    /* Esto mantiene el color de tu texto */
    -webkit-text-fill-color: var(--text-main) !important;
    /* Esto asegura que la tipografía sea la correcta */
    font-family: var(--font-main) !important;
}

/* Para navegadores que no son webkit (Firefox moderno) */
input:autofill {
    background-color: var(--bg-body) !important;
    color: var(--text-main) !important;
}

#formStatus {
    display: none; /* Se mantiene oculto hasta que el JS lo activa */
    text-align: center;
    font-weight: bold;
    margin-top: 15px;
    font-family: var(--font-main);
}

/* Clases que el JS pondrá según el resultado */
.status-success { color: var(--gold-primary); }
.status-error { color: #ff4d4d; }

/* =========================================
   8. FOOTER (Colores Corregidos)
   ========================================= */
.footer {
    background-color: var(--bg-footer);
    color: var(--text-light);
    padding: 48px 0 0;
    transition: background-color 0.3s ease;
}

.footer-grid {
    display: grid;
    grid-template-columns: minmax(220px, 1.35fr) repeat(3, 1fr);
    gap: 28px 36px;
    text-align: left;
    align-items: start;
    padding-bottom: 32px;
}

.footer-col { min-width: 0; }

.footer-logo-link {
    display: inline-block;
    margin-bottom: 14px;
}

.footer-logo-link img {
    height: 90px;
    width: auto;
    filter: none !important;
    opacity: 1 !important;
    object-fit: contain;
}

.footer-description {
    font-size: 0.9rem;
    line-height: 1.55;
    color: var(--text-on-colored-bg);
    opacity: 0.9;
    max-width: 360px;
}

.footer-badge {
    margin-top: 14px;
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--gold-primary);
    border: 1px solid var(--gold-primary);
    border-radius: 999px;
    padding: 8px 14px;
}

.footer-title {
    color: var(--gold-primary);
    font-size: 0.85rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.footer-links,
.footer-contact-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-links li,
.footer-contact-list li {
    margin-bottom: 10px;
}

.footer-links a,
.footer-contact-list a,
.footer-static-contact {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.92rem;
    color: var(--text-on-colored-bg);
    opacity: 0.92;
}

.footer-links a:hover,
.footer-contact-list a:hover {
    color: var(--gold-primary);
}

.footer-static-contact { cursor: default; }

.footer-contact-list .icon-gold-mask {
    margin-right: 8px;
}

.footer-social {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 14px;
    margin-top: 4px;
}

.footer-social a,
.footer-social-placeholder {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 2px;
    line-height: 0;
}

.footer-social a:hover .icon-gold-mask {
    background-color: var(--gold-hover);
    transform: scale(1.08);
}

.footer-social .icon-gold-mask {
    margin-right: 0;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.footer-social-placeholder {
    opacity: 0.4;
    pointer-events: none;
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding: 16px 0 18px;
}

.footer-bottom-inner {
    display: flex;
    align-items: center;
    justify-content: center;
}

.copy {
    font-size: 0.85rem;
    opacity: 0.75;
    text-align: center;
}
/* =========================================
   9. BOTÓN WHATSAPP FLOTANTE
   ========================================= */
.floating-cta {
    position: fixed;
    bottom: var(--wa-bottom);
    right: var(--wa-right);
    z-index: 2000;
    transition: bottom 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

body.cookie-banner-visible .floating-cta {
    bottom: calc(var(--wa-bottom) + var(--cookie-banner-offset, 0px));
}

.btn-wa-float {
    background-color: #25D366; width: var(--wa-size); height: var(--wa-size);
    border-radius: 50%; display: flex; justify-content: center; align-items: center;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4); animation: pulse 3s infinite;
}
.btn-wa-float img {
    width: var(--wa-icon-size); height: var(--wa-icon-size);
    filter: brightness(0) invert(1); object-fit: contain;
}
.btn-wa-float:hover { transform: scale(1.1); }

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* =========================================
   10. RESPONSIVE
   ========================================= */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 28px 24px;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    .hero {background-attachment: scroll !important;}
    .hero h1 { font-size: 2.2rem; }
    .hero-ctas { flex-direction: column; }
    .btn-call, .btn-secondary { width: 100%; justify-content: center; }
    .grid-contact { grid-template-columns: 1fr; }
    .container { padding: 0 15px; }
    .logo img { height: 60px; }
    .footer-grid { grid-template-columns: 1fr; text-align: center; }
    .footer-description { margin: 0 auto; }
    .footer-links a, .footer-contact-list a, .footer-static-contact { justify-content: center; }
    .footer-social { justify-content: center; }

    .hamburger-btn { display: flex; }

    .nav-list {
        position: fixed;
        top: 0;
        right: 0;
        height: 100vh;
        width: min(78vw, 320px);
        display: flex;
        flex-direction: column;
        gap: 0;
        list-style: none;
        margin: 0;
        padding: 100px 30px 30px;
        background: var(--bg-header);
        box-shadow: -8px 0 30px rgba(0,0,0,0.2);
        transform: translateX(340px);
        transition: transform 0.35s ease;
        z-index: 1100;
        overflow-y: auto;
    }
    .nav-list.is-open { transform: translateX(0); }
    .nav-list li { width: 100%; border-bottom: 1px solid var(--border-color); }
    .nav-list li:last-child { border-bottom: none; }
    .nav-list li a { display: block; padding: 16px 0; font-size: 1.05rem; }
    .nav-list a::after { display: none; }
    .nav-contact { display: block; margin-top: 14px; text-align: center; }
}
/* =========================================
   11. NUEVAS SECCIONES (SEO & CONTENIDO)
   ========================================= */

.section-padding { padding: 80px 0; }

/* --- SECCIÓN NOSOTROS / QUÉ OFRECEMOS --- */
.value-prop { background-color: var(--bg-body); }
.value-content { max-width: 900px; margin: 0 auto; text-align: center; }
.lead-text { 
    font-size: 1.4rem; 
    font-weight: 700; 
    color: var(--gold-primary); 
    margin-bottom: 20px; 
}
.value-content p { margin-bottom: 1.5rem; font-size: 1.1rem; }

/* --- SERVICIOS DETALLADOS --- */
.services-list { background-color: var(--bg-card); }
.services-grid { 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 40px; 
    margin-top: 40px;
}
.service-item {
    padding: 30px;
    border-radius: var(--radius);
    background-color: var(--bg-body);
    border-left: 5px solid var(--gold-primary);
}
.service-item h3 { margin-bottom: 20px; display: flex; align-items: center; }
.check-icon { color: var(--gold-primary); margin-right: 10px; font-weight: bold; }
.service-item ul { list-style: none; }
.service-item li { margin-bottom: 12px; position: relative; padding-left: 20px; }
.service-item li::before { 
    content: '•'; color: var(--gold-primary); 
    position: absolute; left: 0; font-weight: bold; 
}

/* --- SECCIÓN HORARIO --- */
.schedule-section {
    background-color: var(--bg-footer);
    color: var(--text-on-colored-bg);
    padding: 50px 0;
}
.schedule-flex { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    gap: 30px;
}
.schedule-text h3 { color: var(--gold-primary); font-size: 1.8rem; }
.schedule-hours p { font-size: 1.1rem; margin-bottom: 5px; }
.schedule-note { color: var(--gold-primary); font-style: italic; margin-top: 10px; }

/* --- MAPA Y TEXTO SEO FINAL --- */
.map-container { line-height: 0; margin-top: 50px;}
.map-container iframe { filter: grayscale(0.2) contrast(1.1); }

/* --- 4. TEXTO SEO ESTILO IMAGEN 6 --- */
.seo-footer-text { 
    padding: 0 20px; 
    text-align: justify; /* Centrado como pediste */
    border-top: none;   /* Quitamos la línea de arriba si estorba */
    max-width: 900px;   /* Evita que las líneas sean demasiado largas */
    margin: 0 auto;     /* Centra el bloque en la pantalla */
}

.seo-footer-text h3 { 
    margin-bottom: 20px; 
    color: var(--text-main); 
    font-size: 2rem;
}

.seo-footer-text p { 
    font-size: 1rem; 
    color: var(--text-light); 
    margin-bottom: 40px; 
    
    /* ELIMINAMOS LAS COLUMNAS */
    column-count: 1 !important; 
    column-gap: 0;
}

/* --- RESPONSIVE ADAPTATION --- */
@media (max-width: 768px) {
    .section-padding { padding: 60px 0; }
    .services-grid { grid-template-columns: 1fr; }
    .schedule-flex { flex-direction: column; text-align: center; }
    .seo-footer-text p { column-count: 1; }
    .lead-text { font-size: 1.2rem; }
}


/* --- 3. MAPA CONTROLADO --- */
.map-wrapper {
    width: 100%;
    max-width: 1000px; /* Aquí controlas el ancho máximo (como la imagen 4) */
    height: 450px;     /* Altura controlada */
    margin: 0 auto 40px auto; /* Centrado y con margen abajo */
    border-radius: 20px; /* Esquinas redondeadas */
    overflow: hidden;    /* Recorta el mapa en las esquinas */
    box-shadow: var(--shadow);
    border: 5px solid var(--bg-card); /* Opcional: un marco blanco elegante */
}

/* Ajuste específico para modo oscuro en el mapa (opcional) */
@media (prefers-color-scheme: dark) {
    .map-container iframe { filter: invert(100%) hue-rotate(190deg) saturate(2.4) brightness(1)}
}

/* =========================================
   12. ESTILOS PÁGINA LEGAL (Privacidad)
   ========================================= */

.legal-page {
    background-color: var(--bg-body);
}

.legal-hero {
    background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy-light) 55%, #243447 100%);
    color: var(--white);
    padding: 48px 0 56px;
    position: relative;
    overflow: hidden;
}

.legal-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 100% 0%, rgba(197, 160, 89, 0.18) 0%, transparent 55%),
        radial-gradient(ellipse 50% 40% at 0% 100%, rgba(197, 160, 89, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

.legal-hero__inner {
    position: relative;
    z-index: 1;
    max-width: 820px;
}

.legal-breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.8rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 28px;
    opacity: 0.75;
}

.legal-breadcrumb a {
    color: var(--gold-primary);
    transition: opacity 0.2s ease;
}

.legal-breadcrumb a:hover {
    opacity: 0.85;
}

.legal-hero__eyebrow {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold-primary);
    margin-bottom: 12px;
}

.legal-hero h1 {
    font-size: clamp(2rem, 4.5vw, 2.75rem);
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 16px;
    color: var(--white);
}

.legal-hero__lead {
    font-size: 1.05rem;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.82);
    max-width: 640px;
    margin-bottom: 28px;
}

.legal-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.legal-badge {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border: 1px solid var(--gold-primary);
    color: var(--gold-primary);
    background: rgba(197, 160, 89, 0.12);
}

.legal-badge--muted {
    border-color: rgba(255, 255, 255, 0.25);
    color: rgba(255, 255, 255, 0.85);
    background: rgba(255, 255, 255, 0.06);
}

.legal-body {
    padding: 0 0 80px;
    margin-top: -32px;
    position: relative;
    z-index: 2;
}

.legal-document {
    max-width: 820px;
    margin: 0 auto;
    background-color: var(--bg-card);
    border-radius: calc(var(--radius) + 4px);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-color);
    border-top: 4px solid var(--gold-primary);
    padding: 48px 56px 40px;
}

.legal-intro {
    padding-bottom: 32px;
    margin-bottom: 8px;
    border-bottom: 1px solid var(--border-color);
}

.legal-intro p {
    font-size: 1.05rem;
    line-height: 1.75;
    color: var(--text-light);
    margin: 0;
}

.legal-section {
    padding: 32px 0;
    border-bottom: 1px solid var(--border-color);
}

.legal-section:last-of-type {
    border-bottom: none;
    padding-bottom: 8px;
}

.legal-section__head {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 18px;
}

.legal-section__number {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold-primary), var(--gold-hover));
    color: var(--navy-dark);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.legal-section h2 {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-main);
    margin: 0;
    line-height: 1.3;
}

.legal-section p {
    color: var(--text-light);
    line-height: 1.75;
    margin-bottom: 16px;
    font-size: 0.98rem;
}

.legal-section p:last-child {
    margin-bottom: 0;
}

.legal-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.legal-list li {
    position: relative;
    padding: 14px 18px 14px 44px;
    background-color: var(--bg-body);
    border-radius: var(--radius);
    border-left: 3px solid var(--gold-primary);
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.55;
}

.legal-list li::before {
    content: '';
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--gold-primary);
}

.legal-list li strong {
    color: var(--text-main);
}

.legal-note {
    margin-top: 18px !important;
    padding: 14px 18px;
    background: rgba(197, 160, 89, 0.1);
    border-radius: var(--radius);
    border-left: 3px solid var(--gold-primary);
    font-size: 0.9rem !important;
    font-style: italic;
    color: var(--text-main) !important;
}

.legal-contact-box {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-top: 8px;
    padding: 22px 24px;
    background: linear-gradient(135deg, rgba(197, 160, 89, 0.14) 0%, rgba(197, 160, 89, 0.06) 100%);
    border: 1px solid rgba(197, 160, 89, 0.35);
    border-radius: var(--radius);
}

.legal-contact-box .icon-gold-mask {
    flex-shrink: 0;
    margin-right: 0;
}

.legal-contact-box__label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gold-primary);
    margin: 0 0 4px !important;
}

.legal-contact-box a {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-main);
    transition: color 0.2s ease;
}

.legal-contact-box a:hover {
    color: var(--gold-primary);
}

.legal-document__footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 40px;
    padding-top: 28px;
    border-top: 1px solid var(--border-color);
}

.legal-document__footer p {
    margin: 0;
    font-size: 0.85rem;
    color: var(--text-light);
    opacity: 0.85;
}

.legal-back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gold-primary);
    transition: gap 0.2s ease, opacity 0.2s ease;
}

.legal-back-link::before {
    content: '←';
}

.legal-back-link:hover {
    gap: 12px;
    opacity: 0.9;
}

@media (max-width: 768px) {
    .legal-hero {
        padding: 36px 0 44px;
    }

    .legal-body {
        margin-top: -20px;
        padding-bottom: 60px;
    }

    .legal-document {
        padding: 32px 22px 28px;
        border-radius: var(--radius);
    }

    .legal-section__head {
        align-items: flex-start;
    }

    .legal-section__number {
        width: 38px;
        height: 38px;
        font-size: 0.72rem;
    }

    .legal-section h2 {
        font-size: 1.15rem;
        padding-top: 6px;
    }

    .legal-document__footer {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (prefers-color-scheme: dark) {
    .legal-document {
        box-shadow: 0 12px 48px rgba(0, 0, 0, 0.35);
    }
}
/* =========================================
   13. BANNER DE COOKIES (AscendBoom Style)
   ========================================= */
.cookie-banner {
    position: fixed;
    bottom: -100%; /* Oculto por defecto */
    left: 0;
    width: 100%;
    background-color: var(--bg-header); /* Se adapta al modo claro/oscuro */
    border-top: 2px solid var(--gold-primary);
    box-shadow: 0 -5px 25px rgba(0,0,0,0.2);
    z-index: 3000;
    transition: bottom 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 20px 0;
    backdrop-filter: blur(15px);
}

.cookie-banner.show {
    bottom: 0;
}

.cookie-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

.cookie-text p {
    font-size: 0.9rem;
    color: var(--text-main);
    margin: 0;
    line-height: 1.4;
}

.cookie-text a {
    color: var(--gold-primary);
    font-weight: 600;
    text-decoration: underline;
}

.btn-cookie-accept {
    background-color: var(--gold-primary);
    color: var(--navy-dark);
    border: none;
    padding: 10px 25px;
    border-radius: var(--radius);
    font-weight: 700;
    cursor: pointer;
    font-size: 0.85rem;
    white-space: nowrap;
    transition: background 0.3s ease;
}

.btn-cookie-accept:hover {
    background-color: var(--gold-hover);
}

/* Ajuste para móviles */
@media (max-width: 768px) {
    .cookie-flex {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    .cookie-banner {
        padding: 25px 0;
    }
}


