/* ===== RESET ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Las variables --primary, --secondary, --accent, --text, --bg, --dark
   se inyectan inline desde el server (Jinja) basadas en Firestore.
   AHORA: tema oscuro cinematografico, paleta morado/verde menta */
:root {
    --primary-dark: #6d28d9;
    --gray: rgba(255, 255, 255, 0.04);
    --white: #fff;
    --bg-dark: #0A0A0F;
    --bg-card: rgba(255, 255, 255, 0.04);
    --text-light: #FAFAF5;
    --text-muted: rgba(255, 255, 255, 0.6);
    --text-dim: rgba(255, 255, 255, 0.35);
    --border-soft: rgba(255, 255, 255, 0.08);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    --border-radius: 12px;
    --transition: all 0.3s ease;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text-light);
    /* Fondo MORADO MARCA super intenso + acento verde sutil */
    background:
        /* Glow morado vibrante arriba-izquierda */
        radial-gradient(ellipse 1300px 1100px at 10% -5%, rgba(167, 139, 250, 0.45) 0%, transparent 55%),
        /* Glow morado claro central */
        radial-gradient(ellipse 1000px 800px at 60% 30%, rgba(139, 92, 246, 0.30) 0%, transparent 55%),
        /* Toque verde menta sutil abajo-derecha */
        radial-gradient(ellipse 1100px 900px at 95% 100%, rgba(0, 229, 168, 0.18) 0%, transparent 55%),
        /* Base diagonal: MORADO INTENSO predominante con un toque verde al final */
        linear-gradient(165deg,
            #5a26b8 0%,
            #4a1f9e 15%,
            #3a1880 30%,
            #2e1466 45%,
            #261558 60%,
            #1f1850 75%,
            #1a2548 90%,
            #1a3d44 100%);
    background-attachment: fixed;
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

/* ===== CANVAS GLOBAL CINEMATOGRAFICO ===== */
#bg-global-canvas {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    pointer-events: none;
    opacity: 0.55;
}

.bg-vignette {
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
        radial-gradient(ellipse at top, transparent 0%, rgba(13, 10, 26, 0.3) 70%),
        radial-gradient(ellipse at bottom, transparent 0%, rgba(13, 10, 26, 0.5) 100%);
}

/* ===== WHATSAPP FLOATING BUTTON ===== */
.whatsapp-fab {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 62px;
    height: 62px;
    background: linear-gradient(135deg, #25D366, #128C7E);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow:
        0 8px 25px rgba(37, 211, 102, 0.45),
        0 0 0 0 rgba(37, 211, 102, 0.6);
    z-index: 9999;
    text-decoration: none;
    transition: transform 0.25s cubic-bezier(.16,1,.3,1), box-shadow 0.3s ease;
    animation: waPulse 2.5s ease-out infinite;
}

.whatsapp-fab:hover {
    transform: scale(1.1) rotate(-8deg);
    box-shadow:
        0 12px 35px rgba(37, 211, 102, 0.6),
        0 0 0 12px rgba(37, 211, 102, 0.0);
}

.whatsapp-fab svg {
    width: 34px;
    height: 34px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

/* Pulse ring expansivo */
.wa-pulse {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: rgba(37, 211, 102, 0.5);
    animation: waRing 2s ease-out infinite;
    z-index: -1;
}

@keyframes waPulse {
    0% { box-shadow: 0 8px 25px rgba(37, 211, 102, 0.45), 0 0 0 0 rgba(37, 211, 102, 0.5); }
    70% { box-shadow: 0 8px 25px rgba(37, 211, 102, 0.45), 0 0 0 18px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 8px 25px rgba(37, 211, 102, 0.45), 0 0 0 0 rgba(37, 211, 102, 0); }
}

@keyframes waRing {
    0% { transform: scale(1); opacity: 0.5; }
    100% { transform: scale(1.8); opacity: 0; }
}

/* Tooltip */
.wa-tooltip {
    position: absolute;
    right: 75px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(10, 10, 25, 0.95);
    color: var(--text-light);
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
    border: 1px solid rgba(37, 211, 102, 0.3);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.wa-tooltip::after {
    content: '';
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%);
    border: 6px solid transparent;
    border-left-color: rgba(10, 10, 25, 0.95);
}

.whatsapp-fab:hover .wa-tooltip {
    opacity: 1;
    transform: translateY(-50%) translateX(-4px);
}

@media (max-width: 600px) {
    .whatsapp-fab { width: 56px; height: 56px; bottom: 20px; right: 20px; }
    .whatsapp-fab svg { width: 30px; height: 30px; }
    .wa-tooltip { display: none; }
}

/* ===== SCANLINES sutil (efecto retro CRT) ===== */
.scanlines {
    position: fixed;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0, 0, 0, 0.04) 2px,
        rgba(0, 0, 0, 0.04) 4px
    );
    opacity: 0.45;
    mix-blend-mode: multiply;
}

/* Asegurar que todo el contenido vaya encima del canvas */
header, main, footer { position: relative; z-index: 5; }

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

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }

/* ===== REUTILIZABLES ===== */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 0;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-align: center;
    color: var(--text-light);
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    margin: 1rem auto 0;
    border-radius: 2px;
}

.btn {
    display: inline-block;
    background: var(--primary);
    color: var(--white);
    padding: 0.9rem 2.2rem;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: 1rem;
    text-align: center;
}

.btn:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(139, 92, 246, 0.4);
}

/* ===== HEADER ===== */
header {
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    border-bottom: 2px solid rgba(139, 92, 246, 0.3);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 0;
    /* Reducir margen del container default cuando es header */
    margin-top: 0;
    margin-bottom: 0;
}

header .container {
    padding-top: 0;
    padding-bottom: 0;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 14px;
    height: 60px;
    text-decoration: none;
    color: inherit;
}

.logo-wrap {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}

.logo-wrap picture,
.logo-wrap img {
    display: block;
}

.logo-header {
    height: 52px;
    width: auto;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.logo-link:hover .logo-header {
    transform: rotate(-3deg) scale(1.05);
}

/* Texto al lado del logo: razón social + slogan */
.header-brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
    min-width: 0;
}

.header-brand-name {
    font-size: 1.5rem;
    font-weight: 800;
    color: #1a0e2e;
    letter-spacing: -0.3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 240px;
}

.header-brand-slogan {
    font-size: 0.7rem;
    color: var(--primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-top: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 280px;
}

/* === HEADER COMPACTO EN MOBILE === */
@media (max-width: 768px) {
    .header-container {
        padding: 0.4rem 0;
    }
    .logo-link {
        padding: 1vw;
        height: 44px;
        gap: 9px;
    }
    .logo-header {
        height: 36px;
        border-radius: 12px;
    }
    .header-brand-text {
        display: flex;
    }
    .header-brand-name {
        font-size: 1.3rem;
        max-width: 150px;
        letter-spacing: -0.2px;
    }
    .header-brand-slogan {
        font-size: 0.5rem;
        letter-spacing: 1px;
        margin-top: 2px;
        max-width: 170px;
    }
    .hamburger span {
        width: 26px;
        height: 2.5px;
    }
}

/* En pantallas SUPER chicas (iphone SE, etc.) sólo el logo + nombre */
@media (max-width: 380px) {
    .header-brand-slogan { display: none; }
    .header-brand-name { font-size: 0.8rem; max-width: 130px; }
    .logo-header { height: 32px; }
    .logo-link { height: 40px; gap: 7px; }
}

.nav-menu {
    display: flex;
    gap: 1.8rem;
}

.nav-menu a {
    font-weight: 600;
    transition: var(--transition);
    position: relative;
    color: #1a0e2e;
}

.nav-menu a:hover { color: var(--primary); }

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0%;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transition: var(--transition);
    border-radius: 2px;
}

.nav-menu a:hover::after { width: 100%; }

/* Hamburguesa */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 6px;
}

.hamburger span {
    width: 30px;
    height: 3px;
    background: #1a0e2e;
    transition: var(--transition);
    border-radius: 2px;
}

/* ===== HERO ===== */
.hero {
    min-height: calc(100vh - 76px);
    background:
        radial-gradient(ellipse at 20% 30%, rgba(139, 92, 246, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 70%, rgba(0, 229, 168, 0.12) 0%, transparent 50%),
        transparent;
    display: flex;
    align-items: center;
    padding: 2rem 0;
    position: relative;
}

.hero-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
}

.hero-content,
.hero-image {
    flex: 1 1 400px;
    max-width: 600px;
}

/* === HERO: eyebrow label con borde lateral neón === */
.s-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border-left: 3px solid var(--secondary);
    padding-left: 16px;
    font-size: 13px;
    letter-spacing: 5px;
    color: var(--secondary);
    text-transform: uppercase;
    margin-bottom: 28px;
    font-weight: 600;
    opacity: 0;
    animation: slideLabel 0.6s ease 0.15s forwards;
    text-shadow: 0 0 20px rgba(0, 229, 168, 0.4);
}

.s-label-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--secondary);
    box-shadow: 0 0 12px var(--secondary);
    animation: dotPulse 1.5s ease-in-out infinite;
}

@keyframes slideLabel {
    from { opacity: 0; transform: translateX(-30px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes dotPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.3); }
}

/* === HERO: título con animación wipe-in cinematográfica === */
.hero-titulo {
    font-size: clamp(2.4rem, 5vw, 3.8rem);
    margin-bottom: 1.2rem;
    background: linear-gradient(135deg, var(--text-light) 0%, var(--secondary) 50%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.1;
    letter-spacing: -1px;
    filter: drop-shadow(0 4px 30px rgba(139, 92, 246, 0.4));
    clip-path: inset(0 100% 0 0);
    animation: wipeIn 1.1s cubic-bezier(.16,1,.3,1) 0.4s forwards;
}

@keyframes wipeIn {
    to { clip-path: inset(0 0% 0 0); }
}

/* === HERO: glitch effect on hover === */
.glitch {
    position: relative;
    cursor: default;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    background: inherit;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
}

.glitch:hover::before {
    color: var(--secondary);
    -webkit-text-fill-color: var(--secondary);
    animation: g1 0.8s infinite;
    clip-path: polygon(0 0, 100% 0, 100% 35%, 0 35%);
    opacity: 0.85;
}

.glitch:hover::after {
    color: var(--primary);
    -webkit-text-fill-color: var(--primary);
    animation: g2 0.8s infinite;
    clip-path: polygon(0 65%, 100% 65%, 100% 100%, 0 100%);
    opacity: 0.85;
}

@keyframes g1 {
    0%, 80%, 100% { transform: translate(0); }
    20% { transform: translate(-3px, 1px); }
    40% { transform: translate(3px, -1px); }
    60% { transform: translate(-2px, 0); }
}

@keyframes g2 {
    0%, 80%, 100% { transform: translate(0); }
    25% { transform: translate(3px, 1px); }
    45% { transform: translate(-2px, -1px); }
    70% { transform: translate(2px, 0); }
}

/* === HERO: párrafo y CTAs === */
.hero-body {
    font-size: 1.15rem;
    margin-bottom: 2rem;
    color: var(--text-muted);
    font-weight: 300;
    opacity: 0;
    animation: fadeUp 0.8s ease 1.1s forwards;
    line-height: 1.7;
}

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

.hero-cta-wrap {
    display: flex;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap;
    opacity: 0;
    animation: fadeUp 0.6s ease 1.4s forwards;
}

.btn-cine {
    background: linear-gradient(90deg, var(--primary), var(--primary-dark));
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.35);
    border: none;
}

.btn-cine:hover {
    background: linear-gradient(90deg, var(--primary-dark), var(--primary));
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 12px 35px rgba(139, 92, 246, 0.55);
}

.btn-ghost {
    background: transparent;
    color: var(--text-light);
    border: 1px solid rgba(255, 255, 255, 0.25);
    padding: 0.85rem 1.8rem;
    border-radius: 50px;
    font-weight: 500;
    transition: var(--transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-ghost-sm {
    padding: 0.5rem 1.1rem;
    font-size: 0.88rem;
}

/* Aviso PQRS en la sección de contacto */
.pqrs-aviso {
    max-width: 720px;
    margin: 0 auto 2rem;
    padding: 1rem 1.4rem;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.15), rgba(0, 229, 168, 0.08));
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    color: var(--text-light);
    font-size: 0.95rem;
}

.pqrs-aviso strong { color: var(--secondary); }

/* Link PQRS destacado en el nav */
.nav-pqrs {
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    color: var(--white) !important;
    padding: 0.35rem 0.9rem;
    border-radius: 50px;
    font-weight: 600 !important;
    font-size: 0.88rem;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.nav-pqrs:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(139, 92, 246, 0.5);
    color: var(--white) !important;
}

.nav-pqrs::after { display: none !important; }

/* ============================================================
   DROPDOWN "INFORMATE" - menú con documentos PDF jerárquicos
   ============================================================ */
.nav-dropdown {
    position: relative;
}

.nav-dropdown-toggle {
    cursor: pointer;
    user-select: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.nav-dropdown-toggle .caret {
    font-size: 0.7rem;
    transition: transform 0.25s ease;
}

.nav-dropdown:hover .caret,
.nav-dropdown.open .caret {
    transform: rotate(180deg);
}

.nav-dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;            /* alineado a la derecha: el menú "Infórmate" está al final del navbar */
    left: auto;
    min-width: 280px;
    max-width: min(340px, 90vw);
    /* sin overflow: recortaría los submenús laterales de las carpetas */
    background: rgba(15, 10, 30, 0.97);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 10px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    padding: 0.5rem 0;
    margin: 0;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease;
    z-index: 1000;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown.open .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-dropdown-menu li {
    list-style: none;
    padding: 0;
}

.doc-link {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 0.5rem 1rem;
    color: var(--text-light) !important;
    font-size: 0.82rem;
    font-weight: 500;
    border-radius: 6px;
    margin: 0 4px;
    transition: background 0.15s ease, color 0.15s ease;
    text-decoration: none;
    line-height: 1.3;
}

/* Nombre del documento: máx 2 líneas (el sentence-case se hace con |capitalize en Jinja) */
.doc-nombre {
    flex: 1;
    min-width: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.doc-link:hover {
    background: rgba(139, 92, 246, 0.2);
    color: var(--secondary) !important;
}

.doc-link::after { display: none !important; }

.doc-icon {
    flex-shrink: 0;
    font-size: 0.95rem;
}

/* Carpetas con submenu lateral */
.doc-folder {
    position: relative;
}

.doc-folder-name {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0.6rem 1rem;
    color: var(--text-light);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    border-radius: 6px;
    margin: 0 4px;
    transition: background 0.15s ease;
    white-space: nowrap;
}

.doc-folder-name:hover {
    background: rgba(139, 92, 246, 0.15);
}

.doc-arrow {
    margin-left: auto;
    font-style: normal;
    color: var(--secondary);
    font-weight: 800;
    transition: transform 0.2s ease;
}

.doc-folder:hover > .doc-folder-name .doc-arrow {
    transform: translateX(3px);
}

.doc-submenu {
    position: absolute;
    top: 0;
    right: 100%;          /* abre hacia la IZQUIERDA (el menú padre está pegado a la derecha) */
    left: auto;
    min-width: 240px;
    max-width: min(320px, 80vw);
    max-height: 60vh;
    overflow-y: auto;
    background: rgba(15, 10, 30, 0.97);
    backdrop-filter: blur(14px);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 10px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    padding: 0.5rem 0;
    list-style: none;
    margin: 0;            /* sin gap: el hover no se rompe al pasar al submenú */
    opacity: 0;
    visibility: hidden;
    transform: translateX(10px);
    transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease;
    z-index: 1001;
}

.doc-folder:hover > .doc-submenu,
.doc-folder.open > .doc-submenu {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

/* Responsive: en mobile, el dropdown se queda como un acordeón inline dentro del menu hamburguesa */
@media (max-width: 768px) {
    .nav-dropdown-menu,
    .doc-submenu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        background: rgba(255, 255, 255, 0.04);
        margin: 4px 0;
        padding: 0.3rem 0 0.3rem 1rem;
        border-left: 2px solid var(--secondary);
        min-width: auto;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .nav-dropdown.open .nav-dropdown-menu,
    .doc-folder.open > .doc-submenu {
        max-height: 600px;
    }

    .doc-link, .doc-folder-name {
        white-space: normal;
    }
}

.btn-ghost:hover {
    border-color: var(--secondary);
    color: var(--secondary);
    background: rgba(0, 229, 168, 0.05);
    transform: translateX(4px);
}

/* === HERO: pulse rings expandiéndose === */
.hero-rings {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
}

.p-ring {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    border: 1px solid rgba(0, 229, 168, 0.25);
    animation: ringPulse 5s ease-out infinite;
}

.p-ring:nth-child(2) {
    animation-delay: 1.6s;
    border-color: rgba(139, 92, 246, 0.25);
}

.p-ring:nth-child(3) {
    animation-delay: 3.2s;
    border-color: rgba(0, 229, 168, 0.2);
}

@keyframes ringPulse {
    0% { width: 0; height: 0; opacity: 0.7; border-width: 2px; }
    100% { width: 1100px; height: 1100px; opacity: 0; border-width: 1px; }
}

/* Asegurar que el contenido del hero quede sobre los rings */
.hero-container { position: relative; z-index: 2; }

.hero-image img,
.hero-image picture {
    border-radius: var(--border-radius);
    width: 100%;
    max-width: 450px;
    margin: 0 auto;
    height: auto;
    object-fit: contain;
    display: block;
}
.hero-image picture img {
    width: 100%;
    height: auto;
}

/* ===== PLANES — ESTILO CINEMATOGRÁFICO ===== */
.planes-cine {
    background:
        radial-gradient(ellipse at center, rgba(139, 92, 246, 0.08) 0%, transparent 60%),
        rgba(13, 10, 26, 0.4);
    position: relative;
    overflow: hidden;
    color: var(--text-light);
}

/* Container especial: ocupa 95% del viewport (no 1200px max) */
.planes-cine .container {
    width: 95vw;
    max-width: 95vw;
    padding: 4rem 0;
}

.planes-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 0.85;
}

.planes-grid-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, transparent 0%, rgba(10,10,15,0.4) 100%),
        radial-gradient(ellipse at center, transparent 50%, rgba(0,0,0,0.5) 100%);
    z-index: 2;
    pointer-events: none;
}

.planes-cine .container {
    position: relative;
    z-index: 3;
}

.planes-eyebrow {
    display: block;
    text-align: center;
    font-size: 0.85rem;
    letter-spacing: 6px;
    text-transform: uppercase;
    color: var(--secondary);
    margin-bottom: 1rem;
    font-weight: 600;
}

.section-title-light {
    color: #FAFAF5 !important;
    font-size: 3rem;
    letter-spacing: 3px;
}

.section-title-light .hl-secundario {
    color: var(--secondary);
    text-shadow: 0 0 30px rgba(0, 229, 168, 0.5);
}

.section-title-light::after {
    background: linear-gradient(90deg, var(--primary), var(--secondary)) !important;
    box-shadow: 0 0 12px rgba(139, 92, 246, 0.6);
}

.cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

/* En la seccion de planes: forzar grid de 4 columnas en desktop */
.planes-cine .cards-container {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.3rem;
    margin-top: 3.5rem;
    align-items: stretch;
}

/* Tablet: 2 x 2 */
@media (max-width: 1100px) {
    .planes-cine .cards-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.8rem;
    }
}

/* Mobile: apilar */
@media (max-width: 640px) {
    .planes-cine .cards-container {
        grid-template-columns: 1fr;
    }
    .planes-cine .container {
        width: 92vw;
        max-width: 92vw;
    }
}

/* Card sobre fondo oscuro */
.planes-cine .card {
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: var(--border-radius);
    padding: 2rem 1.3rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    transition: var(--transition);
    border: 2px solid rgba(139, 92, 246, 0.3);
    text-align: center;
    position: relative;
    overflow: visible;
    display: flex;
    flex-direction: column;
}

/* Que el botón quede pegado al fondo cuando hay diferente cantidad de beneficios */
.planes-cine .card .btn { margin-top: auto; }

.planes-cine .card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--secondary), transparent);
    opacity: 0.6;
    border-radius: var(--border-radius) var(--border-radius) 0 0;
}

.planes-cine .card:hover {
    transform: translateY(-12px);
    box-shadow: 0 30px 80px rgba(139, 92, 246, 0.4), 0 0 40px rgba(0, 229, 168, 0.1);
    border-color: var(--secondary);
    background: rgba(255, 255, 255, 0.07);
}

/* CARD DESTACADO - solo glow pulsante (sin borde rotante) */
.planes-cine .card-destacado {
    border: 2px solid var(--primary);
    transform: scale(1.06);
    background: rgba(10, 10, 18, 0.85);
    box-shadow:
        0 30px 80px rgba(139, 92, 246, 0.4),
        0 0 60px rgba(139, 92, 246, 0.25),
        inset 0 0 30px rgba(139, 92, 246, 0.05);
    animation: cardPulse 3.5s ease-in-out infinite;
    overflow: visible;
    z-index: 2;
}

/* Glow exterior pulsante (suave, no rotante) */
.planes-cine .card-destacado::before {
    content: '';
    position: absolute;
    inset: -8px;
    border-radius: inherit;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    opacity: 0.25;
    filter: blur(20px);
    z-index: -2;
    animation: glowPulse 3s ease-in-out infinite;
    height: auto;
}

@keyframes cardPulse {
    0%, 100% {
        transform: scale(1.06);
        box-shadow:
            0 30px 80px rgba(139, 92, 246, 0.4),
            0 0 60px rgba(139, 92, 246, 0.25),
            inset 0 0 30px rgba(139, 92, 246, 0.05);
    }
    50% {
        transform: scale(1.075);
        box-shadow:
            0 35px 100px rgba(139, 92, 246, 0.55),
            0 0 90px rgba(0, 229, 168, 0.35),
            inset 0 0 40px rgba(139, 92, 246, 0.1);
    }
}

@keyframes neonRotate {
    to { transform: rotate(360deg); }
}

@keyframes glowPulse {
    0%, 100% { opacity: 0.2; transform: scale(1); }
    50% { opacity: 0.45; transform: scale(1.05); }
}

/* Badge "MÁS POPULAR" - elevado, pulsante, brillante */
.badge-destacado {
    position: absolute;
    top: -16px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    color: var(--white);
    padding: 0.45rem 1.4rem;
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    box-shadow:
        0 6px 20px rgba(139, 92, 246, 0.6),
        0 0 30px rgba(0, 229, 168, 0.3);
    z-index: 10;
    white-space: nowrap;
    animation: badgePulse 2.5s ease-in-out infinite;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.badge-destacado::before {
    content: '⭐';
    margin-right: 6px;
    filter: drop-shadow(0 0 4px gold);
}

@keyframes badgePulse {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
        box-shadow:
            0 6px 20px rgba(139, 92, 246, 0.6),
            0 0 30px rgba(0, 229, 168, 0.3);
    }
    50% {
        transform: translateX(-50%) translateY(-3px);
        box-shadow:
            0 10px 30px rgba(139, 92, 246, 0.8),
            0 0 50px rgba(0, 229, 168, 0.5);
    }
}

.plan-nombre {
    font-size: 1.3rem;
    color: #FAFAF5;
    margin-bottom: 0.4rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.plan-descripcion {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.55);
    margin-bottom: 1rem;
    line-height: 1.45;
    font-weight: 300;
    min-height: 3.6em;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.plan-speed {
    font-size: clamp(3rem, 4.5vw, 5rem);
    color: var(--primary);
    margin-bottom: 0.4rem;
    font-weight: 800;
    line-height: 1;
    filter: drop-shadow(0 0 20px rgba(139, 92, 246, 0.4));
}

.plan-speed .speed-unit {
    font-size: clamp(1.1rem, 1.4vw, 1.7rem);
    color: rgba(255, 255, 255, 0.6);
    font-weight: 500;
}

.planes-cine .card-destacado .plan-speed {
    filter: drop-shadow(0 0 30px rgba(139, 92, 246, 0.7));
}

/* ============================================================
   MODAL PLAN DETALLE — estilo cinematografico
   ============================================================ */
.modal-plan {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    animation: modalFadeIn 0.25s ease;
}

.modal-plan[hidden] { display: none; }

@keyframes modalFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-plan-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.modal-plan-contenido {
    position: relative;
    background: linear-gradient(135deg, rgba(20, 20, 35, 0.97), rgba(10, 10, 15, 0.97));
    border: 2px solid var(--primary);
    border-radius: 16px;
    max-width: 540px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 2.5rem 2rem;
    text-align: center;
    box-shadow:
        0 30px 80px rgba(139, 92, 246, 0.4),
        0 0 60px rgba(0, 229, 168, 0.15);
    animation: modalSlideUp 0.35s cubic-bezier(.16,1,.3,1);
    color: var(--text-light);
}

@keyframes modalSlideUp {
    from { opacity: 0; transform: translateY(30px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-plan-close {
    position: absolute;
    top: 12px;
    right: 18px;
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-light);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.4rem;
    line-height: 1;
    transition: all 0.2s ease;
}

.modal-plan-close:hover {
    background: var(--primary);
    transform: rotate(90deg);
}

.mp-badge {
    display: inline-block;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    color: var(--white);
    padding: 0.35rem 1.2rem;
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 1rem;
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.5);
}

/* IMPORTANTE: el atributo hidden debe ganarle al display inline-block */
.mp-badge[hidden],
[hidden] {
    display: none !important;
}

.mp-nombre {
    font-size: 1.8rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.mp-descripcion {
    color: var(--text-muted);
    margin-bottom: 1.2rem;
    font-size: 0.95rem;
    line-height: 1.5;
}

.mp-speed-wrap {
    margin-bottom: 0.5rem;
}

.mp-speed {
    font-size: 5rem;
    color: var(--primary);
    font-weight: 800;
    line-height: 1;
    filter: drop-shadow(0 0 30px rgba(139, 92, 246, 0.6));
}

.mp-mbps {
    font-size: 1.6rem;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 500;
    margin-left: 4px;
}

.mp-precio {
    font-size: 1.7rem;
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.mp-precio small {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 400;
    margin-left: 4px;
}

.mp-titulo-bens {
    font-size: 1rem;
    color: var(--secondary);
    text-align: left;
    margin-bottom: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.mp-beneficios {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem 0;
    text-align: left;
    max-height: 280px;
    overflow-y: auto;
}

.mp-beneficios li {
    color: var(--text-light);
    padding: 0.6rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.95rem;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.mp-beneficios li::before {
    content: '✓';
    color: var(--secondary);
    font-weight: 700;
    flex-shrink: 0;
}

.mp-cta {
    display: block;
    width: 100%;
    background: linear-gradient(90deg, var(--primary), var(--secondary)) !important;
    color: var(--white) !important;
    padding: 0.9rem !important;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    text-align: center;
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.4);
}

.card .price {
    font-size: 1.8rem;
    font-weight: 800;
    margin: 1rem 0;
    color: var(--dark);
}

.card .price .currency,
.card .price .period {
    font-size: 1rem;
    color: var(--text);
    font-weight: 500;
}

.card .benefits {
    margin: 1.5rem 0;
    text-align: left;
}

.card .benefits li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
    color: var(--text);
}

.card .benefits li:last-child { border-bottom: none; }

/* Overrides para el card sobre fondo oscuro */
.planes-cine .card .price {
    color: #FAFAF5;
    font-size: 1.5rem;
    margin: 0.5rem 0 0.9rem;
}

.planes-cine .card .price .currency,
.planes-cine .card .price .period {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
}

.planes-cine .card .benefits {
    margin: 1rem 0;
    flex: 1;
    min-height: 11rem;
    list-style: none;
    padding: 0;
    text-align: left;
}

.planes-cine .card .benefits li {
    color: rgba(255, 255, 255, 0.75);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.85rem;
    padding: 0.45rem 0;
}

.planes-cine .card .benefits li:last-child {
    border-bottom: none;
}

/* Link "+ N beneficios mas" */
.planes-cine .card .benefits .benefits-more {
    color: var(--secondary) !important;
    cursor: pointer;
    font-style: italic;
    font-weight: 500;
    border-bottom: none !important;
    margin-top: 0.3rem;
    text-align: center;
    padding: 0.5rem 0 !important;
    transition: color 0.25s, transform 0.25s;
}

.planes-cine .card .benefits .benefits-more:hover {
    color: var(--primary) !important;
    transform: translateX(3px);
}

.planes-cine .card .btn {
    padding: 0.7rem 1.2rem;
    font-size: 0.92rem;
}

.planes-cine .card .btn {
    background: var(--primary);
    margin-top: 0.5rem;
    box-shadow: 0 4px 16px rgba(139, 92, 246, 0.3);
}

.planes-cine .card-destacado .btn {
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    color: var(--white);
}

.planes-cine .card .btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.6);
}

/* ===== NOSOTROS ===== */
.nosotros { background: transparent; }

.nosotros-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.mision,
.vision {
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-top: 4px solid var(--primary);
    color: var(--text-muted);
    transition: var(--transition);
}

.mision:hover,
.vision:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 25px 70px rgba(139, 92, 246, 0.2);
}

.vision { border-top-color: var(--secondary); }
.vision:hover { border-color: var(--secondary); box-shadow: 0 25px 70px rgba(0, 229, 168, 0.2); }

.mision h3,
.vision h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

.vision h3 { color: var(--secondary); }

.mision p,
.vision p { color: var(--text-muted); }

/* ===== CONTACTO ===== */
.contacto { background: transparent; }

.contacto-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 600;
    margin-bottom: 0.4rem;
    color: var(--text-light);
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.85rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-light);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

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

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.15);
}

.form-group input.invalid,
.form-group select.invalid,
.form-group textarea.invalid {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.12);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.req-mark {
    color: #ef4444;
    font-weight: 700;
    margin-left: 2px;
}

.label-hint {
    color: #6b7280;
    font-weight: 400;
    font-size: 0.78rem;
    display: block;
    margin-top: 2px;
}

.field-error {
    color: #ef4444;
    font-size: 0.8rem;
    margin-top: 4px;
    display: block;
    min-height: 1em;
}

.field-error:empty {
    display: none;
}

.char-counter {
    color: #6b7280;
    font-size: 0.78rem;
    text-align: right;
    margin-top: 4px;
}

.char-counter.over {
    color: #ef4444;
    font-weight: 600;
}

/* ===== BUSCADOR DE DIRECCION (con autocomplete + GPS) ===== */
.dir-buscador {
    position: relative;
    display: flex;
    gap: 6px;
    margin-bottom: 8px;
}

.dir-buscador input {
    flex: 1;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.dir-buscador input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.15);
}

.btn-gps {
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 8px;
    width: 48px;
    flex-shrink: 0;
    cursor: pointer;
    font-size: 1.2rem;
    transition: var(--transition);
}

.btn-gps:hover:not(:disabled) {
    background: var(--primary-dark);
    transform: scale(1.05);
}

.btn-gps:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.dir-sugerencias {
    position: absolute;
    top: 100%;
    left: 0;
    right: 54px;
    background: var(--white);
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    max-height: 280px;
    overflow-y: auto;
    z-index: 50;
    margin-top: 4px;
}

.dir-item {
    padding: 0.7rem 0.9rem;
    cursor: pointer;
    border-bottom: 1px solid #f3f4f6;
    transition: background 0.15s ease;
}

.dir-item:last-child { border-bottom: none; }

.dir-item:hover {
    background: #faf5ff;
}

.dir-item-titulo {
    font-weight: 600;
    color: var(--text);
    font-size: 0.95rem;
    margin-bottom: 2px;
}

.dir-item-sub {
    font-size: 0.8rem;
    color: #6b7280;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.dir-cargando, .dir-vacio {
    padding: 0.9rem;
    color: #6b7280;
    font-size: 0.9rem;
    text-align: center;
}

.dir-help {
    color: #6b7280;
    font-size: 0.8rem;
    margin-top: 4px;
    display: block;
}

.form-feedback {
    padding: 0.8rem 1rem;
    border-radius: 8px;
    font-weight: 500;
    margin-top: 0.5rem;
}

.form-feedback.success {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #86efac;
}

.form-feedback.error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

.contact-info {
    background: rgba(139, 92, 246, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: var(--border-radius);
    border: 1px solid rgba(139, 92, 246, 0.2);
    color: var(--text-muted);
}

.contact-info h3 {
    margin-bottom: 1.5rem;
    color: var(--text-light);
}

.contact-info p {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
}

.contact-info a {
    color: var(--secondary);
    transition: var(--transition);
}

.contact-info a:hover { color: var(--primary); }

/* ===== FAQ ===== */
.faq { background: transparent; }

.faq-grid {
    display: grid;
    gap: 1.5rem;
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(139, 92, 246, 0.15);
    border-left: 4px solid var(--primary);
    color: var(--text-muted);
    transition: var(--transition);
}

.faq-item:hover {
    transform: translateX(5px);
    border-left-color: var(--secondary);
    background: rgba(255, 255, 255, 0.06);
}

.faq-item h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--secondary);
}

.faq-item p { color: var(--text-muted); }

/* ===== UBICACIÓN ===== */
.ubicacion { background: transparent; }

.map-placeholder {
    background: rgba(255, 255, 255, 0.04);
    padding: 4rem 2rem;
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 1.1rem;
    border: 2px dashed rgba(255, 255, 255, 0.15);
    text-align: center;
}

.map-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1.5rem;
    margin-top: 1rem;
}

.map-iframe-wrap {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    background: #e5e7eb;
}

.map-iframe-wrap iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.map-info {
    background: linear-gradient(135deg, #faf5ff 0%, #f0fdfa 100%);
    padding: 2rem 1.5rem;
    border-radius: var(--border-radius);
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1rem;
}

.map-info p {
    margin: 0;
    font-size: 1rem;
    color: var(--text);
    line-height: 1.5;
}

.map-info .map-ciudad {
    color: #6b7280;
    font-size: 0.9rem;
}

.btn-map {
    background: var(--primary);
    color: var(--white);
    padding: 0.8rem 1.4rem;
    border-radius: 50px;
    font-weight: 600;
    text-align: center;
    transition: var(--transition);
    text-decoration: none;
    display: inline-block;
    margin-top: 0.5rem;
}

.btn-map:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(139, 92, 246, 0.3);
    color: var(--white);
}

/* ===== FOOTER ===== */
footer {
    background: var(--dark);
    color: var(--white);
    padding: 3rem 0 1rem;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
}

.footer-logo {
    height: 50px;
    width: auto;
    background: var(--white);
    padding: 6px 10px;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.footer-col h4 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--secondary);
}

.footer-col ul li {
    margin-bottom: 0.5rem;
}

.footer-col a {
    transition: var(--transition);
    color: rgba(255, 255, 255, 0.8);
}

.footer-col a:hover { color: var(--secondary); }

.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.social-links a {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.4rem 0.9rem;
    border-radius: 50px;
    font-size: 0.9rem;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--secondary);
    color: var(--dark);
}

.copyright {
    text-align: center;
    margin-top: 3rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .container { padding: 2.5rem 0; }

    .logo-horizontal-wrap { display: none; }
    .logo-cuadrado-wrap { display: inline-flex; }

    .hamburger { display: flex; }

    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        align-items: center;
        padding: 2rem;
        gap: 1.5rem;
        box-shadow: 0 10px 30px rgba(139, 92, 246, 0.25);
        border-bottom: 2px solid var(--primary);
        transform: translateY(-150%);
        opacity: 0;
        transition: var(--transition);
        pointer-events: none;
    }

    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }

    .hero-container,
    .nosotros-grid,
    .contacto-container,
    .form-row,
    .map-container {
        grid-template-columns: 1fr;
    }

    .hero-content h1 { font-size: 2.2rem; }
    .section-title { font-size: 1.9rem; }
    .card-destacado { transform: none; }
}

/* ===== ANIMACIONES ===== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

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