/* ========================================
EDUMOBILIARIO - CSS OPTIMIZADO 2026
Versión: 2.6 - FUENTES MEJORADAS
Mejoras: Tamaños de fuente optimizados para mejor legibilidad en móvil y desktop
======================================== */

/* ============================================================================
   1. IMPORTACIÓN DE FUENTES
============================================================================ */
@font-face {
    font-family: 'Burbank';
    src: url(fonts/BurbankBigCondensed-Bold.eot);
    src: url(fonts/BurbankBigCondensed-Bold.eot?#iefix) format("embedded-opentype"),
         url(fonts/BurbankBigCondensed-Bold.woff2) format("woff2"),
         url(fonts/BurbankBigCondensed-Bold.woff) format("woff"),
         url(fonts/BurbankBigCondensed-Bold.ttf) format("truetype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Burbank';
    src: url(fonts/BurbankBigCondensed-Black.eot);
    src: url(fonts/BurbankBigCondensed-Black.eot?#iefix) format("embedded-opentype"),
         url(fonts/BurbankBigCondensed-Black.woff2) format("woff2"),
         url(fonts/BurbankBigCondensed-Black.woff) format("woff"),
         url(fonts/BurbankBigCondensed-Black.ttf) format("truetype");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'BurbankSmall';
    src: url(fonts/BurbankBigSmall-Black.eot);
    src: url(fonts/BurbankBigSmall-Black.eot?#iefix) format("embedded-opentype"),
         url(fonts/BurbankBigSmall-Black.woff2) format("woff2"),
         url(fonts/BurbankBigSmall-Black.woff) format("woff"),
         url(fonts/BurbankBigSmall-Black.ttf) format("truetype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/* ============================================================================
   2. VARIABLES CSS
============================================================================ */
:root {
    --color-primary: #490d81;
    --color-primary-dark: #3a0b66;
    --color-primary-light: #6b2a9d;
    --color-secondary: #ff6d32;
    --color-secondary-dark: #ff3232;
    --color-accent: #66d0ff;
    --color-yellow: #ffef5a;
    --color-yellow-dark: #e6e600;
    --color-dark: #060a14;
    --color-dark-purple: #210d34;
    --color-bg: #2a2a2a;
    --font-main: 'Burbank', sans-serif;
    --font-small: 'BurbankSmall', sans-serif;
    --font-body: 'Open Sans', sans-serif;
    --spacing-xs: 8px;
    --spacing-sm: 16px;
    --spacing-md: 24px;
    --spacing-lg: 48px;
    --spacing-xl: 80px;
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.2);
    --shadow-xl: 0 12px 40px rgba(0, 0, 0, 0.25);
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-full: 9999px;
}

/* ============================================================================
   3. RESET Y ESTILOS BASE
============================================================================ */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    scroll-padding-top: 100px;
}

body {
    background: var(--color-bg);
    font-family: var(--font-main);
    line-height: 1.8;
    color: #fff;
    overflow-x: hidden;
    position: relative;
    font-size: 16px; /* MEJORADO: Tamaño base explícito */
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.img-responsive {
    width: 100%;
    height: auto;
    object-fit: cover;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-base);
}

a:focus-visible,
button:focus-visible {
    outline: 3px solid var(--color-accent);
    outline-offset: 4px;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
}

p {
    margin-bottom: var(--spacing-sm);
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: transparent;
}

/* ============================================================================
   4. ANIMACIONES
============================================================================ */
@keyframes twinkle {
    0%, 100% {
        opacity: 0;
        transform: translateZ(0);
    }
    15% {
        opacity: 0.8;
        transform: translateZ(0);
    }
    35% {
        opacity: 0.2;
        transform: translateZ(0);
    }
}

@keyframes bordes {
    0% {
        clip-path: polygon(0 0, 99% 0, 100% 95%, 2% 100%);
    }
    50% {
        clip-path: polygon(0 5%, 98% 0, 100% 95%, 2% 98%);
    }
    100% {
        clip-path: polygon(0 0, 99% 0, 100% 95%, 2% 100%);
    }
}

@keyframes granent {
    0% {
        visibility: hidden;
        opacity: 0;
        transform: scale(1.1) translateZ(0);
    }
    100% {
        visibility: inherit;
        opacity: 1;
        transform: scale(1) translateZ(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 40px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes slideInUp {
    from {
        transform: translate3d(0, 100%, 0);
        visibility: visible;
    }
    to {
        transform: translate3d(0, 0, 0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.granent {
    animation: granent 0.6s var(--transition-base) forwards;
}

.fadeInUp {
    animation: fadeInUp 0.8s var(--transition-base);
}

.slideInUp {
    animation: slideInUp 0.6s var(--transition-base);
}

/* ============================================================================
   5. UTILIDADES
============================================================================ */
.cbi {
    clear: both !important;
}

.cont {
    width: min(1200px, 90%);
    margin: 0 auto;
    position: relative;
    padding: 0 var(--spacing-md);
}

/* ============================================================================
   6. SECCIÓN PORTADA
============================================================================ */
.portada {
    background: url(../img/sky1.webp) no-repeat center;
    background-size: cover;
    width: 100%;
    min-height: 950px;
    height: 100vh;
    max-height: 1200px;
    padding: clamp(80px, 15vh, 150px) 0;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    z-index: 1;
}

.portada .cont {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding-left: clamp(40px, 8vw, 100px);
    width: 100%;
}

.portada::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url(../img/sky-mask.jpg) no-repeat center;
    background-size: cover;
    mix-blend-mode: color-dodge;
    opacity: 0.5;
    animation: twinkle 3.5s alternate infinite;
    pointer-events: none;
}

.parawall {
    width: 100%;
    height: 150px;
    position: absolute;
    bottom: -25px;
    left: 0;
    right: 0;
    z-index: 2;
    pointer-events: none;
}

.wall {
    background: url(../img/wall.png) no-repeat center top;
    background-size: cover;
    width: 100%;
    height: 100%;
}

/* ============================================================================
   7. PERSONAJES/EQUIPO PARALLAX - SIN SOBREPOSICIÓN
============================================================================ */
.equipo.parallax,
.equipo-parallax {
    position: relative;
    width: 100%;
    height: 650px;
    max-width: 1400px;
    margin: 0 auto;
    pointer-events: none;
}

.equipo.parallax img,
.equipo-parallax img {
    position: absolute;
    object-fit: contain;
    will-change: transform;
}

.equipo.parallax img.outlander {
    bottom: 0;
    left: 2%;
    width: min(300px, 21vw);
    z-index: 1;
}

.equipo.parallax img.comando {
    bottom: 0;
    left: 18%;
    width: min(350px, 25vw);
    z-index: 2;
}

.equipo.parallax img.ninja {
    bottom: 0;
    right: 20%;
    width: min(330px, 24vw);
    z-index: 3;
}

.equipo.parallax img.constructora {
    bottom: 0;
    right: 2%;
    width: min(300px, 21vw);
    z-index: 1;
}

/* ============================================================================
   8. TEXTOS DE PORTADA
============================================================================ */
.portada h1,
.portada h2 {
    font-size: clamp(40px, 7vw, 88px); /* MEJORADO: 40-88px → 48-96px */
    line-height: 1.1;
    text-transform: uppercase;
    color: #fff;
    text-shadow: 2px 4px 8px rgba(0, 0, 0, 0.4);
    max-width: 650px;
    margin-left: 0;
}

.portada h1 {
    font-size: clamp(40px, 6vw, 70px); /* MEJORADO: 35-65px → 42-72px */
    margin-bottom: var(--spacing-md);
}

.portada a {
    margin-top: var(--spacing-lg);
    display: inline-block;
}

/* ============================================================================
   9. BOTÓN CTA PRINCIPAL
============================================================================ */
.btn {
    background: linear-gradient(135deg, rgb(162, 110, 245) 0%, rgb(160, 100, 200) 100%);
    font-size: clamp(32px, 4vw, 44px); /* MEJORADO: 28-40px → 32-44px */
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    text-align: center;
    padding: 15px 30px;
    width: auto;
    max-width: 280px;
    display: inline-block;
    overflow: hidden;
    clip-path: polygon(0 0, 99% 0, 100% 95%, 2% 100%);
    animation: bordes 2.5s linear infinite;
    position: relative;
    transition: var(--transition-base);
    box-shadow: var(--shadow-lg);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(162, 110, 245, 0.4);
    will-change: transform;
}

.btn::before {
    content: '';
    background: #000;
    width: 100%;
    height: 100%;
    position: absolute;
    left: 0;
    bottom: -100%;
    z-index: -1;
    opacity: 0.1;
    transition: var(--transition-base);
}

.btn:hover::before {
    bottom: 0;
}

.btn:active {
    transform: translateY(0);
}

/* ============================================================================
   10. SECCIÓN INTRO
============================================================================ */
.intro {
    color: #fff;
    text-align: center;
    margin: -70px 0 0;
    padding: clamp(100px, 15vh, 140px) var(--spacing-xl) clamp(180px, 20vh, 250px);
    position: relative;
    z-index: 4;
}

.intro::before {
    content: '';
    background: linear-gradient(180deg, #8a36d8 0%, var(--color-dark-purple) 50%, #2f1a5a);
    clip-path: polygon(0 6%, 100% 0%, 100% 94%, 0% 100%);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.intro h4 {
    font-size: clamp(32px, 4vw, 46px); /* MEJORADO: 28-40px → 32-46px */
    text-transform: uppercase;
    margin-bottom: var(--spacing-lg);
    color: #fff;
    line-height: 1.3;
}

.intro h2 {
    font-size: clamp(28px, 3vw, 36px); /* MEJORADO: 24-32px → 28-36px */
    font-weight: 700;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: var(--spacing-sm);
    line-height: 1.3;
}

.intro h3 {
    font-size: clamp(68px, 12vw, 150px); /* MEJORADO: 60-140px → 68-150px */
    font-weight: 700;
    text-transform: uppercase;
    color: var(--color-accent);
    line-height: 0.9;
    margin-bottom: var(--spacing-lg);
}

.intro p {
    font-family: var(--font-small);
    font-size: clamp(18px, 2vw, 24px); /* MEJORADO: 16-22px → 18-24px */
    line-height: 1.8;
    max-width: 950px;
    margin: 0 auto var(--spacing-lg);
    padding: 0 var(--spacing-md);
    color: rgba(255, 255, 255, 0.95);
}

/* ============================================================================
   11. VIDEO BOX
============================================================================ */
.video-box {
    margin: var(--spacing-xl) auto;
    text-align: center;
    max-width: min(400px, 90%);
}

.video-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 178.3%;
    height: 0;
    overflow: hidden;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    background: #000;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.video-box iframe:not(.video-wrapper iframe) {
    max-width: 100%;
    height: auto;
    border: none;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
}

/* ============================================================================
   12. SECCIÓN PASES/CONTACTO
============================================================================ */
.pases {
    width: 100%;
    margin-bottom: 0;
    padding: clamp(120px, 20vh, 200px) var(--spacing-md) 50px;
    position: relative;
    z-index: 5;
}

.pases::before {
    content: '';
    background: linear-gradient(143deg, #ff6464, #ff3232 65%, #ff3232);
    clip-path: polygon(0 6%, 100% 0%, 100% 94%, 0% 100%);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

/* ============================================================================
   13. PLACA/LOGO
============================================================================ */
.placa-container {
    width: 100%;
    height: auto;
    position: relative;
    margin-top: clamp(-150px, -20vh, -205px);
}

.placa {
    width: 100%;
    max-width: min(885px, 90%);
    height: auto;
    display: block;
    margin: 0 auto;
    position: relative;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.3));
}

.placa h4 {
    font-size: clamp(35px, 7vw, 70px);
    text-transform: uppercase;
    text-align: center;
    color: #fff;
    line-height: 1;
    width: 100%;
    position: absolute;
    bottom: -10px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
}

.placa h4 span {
    display: inline-block;
}

/* ============================================================================
   14. TRIÁNGULOS DECORATIVOS
============================================================================ */
.tria {
    pointer-events: none;
    background: linear-gradient(to bottom, #271849 0%, #2a1c53 100%);
    width: 170px;
    height: 200px;
    clip-path: polygon(0 0, 87% 99%, 55% 26%);
    position: absolute;
    top: clamp(-300px, -30vh, -250px);
    left: clamp(20px, 7vw, 85px);
    transform: scale(1.6) rotate(-5deg);
    opacity: 0.8;
}

.tria::before {
    content: '';
    background: var(--color-yellow);
    width: 170px;
    height: 200px;
    position: absolute;
    top: 0;
    left: 4px;
    transform: scale(0.5);
    clip-path: polygon(0 0, 87% 99%, 55% 26%);
}

.tria.triader {
    background: linear-gradient(to bottom, #251745 0%, #2a1b50 100%);
    clip-path: polygon(71% 11%, 55% 65%, 100% 0);
    left: auto;
    right: clamp(20px, 7vw, 85px);
    transform: scale(1.6) rotate(10deg);
}

.tria.triader::before {
    background: var(--color-yellow);
    clip-path: polygon(71% 11%, 55% 65%, 100% 0);
    top: -18px;
    right: -17px;
    left: auto;
}

/* ============================================================================
   15. BOTÓN CONSEGUIR/CHAT
============================================================================ */
.conseguir {
    text-align: center;
    width: 100%;
    margin-top: var(--spacing-xl);
    position: relative;
    z-index: 99;
    padding-bottom: var(--spacing-xl);
}

.conseguir a,
.conseguir button {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    margin: 0;
    text-decoration: none;
    display: inline-block;
}

.conseguir a span,
.conseguir button span {
    background: var(--color-yellow);
    box-shadow: 0 6px 20px rgba(255, 239, 90, 0.4);
    font-family: var(--font-main);
    font-size: clamp(36px, 5vw, 54px); /* MEJORADO: 32-49px → 36-54px */
    font-weight: 700;
    color: #000;
    text-transform: uppercase;
    padding: 10px 40px 8px;
    display: inline-block;
    cursor: pointer;
    transition: var(--transition-base);
    border-radius: 4px;
}

.conseguir a:hover span,
.conseguir button:hover span {
    background: var(--color-yellow-dark);
    transform: scale(1.05) translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 239, 90, 0.5);
    will-change: transform;
}

.conseguir a:active span,
.conseguir button:active span {
    transform: scale(0.98) translateY(0);
}

/* ============================================================================
   16. SECCIÓN UBICACIÓN MEJORADA
============================================================================ */
.ubicacion-mejorada {
    background: #fff;
    padding: clamp(80px, 12vh, 100px) var(--spacing-lg);
    position: relative;
    z-index: 20;
    margin: clamp(100px, 15vh, 150px) 0;
}

.ubicacion-mejorada h2 {
    font-family: var(--font-small);
    font-size: clamp(36px, 5vw, 52px); /* MEJORADO: 32-48px → 36-52px */
    color: #333;
    text-align: center;
    margin-bottom: var(--spacing-lg);
    text-transform: uppercase;
    line-height: 1.2;
}

.ubicacion-descripcion {
    font-family: var(--font-body);
    font-size: clamp(17px, 2vw, 20px); /* MEJORADO: 16-18px → 17-20px */
    color: #666;
    text-align: center;
    max-width: 800px;
    margin: 0 auto var(--spacing-xl);
    line-height: 1.8;
}

.info-contacto-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 48px;
    max-width: 1400px;
    margin: 0 auto 80px;
    padding: 0 48px;
    grid-auto-flow: row;
}

.info-card {
    background: #fff;
    padding: 32px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: var(--transition-base);
    border: 2px solid transparent;
    min-height: 280px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.info-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--color-primary);
    will-change: transform;
}

.info-icon {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    margin-bottom: var(--spacing-sm);
    line-height: 1;
    display: block;
}

.info-card h3 {
    font-family: var(--font-small);
    font-size: clamp(22px, 3vw, 26px); /* MEJORADO: 20-24px → 22-26px */
    color: #333;
    margin-bottom: var(--spacing-sm);
    font-weight: 700;
    text-transform: uppercase;
    line-height: 1.3;
}

.info-card p {
    font-family: var(--font-body);
    font-size: clamp(15px, 2vw, 17px); /* MEJORADO: 14-16px → 15-17px */
    color: #555;
    line-height: 1.8;
    margin-bottom: var(--spacing-sm);
}

.info-card a {
    color: var(--color-primary-dark);
    font-weight: 600;
    transition: var(--transition-base);
    text-decoration: underline;
    text-decoration-color: transparent;
}

.info-card a:hover {
    color: var(--color-accent);
    text-decoration-color: currentColor;
}

.whatsapp-btn {
    display: inline-block;
    background: #25D366;
    color: #fff !important;
    padding: 12px 25px;
    border-radius: var(--radius-full);
    font-family: var(--font-small);
    font-size: 16px;
    font-weight: 600;
    margin-top: var(--spacing-sm);
    transition: var(--transition-base);
    text-decoration: none !important;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

.whatsapp-btn:hover {
    background: #20BA5A;
    transform: scale(1.05);
    box-shadow: 0 6px 18px rgba(37, 211, 102, 0.4);
}

.rating {
    font-size: 2rem;
    color: #FFD700;
    margin: var(--spacing-sm) 0;
    letter-spacing: 3px;
    line-height: 1;
}

.ver-opiniones {
    display: inline-block;
    color: var(--color-primary) !important;
    font-family: var(--font-body);
    font-size: 14px;
    margin-top: var(--spacing-sm);
    padding: 8px 20px;
    border: 2px solid var(--color-primary);
    border-radius: var(--radius-full);
    transition: var(--transition-base);
    text-decoration: none !important;
}

.ver-opiniones:hover {
    background: var(--color-primary);
    color: #fff !important;
}

.mapa-grande {
    max-width: 1200px;
    margin: 0 auto;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    position: relative;
}

.mapa-grande iframe {
    width: 100%;
    height: clamp(400px, 50vh, 600px);
    border: none;
    display: block;
}

.mapa-acciones {
    display: flex;
    justify-content: center;
    gap: var(--spacing-md);
    padding: var(--spacing-lg);
    background: #f8f9fa;
    flex-wrap: wrap;
}

.btn-como-llegar,
.btn-ver-maps {
    display: inline-block;
    font-family: var(--font-small);
    font-size: clamp(17px, 2vw, 19px); /* MEJORADO: 16-18px → 17-19px */
    font-weight: 600;
    padding: 15px 40px;
    border-radius: var(--radius-full);
    transition: var(--transition-base);
    text-decoration: none;
    text-transform: uppercase;
}

.btn-como-llegar {
    background: var(--color-primary);
    color: #fff;
    box-shadow: 0 5px 20px rgba(73, 13, 129, 0.3);
}

.btn-como-llegar:hover {
    background: var(--color-primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(73, 13, 129, 0.4);
}

.btn-ver-maps {
    background: #fff;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
}

.btn-ver-maps:hover {
    background: var(--color-primary);
    color: #fff;
    transform: translateY(-3px);
}

/* ============================================================================
   17. EXIT POPUP - CON WHATSAPP Y LLAMADA
============================================================================ */
#exit-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.92);
    z-index: 99999;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

#exit-popup.show {
    display: flex;
    opacity: 1;
    animation: fadeIn 0.3s ease forwards;
}

#exit-popup.ocultar {
    display: none;
}

#exit-popup .modal-content {
    background: linear-gradient(135deg, #8a36d8 0%, var(--color-primary) 100%);
    padding: clamp(40px, 8vw, 60px) clamp(30px, 6vw, 50px);
    border-radius: 24px;
    max-width: min(580px, 92%);
    width: 100%;
    position: relative;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.7);
    animation: slideUp 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    text-align: center;
    color: #fff;
    transform: translateY(50px);
}

#exit-popup .close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.3);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-weight: 300;
}

#exit-popup .close-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: rotate(90deg) scale(1.1);
    border-color: rgba(255, 255, 255, 0.5);
}

#exit-popup h2 {
    font-size: clamp(32px, 5vw, 42px); /* MEJORADO: 28-38px → 32-42px */
    margin-bottom: 20px;
    line-height: 1.2;
    font-weight: 700;
    text-transform: uppercase;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
}

#exit-popup p {
    font-size: clamp(18px, 2.5vw, 21px); /* MEJORADO: 16-19px → 18-21px */
    margin-bottom: 16px;
    line-height: 1.6;
    opacity: 0.95;
}

#exit-popup .popup-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin: 32px 0 24px;
}

#exit-popup .btn-whatsapp-popup {
    background: #25D366;
    color: #fff;
    font-family: var(--font-main);
    font-size: clamp(18px, 3vw, 21px); /* MEJORADO: 17-20px → 18-21px */
    font-weight: 700;
    padding: 18px 32px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.4);
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

#exit-popup .btn-whatsapp-popup:hover {
    background: #20BA5A;
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(37, 211, 102, 0.5);
}

#exit-popup .btn-phone-popup {
    background: #fff;
    color: var(--color-primary);
    font-family: var(--font-main);
    font-size: clamp(18px, 3vw, 21px); /* MEJORADO: 17-20px → 18-21px */
    font-weight: 700;
    padding: 18px 32px;
    border: 3px solid var(--color-primary);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    box-shadow: 0 8px 20px rgba(255, 255, 255, 0.2);
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

#exit-popup .btn-phone-popup:hover {
    background: var(--color-primary);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(255, 255, 255, 0.3);
}

#exit-popup .btn-continue-popup {
    background: transparent;
    color: rgba(255, 255, 255, 0.8);
    font-family: var(--font-body);
    font-size: clamp(15px, 2vw, 17px); /* MEJORADO: 14-16px → 15-17px */
    font-weight: 600;
    padding: 12px 30px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
    display: block;
}

#exit-popup .btn-continue-popup:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.5);
}

/* ============================================================================
   18. FOOTER
============================================================================ */
.pie {
    background: linear-gradient(180deg, var(--color-dark-purple) 0%, var(--color-dark) 100%);
    padding: var(--spacing-xl) var(--spacing-md);
    text-align: center;
    color: #fff;
    position: relative;
    z-index: 6;
}

.pie h3 {
    font-size: clamp(48px, 6vw, 68px); /* MEJORADO: 40-60px → 48-68px */
    margin-bottom: var(--spacing-sm);
    color: var(--color-accent);
    text-transform: uppercase;
    line-height: 1.2;
}

.pie h4 {
    font-size: clamp(20px, 2.5vw, 28px); /* MEJORADO: 18-25px → 20-28px */
    margin: 0 auto var(--spacing-md);
    font-weight: 400;
    opacity: 0.9;
    line-height: 1.4;
    max-width: 900px;
    padding: 0 var(--spacing-md);
}

.final {
    padding: var(--spacing-lg) var(--spacing-md);
    background: var(--color-dark);
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
}

.final p {
    font-size: 14px;
    margin: 0;
}

.fechay {
    font-weight: 700;
    color: var(--color-accent);
}

/* ============================================================================
   19. MAPA ALTERNATIVO
============================================================================ */
.edumobiliario-map-container {
    margin: clamp(80px, 15vh, 120px) auto;
    padding: 0 var(--spacing-md);
    max-width: 1200px;
}

.edumobiliario-map-title {
    font-size: clamp(28px, 4vw, 36px); /* MEJORADO: 24-32px → 28-36px */
    text-align: center;
    color: var(--color-primary);
    margin-bottom: var(--spacing-lg);
    text-transform: uppercase;
    line-height: 1.2;
}

.edumobiliario-map-box {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.edumobiliario-map-box iframe {
    width: 100%;
    height: clamp(320px, 40vh, 500px);
    border: none;
    display: block;
}

/* ============================================================================
   20. CATÁLOGO/PRODUCTOS
============================================================================ */
.catalogo-container,
.productos-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: var(--spacing-xl) var(--spacing-lg);
}

.catalogo-titulo,
.productos-titulo {
    text-align: center;
    margin-bottom: var(--spacing-xl);
    padding: 0 var(--spacing-lg);
    font-size: clamp(36px, 5vw, 52px); /* MEJORADO: 32-48px → 36-52px */
    color: #333;
}

.catalogo-productos,
.productos-grid,
.muebles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 48px;
    margin-bottom: var(--spacing-xl);
    grid-auto-rows: auto;
    align-items: start;
}

.producto-item,
.producto-card,
.mueble-card {
    background: #fff;
    border-radius: var(--radius-md);
    padding: var(--spacing-md);
    box-shadow: var(--shadow-md);
    transition: var(--transition-base);
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    min-height: 280px;
}

.producto-item:hover,
.producto-card:hover,
.mueble-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.producto-imagen {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    margin-bottom: var(--spacing-sm);
}

.producto-info {
    padding: var(--spacing-sm);
}

.producto-titulo {
    font-size: clamp(20px, 2vw, 24px); /* MEJORADO: 18-22px → 20-24px */
    color: #333;
    margin-bottom: var(--spacing-xs);
    line-height: 1.3;
}

.producto-descripcion {
    font-size: 15px; /* MEJORADO: 14px → 15px */
    color: #666;
    line-height: 1.6;
    margin-bottom: var(--spacing-sm);
}

/* ============================================================================
   21. MEDIA QUERIES - AJUSTES RESPONSIVE
============================================================================ */

/* Tamaño base de fuente para desktop */
@media (min-width: 768px) {
    body {
        font-size: 40px; /* MEJORADO: Tamaño base para desktop */
    }

    .producto-descripcion {
        font-size: 50px; /* MEJORADO: 16px → 17px */
    }
}

@media (min-width: 1600px) {
    .cont {
        width: min(1600px, 85%);
        padding: 0 var(--spacing-xl);
    }

    .portada .cont {
        padding-left: clamp(80px, 10vw, 150px);
    }

    .equipo.parallax {
        height: 700px;
    }

    .equipo.parallax img.outlander {
        left: 5%;
        width: min(330px, 20vw);
    }

    .equipo.parallax img.comando {
        left: 22%;
        width: min(380px, 24vw);
    }

    .equipo.parallax img.ninja {
        right: 24%;
        width: min(360px, 23vw);
    }

    .equipo.parallax img.constructora {
        right: 5%;
        width: min(330px, 20vw);
    }

    .info-contacto-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 64px;
    }

    .catalogo-productos,
    .productos-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 64px;
    }
}

@media (min-width: 1200px) and (max-width: 1599px) {
    .info-contacto-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 48px;
    }

    .catalogo-productos,
    .productos-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 48px;
    }
}

@media (min-width: 1024px) and (max-width: 1199px) {
    .portada .cont {
        padding-left: clamp(60px, 8vw, 100px);
    }

    .equipo.parallax {
        height: 600px;
    }

    .equipo.parallax img.outlander {
        left: 3%;
    }

    .equipo.parallax img.comando {
        left: 20%;
    }

    .equipo.parallax img.ninja {
        right: 22%;
    }

    .equipo.parallax img.constructora {
        right: 3%;
    }

    .info-contacto-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 40px;
    }

    .catalogo-productos,
    .productos-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 40px;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .cont {
        width: calc(100% - 40px);
    }

    .portada .cont {
        padding-left: clamp(40px, 6vw, 80px);
    }

    .portada {
        min-height: 750px;
    }

    .equipo.parallax {
        height: 500px;
    }

    .equipo.parallax img.constructora,
    .equipo.parallax img.outlander {
        display: none !important;
    }

    .equipo.parallax img.comando {
        left: 15%;
        width: min(310px, 34vw);
    }

    .equipo.parallax img.ninja {
        right: 15%;
        width: min(290px, 32vw);
    }

    .intro {
        padding: 80px var(--spacing-md) 150px;
    }

    .info-contacto-grid,
    .catalogo-productos,
    .productos-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
        padding: 32px 24px;
    }
}

@media (max-width: 768px) {
    .portada {
        min-height: 650px;
        padding-top: 80px;
    }

    .portada .cont {
        padding-left: var(--spacing-md);
    }

    .equipo.parallax {
        height: 450px;
    }

    .equipo.parallax img.constructora,
    .equipo.parallax img.outlander {
        display: none !important;
    }

    .equipo.parallax img.comando {
        left: 10%;
        width: min(250px, 40vw);
    }

    .equipo.parallax img.ninja {
        right: 10%;
        width: min(230px, 38vw);
    }

    .parawall {
        height: 100px;
        bottom: -15px;
    }

    .intro {
        margin: -50px 0 0;
        padding: 60px var(--spacing-sm) 120px;
    }

    .intro p {
        padding: 0 var(--spacing-sm);
    }

    .pases {
        padding: 100px var(--spacing-sm) 40px;
    }

    .placa-container {
        margin-top: -120px;
    }

    .conseguir {
        padding-bottom: var(--spacing-lg);
    }

    .ubicacion-mejorada {
        padding: 60px var(--spacing-sm);
        margin: 80px 0;
    }

    .info-contacto-grid,
    .catalogo-productos,
    .productos-grid {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 24px 16px;
    }

    .mapa-acciones {
        flex-direction: column;
        gap: var(--spacing-sm);
    }

    .btn-como-llegar,
    .btn-ver-maps {
        width: 100%;
        text-align: center;
    }

    .tria,
    .tria.triader {
        transform: scale(1.2) rotate(-5deg);
        top: -200px;
    }

    #exit-popup .popup-buttons {
        grid-template-columns: 1fr;
        gap: 12px;
        margin: 24px 0 20px;
    }
}

@media (max-width: 600px) {
    .portada {
        min-height: 550px;
        padding-top: 60px;
    }

    .portada .cont {
        padding-left: var(--spacing-sm);
    }

    .equipo.parallax {
        height: 400px;
    }

    .equipo.parallax img.comando {
        left: 8%;
        width: min(210px, 44vw);
    }

    .equipo.parallax img.ninja {
        right: 8%;
        width: min(190px, 42vw);
    }

    .video-box {
        max-width: min(340px, 95%);
    }

    #exit-popup .modal-content {
        padding: 35px 25px;
        border-radius: 20px;
        max-width: 95%;
    }

    #exit-popup .close-btn {
        width: 40px;
        height: 40px;
        top: 15px;
        right: 15px;
        font-size: 24px;
    }

    .info-card {
        padding: var(--spacing-md);
    }

    .pie {
        padding: var(--spacing-lg) var(--spacing-sm);
    }
}

@media (max-width: 480px) {
    .portada {
        min-height: 500px;
    }

    .equipo.parallax {
        height: 380px;
    }

    .equipo.parallax img.comando {
        left: 5%;
        width: min(180px, 46vw);
    }

    .equipo.parallax img.ninja {
        right: 5%;
        width: min(170px, 44vw);
    }

    .video-box {
        max-width: min(280px, 95%);
    }

    .conseguir span {
        font-size: clamp(28px, 6vw, 36px); /* MEJORADO: Ajuste para móviles pequeños */
        padding: 8px 25px 6px;
    }

    .placa-container {
        margin-top: -100px;
    }

    .tria,
    .tria.triader {
        transform: scale(1) rotate(-5deg);
        top: -180px;
    }
}

@media (max-width: 380px) {
    .portada {
        min-height: 450px;
    }

    .equipo.parallax {
        height: 350px;
    }

    .placa-container {
        margin-top: -80px;
    }

    .placa {
        max-width: 95%;
    }

    .video-box {
        max-width: min(250px, 95%);
    }

    .tria,
    .tria.triader {
        transform: scale(0.8);
        top: -150px;
    }
}

@media (hover: none) and (pointer: coarse) {
    #exit-popup .close-btn:active {
        background: rgba(255, 255, 255, 0.3);
    }

    #exit-popup .btn-whatsapp-popup:active {
        background: #20BA5A;
    }

    #exit-popup .btn-phone-popup:active {
        background: var(--color-primary);
        color: #fff;
    }
}

/* ============================================================================
   22. MODO OSCURO
============================================================================ */
@media (prefers-color-scheme: dark) {
    .ubicacion-mejorada {
        background: #1a1a1a;
    }

    .ubicacion-mejorada h2 {
        color: #fff;
    }

    .ubicacion-descripcion {
        color: rgba(255, 255, 255, 0.8);
    }

    .info-card {
        background: #2a2a2a;
        border-color: rgba(255, 255, 255, 0.1);
    }

    .info-card h3 {
        color: #fff;
    }

    .info-card p {
        color: rgba(255, 255, 255, 0.8);
    }

    .mapa-acciones {
        background: #1a1a1a;
    }
}

/* ============================================================================
   23. ACCESIBILIDAD
============================================================================ */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ============================================================================
   24. IMPRESIÓN
============================================================================ */
@media print {
    .portada::before,
    .btn,
    .conseguir,
    #exit-popup,
    .tria,
    .tria.triader,
    .equipo.parallax {
        display: none !important;
    }

    body {
        background: #fff;
        color: #000;
    }

    .intro,
    .pases {
        background: #fff !important;
    }

    .intro::before,
    .pases::before {
        display: none;
    }
}

/* ============================================================================
   25. OPTIMIZACIONES FINALES
============================================================================ */
.equipo.parallax img,
.placa,
.video-wrapper {
    content-visibility: auto;
    contain-intrinsic-size: auto 500px;
}