:root {
    --primary-blue: #0056B3;
    --primary-green: #28A745;
    --dark: #111111;
    --light: #F8F9FA;
    --white: #FFFFFF;
    --text-main: #333333;
    --text-muted: #666666;
    --transition: all 0.3s ease;
    --container-width: 1200px;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-main);
    background-color: var(--white);
    overflow-x: hidden;
}

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

ul {
    list-style: none;
}

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

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    position: sticky;
    top: 0;
    width: 100%;
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    z-index: 1000;
    padding: 15px 0;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 45px;
}

nav ul {
    display: flex;
    gap: 30px;
}

nav ul li a {
    font-weight: 500;
    font-size: 15px;
}

nav ul li a:hover {
    color: var(--primary-blue);
}

.btn-cotizar {
    background-color: var(--dark);
    color: var(--white);
    padding: 10px 25px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 14px;
}

.btn-cotizar:hover {
    background-color: var(--primary-blue);
}

/* Hero */
.hero {
    position: relative;
    height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    background: url('../assets/img/hero-bg.png') no-repeat center center/cover;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 0 20px;
}

.hero h1 {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.1;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 40px;
    opacity: 0.9;
}

.hero-btns {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.btn {
    padding: 15px 35px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--white);
    color: var(--dark);
}

.btn-secondary {
    background-color: var(--dark);
    color: var(--white);
    border: 1px solid rgba(255,255,255,0.2);
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* WhatsApp Button */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25D366;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    z-index: 999;
}

.whatsapp-float img {
    width: 35px;
}

/* Footer */
footer {
    background-color: var(--dark);
    color: var(--white);
    padding: 80px 0 30px;
}

footer .container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 50px;
}

footer h4 {
    margin-bottom: 20px;
    font-size: 18px;
}

footer ul li {
    margin-bottom: 10px;
    opacity: 0.7;
}

footer ul li a:hover {
    opacity: 1;
    color: var(--primary-green);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 30px;
    text-align: center;
    font-size: 14px;
    opacity: 0.6;
}

/* Footer Enhancements */
.manuals-list {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.manual-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--white);
    opacity: 0.8;
    transition: var(--transition);
}

.manual-item:hover {
    opacity: 1;
    color: var(--primary-green);
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}


.social-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    opacity: 0.8;
}

.social-item:hover {
    opacity: 1;
}

/* Technical Lists */
.tech-list {
    display: grid;
    gap: 20px;
}

.tech-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.tech-icon {
    flex-shrink: 0;
    color: var(--primary-green);
    font-size: 1.2rem;
}

/* Maps Container */
.map-container {
    width: 100%;
    height: 400px;
    border-radius: 20px;
    overflow: hidden;
    margin-top: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* Responsiveness */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    nav ul {
        display: none; /* Mobile menu logic in JS */
    }
    .hero-btns {
        flex-direction: column;
    }
    .manuals-list {
        flex-direction: column;
        gap: 15px;
    }
}
/* Scrollytelling Section */
.scrollytelling-container {
    height: 800vh;
    position: relative;
    background: #fff;
}

.sticky-wrapper {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    overflow: hidden;
}

.content-col {
    width: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 8%;
    z-index: 10;
    background: #fff;
}

.canvas-col {
    width: 50%;
    height: 100vh;
    background: #fff;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 50px;
}

.canvas-col canvas {
    width: auto;
    height: 75vh;
    aspect-ratio: 9 / 16;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.12);
    display: block;
    object-fit: cover;
}


.scrolly-label {
    color: var(--primary-blue);
    letter-spacing: 0.3em;
    text-transform: uppercase;
    font-weight: 700;
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
    opacity: 0;
    transform: translateY(20px);
}


.scrolly-title {
    font-size: 4rem;
    color: #002D5C; /* Azul oscuro corporativo */
    line-height: 1.1;
    margin-bottom: 2rem;
    opacity: 0;
    transform: translateY(20px);
    font-weight: 700;
}

.scrolly-desc {
    font-size: 1.2rem;
    color: #475569; /* Gris suave para contraste sobre fondo claro */
    line-height: 1.8;
    text-align: justify;
    opacity: 0;
    transform: translateY(20px);
    max-width: 500px;
}


.scrollytelling-container {
    position: relative;
    z-index: 10;
}

.content-col {
    position: relative;
    z-index: 20;
}

/* Hide mobile scroll indicator by default on desktop */
.mobile-scroll-indicator {
    display: none;
}


.scrolly-preloader {
    position: fixed;
    inset: 0;
    background: #0f172a;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: opacity 0.5s ease;
}

.progress-bar-container {
    width: 250px;
    height: 4px;
    background: rgba(255,255,255,0.1);
    border-radius: 2px;
    overflow: hidden;
    margin-top: 20px;
}

.progress-bar-fill {
    height: 100%;
    background: #b8860b;
    width: 0%;
    transition: width 0.1s linear;
}

@media (max-width: 1024px) {
    .sticky-wrapper {
        flex-direction: column-reverse;
    }
    .content-col, .canvas-col {
        width: 100%;
    }
    .content-col {
        height: 50vh;
        padding: 40px;
    }
    .canvas-col {
        height: 50vh;
    }
}
/* --- Refined Elevator Navigation System (Apple Style) --- */

:root {
    --eurolift-dark: #111111;
    --eurolift-accent: #0071E3;
    --glass-bg: rgba(255, 255, 255, 0.12);
    --glass-border: rgba(255, 255, 255, 0.2);
    --smooth-curve: cubic-bezier(0.4, 0, 0.2, 1);
}

/* Ocultar Scrollbar de Sistema */
html, body {
    scrollbar-width: none;
    -ms-overflow-style: none;
}
body::-webkit-scrollbar {
    display: none;
}

/* Panel Inteligente (Oculto por defecto) */
.elevator-panel {
    position: fixed;
    left: -70px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1001;
    padding: 25px 15px;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 0 40px 40px 0;
    border: 1px solid var(--glass-border);
    transition: left 0.6s var(--smooth-curve);
    box-shadow: 10px 0 30px rgba(0,0,0,0.05);
}

.elevator-panel:hover {
    left: 0; /* Despliegue suave */
}

.panel-handle {
    position: absolute;
    right: -40px; /* Movido más a la derecha para evitar solapamiento */
    top: 50%;
    transform: translateY(-50%) rotate(-90deg);
    background: var(--eurolift-dark);
    color: white;
    font-size: 9px;
    padding: 6px 14px;
    border-radius: 12px 12px 0 0;
    font-weight: 700;
    letter-spacing: 2px;
    opacity: 0.8;
    pointer-events: auto; /* Habilitar interacción si es necesario */
    text-transform: uppercase;
    box-shadow: 5px 0 15px rgba(0,0,0,0.1);
}


.floor-buttons {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 0;
    margin: 0;
}

.floor-btn {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: #FFFFFF;
    border: 1px solid #D2D2D7;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    text-decoration: none;
    transition: all 0.4s var(--smooth-curve);
    cursor: pointer;
}

.floor-btn:hover {
    border-color: var(--eurolift-dark);
    color: var(--eurolift-dark);
    transform: scale(1.08);
}

.floor-btn.active {
    background: var(--eurolift-dark);
    color: #FFFFFF;
    border-color: var(--eurolift-dark);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

/* Elevador Lateral Sincronizado (Altura reducida para evitar WhatsApp) */
.elevator-shaft {
    position: fixed;
    right: 40px;
    top: 25vh;
    height: 50vh;
    width: 2px;
    z-index: 1000;
    pointer-events: auto; /* Habilitado para permitir arrastre */
}

.shaft-line {
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent, rgba(0,0,0,0.1), transparent);
}

.elevator-cabin {
    position: absolute;
    top: 0;
    left: 50%;
    width: 18px;
    height: 26px;
    background: var(--eurolift-dark);
    border-radius: 4px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
    margin-left: -9px;
    will-change: transform;
    transition: transform 0.2s cubic-bezier(0.33, 1, 0.68, 1);
    cursor: grab; /* Indica que se puede agarrar */
}

.elevator-cabin:active {
    cursor: grabbing; /* Indica que se está arrastrando */
}




.cabin-indicator {
    position: absolute;
    top: 4px;
    left: 50%;
    transform: translateX(-50%);
    width: 8px;
    height: 1px;
    background: var(--eurolift-accent);
    box-shadow: 0 0 5px var(--eurolift-accent);
}

/* Responsividad */
@media (max-width: 768px) {
    .elevator-panel {
        left: 50%;
        bottom: 20px;
        top: auto;
        transform: translateX(-50%);
        flex-direction: row;
        width: auto;
        border-radius: 30px;
        padding: 10px 20px;
    }
    .elevator-panel:hover { left: 50%; }
    .panel-handle { display: none; }
    .floor-buttons { flex-direction: row; gap: 12px; }
    .elevator-shaft { display: none; }
    body { scrollbar-width: auto; }
}


/* Collage Gallery Styles */
.collage-section {
    background: #000 !important;
    padding: 80px 0;
    overflow: hidden;
    position: relative;
    min-height: 850px;
}

.collage-wrapper {
    position: relative;
    max-width: 1200px;
    height: 750px;
    margin: 0 auto;
}




.collage-item {
    position: absolute;
    width: 280px;
    transition: transform 0.4s ease-out, z-index 0s;
    cursor: pointer;
    background: #fff;
    padding: 8px;
    box-shadow: 0 15px 45px rgba(0,0,0,0.6);
}

.collage-item img {
    width: 100%;
    height: auto;
    display: block;
    filter: grayscale(0.2) contrast(1.1);
}

.collage-item:hover {
    transform: scale(1.15) rotate(0deg) !important;
    z-index: 99 !important;
}

/* Torn Edge Variations using clip-path */
.torn-1 { clip-path: polygon(2% 2%, 18% 0%, 38% 3%, 58% 1%, 82% 4%, 100% 0%, 98% 38%, 100% 68%, 97% 97%, 78% 100%, 48% 97%, 22% 100%, 0% 98%, 3% 58%, 0% 28%); }
.torn-2 { clip-path: polygon(4% 0%, 28% 3%, 52% 0%, 78% 4%, 100% 0%, 97% 28%, 100% 52%, 98% 78%, 100% 100%, 78% 98%, 52% 100%, 28% 97%, 0% 100%, 3% 78%, 0% 52%, 4% 28%); }
.torn-3 { clip-path: polygon(0% 0%, 32% 3%, 62% 0%, 92% 4%, 100% 6%, 98% 42%, 100% 72%, 95% 100%, 68% 98%, 38% 100%, 8% 97%, 0% 92%, 3% 62%, 0% 32%); }

/* Floating Text Stamps */
.floating-stamp {
    position: absolute;
    color: rgba(255, 255, 255, 0.1);
    font-family: "Inter", sans-serif;
    font-weight: 900;
    font-size: 90px;
    letter-spacing: 15px;
    pointer-events: none;
    z-index: 1;
    text-transform: uppercase;
    white-space: nowrap;
    opacity: 0.2;
}

/* Positions for Collage Items - Wide Spread */
.item-1 { top: 2%; left: 5%; transform: rotate(-3deg); width: 220px; z-index: 2; }
.item-2 { top: 5%; right: 5%; transform: rotate(2deg); width: 240px; z-index: 1; }
.item-3 { top: 30%; left: 2%; transform: rotate(-2deg); width: 200px; z-index: 5; }
.item-4 { top: 20%; right: 15%; transform: rotate(3deg); width: 230px; z-index: 4; }
.item-5 { bottom: 2%; left: 5%; transform: rotate(1deg); width: 210px; z-index: 6; }
.item-6 { bottom: 5%; right: 2%; transform: rotate(-3deg); width: 220px; z-index: 3; }
.item-7 { top: 35%; left: 35%; transform: rotate(2deg); width: 300px; z-index: 15; }
.item-8 { bottom: 0%; left: 40%; transform: rotate(-1deg); width: 200px; z-index: 8; }
.item-9 { top: 10%; left: 30%; transform: rotate(3deg); width: 180px; z-index: 7; }
.item-10 { bottom: 30%; right: 5%; transform: rotate(-2deg); width: 210px; z-index: 9; }
.item-11 { top: 15%; left: 15%; transform: rotate(1deg); width: 230px; z-index: 11; }
.item-12 { top: 40%; right: 10%; transform: rotate(-3deg); width: 220px; z-index: 12; }
.item-14 { bottom: 15%; left: 25%; transform: rotate(2deg); width: 210px; z-index: 13; }
.item-15 { bottom: 20%; right: 25%; transform: rotate(-1deg); width: 240px; z-index: 14; }
.item-16 { top: 45%; left: 12%; transform: rotate(3deg); width: 200px; z-index: 16; }






@media (max-width: 768px) {
    .collage-section { padding: 60px 0; min-height: auto; }
    .collage-wrapper {
        height: auto;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 30px;
    }
    .collage-item {
        position: relative;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        bottom: auto !important;
        transform: rotate(0deg) !important;
        width: 85% !important;
    }
    .floating-stamp {
        font-size: 30px;
        letter-spacing: 5px;
        position: relative;
        margin: 10px 0;
        text-align: center;
        display: block;
        opacity: 0.3;
    }
}

.item-11 { top: 15%; left: 25%; transform: rotate(1deg); width: 190px; z-index: 11; }
.item-12 { top: 35%; right: 25%; transform: rotate(-3deg); width: 180px; z-index: 12; }
.item-14 { bottom: 20%; left: 30%; transform: rotate(2deg); width: 170px; z-index: 13; }
.item-15 { bottom: 10%; right: 35%; transform: rotate(-1deg); width: 200px; z-index: 14; }
.item-16 { top: 45%; left: 20%; transform: rotate(3deg); width: 160px; z-index: 16; }


.item-13 { top: -5%; left: 35%; transform: rotate(-2deg); width: 210px; z-index: 10; }
.item-17 { top: 0%; left: 55%; transform: rotate(3deg); width: 190px; z-index: 17; }
.item-18 { top: -8%; right: 20%; transform: rotate(-3deg); width: 220px; z-index: 18; }
.item-19 { top: 12%; right: 35%; transform: rotate(1deg); width: 200px; z-index: 19; }
.item-20 { top: -2%; left: 15%; transform: rotate(2deg); width: 180px; z-index: 20; }
.item-21 { top: 5%; right: 45%; transform: rotate(-2deg); width: 170px; z-index: 21; }


/* Mission & Vision Parabolic Animations */
.mission-vision-grid {
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 80px; 
    align-items: center;
}

.mision-card, .vision-card {
    background: var(--white); 
    padding: 50px; 
    border-radius: 30px; 
    box-shadow: 0 10px 40px rgba(0,0,0,0.05);
    opacity: 0;
    will-change: transform, opacity;
}

.mision-card h2 { font-size: 2.5rem; margin-bottom: 25px; color: var(--primary-blue); }
.vision-card h2 { font-size: 2.5rem; margin-bottom: 25px; color: var(--primary-green); }
.mision-card p, .vision-card p { font-size: 1.1rem; color: var(--text-muted); }

@keyframes curveMision {
    0% {
        opacity: 0;
        transform: translate(-200px, 150px) rotate(-15deg);
    }
    60% {
        opacity: 0.8;
        transform: translate(-40px, -20px) rotate(-5deg);
    }
    100% {
        opacity: 1;
        transform: translate(0, 0) rotate(0deg);
    }
}

@keyframes curveVision {
    0% {
        opacity: 0;
        transform: translate(200px, -150px) rotate(15deg);
    }
    60% {
        opacity: 0.8;
        transform: translate(40px, 20px) rotate(5deg);
    }
    100% {
        opacity: 1;
        transform: translate(0, 0) rotate(0deg);
    }
}

.mision-card.animate-in, .vision-card.animate-in {
    /* Animación ahora manejada por JS via Scroll-Linked */
}


@media (max-width: 768px) {
    .mission-vision-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .mision-card, .vision-card {
        padding: 30px;
        opacity: 1 !important; /* Force static visibility immediately on load */
        transform: none !important; /* Disable any entrance transitions or scroll animations */
        transition: none !important; /* Eliminate transitions to prevent visual jumps */
    }
}


/* Blueprint Parallax Layer */
.blueprint-layer {
    position: absolute;
    top: -20%;
    left: 0;
    width: 100%;
    height: 140%;
    z-index: 1;
    pointer-events: none;
    opacity: 0.15;
    display: flex;
    justify-content: center;
    align-items: center;
}

.blueprint-layer img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: grayscale(1) brightness(1.2);
}


/* Engineering Preloader */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #FFFFFF;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: opacity 0.8s cubic-bezier(0.65, 0, 0.35, 1), transform 0.8s cubic-bezier(0.65, 0, 0.35, 1);
    will-change: opacity, transform;
}

.preloader-content {
    position: relative;
    width: 300px;
    height: 450px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.pulley-system {
    position: relative;
    width: 60px;
    height: 60px;
    margin-bottom: 20px;
}

.pulley-wheel {
    width: 100%;
    height: 100%;
    border: 2px solid #333;
    border-radius: 50%;
    position: relative;
    animation: rotatePulley 2s linear infinite;
}

.pulley-wheel::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 1px;
    background: #333;
    transform: translateY(-50%);
}

.pulley-wheel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: 1px;
    height: 100%;
    background: #333;
    transform: translateX(-50%);
}

@keyframes rotatePulley {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.elevator-shaft-preloader {
    position: relative;
    width: 2px;
    height: 250px;
    background: rgba(0,0,0,0.05);
}

.elevator-cable {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary-blue); 
    transform-origin: top;
    transform: scaleY(0);
    transition: transform 0.1s linear;
    will-change: transform;
}

.elevator-cabin-preloader {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, 0px);
    width: 40px;
    height: 50px;
    border: 1.5px solid #333;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.1s linear;
    will-change: transform;
}

.preloader-counter {
    position: absolute;
    left: 50px;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--primary-blue);
    white-space: nowrap;
}

.preloader-logo {
    margin-top: 50px;
    width: 180px;
}

.preloader-logo img {
    width: 100%;
    height: auto;
}


#preloader.fade-out {
    opacity: 0;
    transform: scale(0.98);
    pointer-events: none;
}


/* --- Design Experience Page --- */
.design-page {
    background: #FFFFFF;
    overflow-x: hidden;
}

#design-experience {
    position: relative;
    min-height: 100vh;
    padding-top: 100px;
    display: flex;
    justify-content: center;
    align-items: center;
}

#selection-view, #simulation-view {
    position: absolute;
    width: 100%;
    transition: opacity 0.5s ease;
    display: none;
}

#selection-view.active, #simulation-view.active {
    display: block;
}

.selection-header {
    text-align: center;
    margin-bottom: 50px;
}

.selection-header h1 {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 10px;
}

.model-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.model-card {
    background: #f8f9fa;
    border-radius: 24px;
    padding: 40px;
    text-align: center;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(0,0,0,0.05);
}

.model-card:hover {
    transform: translateY(-15px) scale(1.05);
    background: #FFFFFF;
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
    border-color: var(--primary-blue);
}

.model-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.model-card h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #1d1d1f;
}

.model-card p {
    font-size: 0.9rem;
    color: #86868b;
}

/* Simulation View Styles */
.shaft-container {
    position: relative;
    width: 120px;
    height: 600px;
    background: rgba(0,0,0,0.03);
    border-left: 2px solid #e5e5e5;
    border-right: 2px solid #e5e5e5;
    margin: 0 auto;
}

.shaft-lines {
    position: absolute;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(0deg, transparent, transparent 49px, #e5e5e5 50px);
}

.sim-cabin {
    position: absolute;
    top: 66%; /* Starting position (Floor 1) */
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 100px;
    background: #FFFFFF;
    border: 2px solid var(--primary-blue);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: top 1s cubic-bezier(0.645, 0.045, 0.355, 1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.cabin-label {
    font-size: 10px;
    font-weight: 700;
    color: var(--primary-blue);
    text-align: center;
}

.side-panel {
    position: absolute;
    right: 100px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.8);
    backdrop-filter: blur(20px);
    padding: 30px;
    border-radius: 30px;
    border: 1px solid rgba(0,0,0,0.05);
    box-shadow: 0 15px 35px rgba(0,0,0,0.05);
}

.panel-header {
    font-size: 12px;
    font-weight: 700;
    color: #86868b;
    letter-spacing: 0.2em;
    margin-bottom: 20px;
    text-align: center;
}

.floor-btns {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.reset-btn {
    position: fixed;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    background: #FF6B00; /* Naranja de acci�n */
    color: #FFFFFF;
    border: none;
    padding: 15px 40px;
    border-radius: 50px;
    font-weight: 600;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(255, 107, 0, 0.2);
}

.reset-btn:hover {
    background: #e65a00;
    transform: translateX(-50%) translateY(-3px);
    box-shadow: 0 15px 30px rgba(255, 107, 0, 0.3);
}

/* Model Specific cabin colors */
.sim-cabin.panoramico { border-color: #00D1FF; background: rgba(0, 209, 255, 0.05); }
.sim-cabin.industrial { border-color: #333333; border-width: 4px; }
.sim-cabin.mecanico { border-color: #FF6B00; }


/* --- Updated Design Physics Styles --- */
.physics-shaft {
    position: relative;
    width: 200px;
    height: 600px;
    margin: 0 auto;
    border-left: 2px solid rgba(0,0,0,0.05);
    border-right: 2px solid rgba(0,0,0,0.05);
    background: linear-gradient(to bottom, transparent, rgba(0,0,0,0.02), transparent);
}

.sim-cabin-physics {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120px;
    height: 180px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    will-change: transform;
}

#cabin-skin {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.15));
    transition: opacity 0.3s ease;
}

.cabin-label-physics {
    position: absolute;
    bottom: -30px;
    font-size: 10px;
    font-weight: 700;
    color: var(--primary-blue);
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.model-icon img {
    width: 100px;
    height: 100px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.model-card:hover .model-icon img {
    transform: scale(1.1);
}

.side-panel {
    border-left: 4px solid var(--primary-blue);
}

.floor-btn.active {
    background: var(--primary-blue);
    box-shadow: 0 5px 15px rgba(0, 113, 227, 0.3);
}


/* Centrado Definitivo de Iconos */
.model-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.model-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 150px;
    margin-bottom: 20px;
}

.model-icon img {
    max-width: 130px;
    max-height: 130px;
    width: auto !important;
    height: auto !important;
    display: block;
    margin: 0 auto;
}


/* Ajuste de Panel de Control */
.side-panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 140px;
}

.panel-status {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(0,0,0,0.05);
    width: 100%;
    text-align: center;
    font-size: 11px;
    font-weight: 700;
    color: var(--primary-blue);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}


/* Cambio de Color de Bot�n Reset a Azul Corporativo */
.reset-btn {
    background: var(--primary-blue) !important;
    box-shadow: 0 10px 20px rgba(0, 113, 227, 0.2) !important;
}

.reset-btn:hover {
    background: #005bb5 !important; /* Un tono m�s oscuro para el hover */
    box-shadow: 0 15px 30px rgba(0, 113, 227, 0.3) !important;
}


/* Preloader Internal Logo */
.elevator-cabin-preloader {
    display: flex !important;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.cabin-internal-logo {
    width: 60%;
    height: auto;
    object-fit: contain;
    z-index: 2;
    pointer-events: none;
}


/* --- Responsive Layer --- */
@media (max-width: 1024px) {
    .container {
        padding: 0 5%;
    }
    
    .model-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .side-panel {
        right: 20px;
        padding: 20px;
    }
}

@media (max-width: 768px) {
    
    
    
    
    .selection-header h1 {
        font-size: 2.5rem;
    }
    
    .model-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    /* Layout Adaptativo: Apilado vertical */
    .mission-vision-wrapper {
        flex-direction: column;
        height: auto !important;
        gap: 40px;
    }
    
    .mission-card, .vision-card {
        width: 100% !important;
        position: relative !important;
        left: 0 !important;
        top: 0 !important;
        transform: none !important;
    }
    
    /* Botonera Flotante M�vil */
    .side-panel {
        position: fixed;
        right: 15px;
        top: 50%;
        transform: translateY(-50%);
        z-index: 100;
        background: rgba(255, 255, 255, 0.95);
        box-shadow: 0 10px 30px rgba(0,0,0,0.15);
        border-radius: 20px;
        width: 70px;
        min-width: unset;
        padding: 15px 10px;
    }
    
    .floor-btn {
        width: 50px;
        height: 50px;
        font-size: 16px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .panel-header, .panel-status {
        display: none; /* Simplificar para m�vil */
    }
    
    /* Escalado de Assets */
    .physics-shaft {
        width: 100px;
        height: 500px;
    }
    
    .sim-cabin-physics {
        width: 70px;
        height: 110px;
    }
    
    .blueprint-layer img {
        width: 200%; /* Zoom para que se vea el detalle en m�vil */
        left: -50%;
    }
    
    #pie-pagina .container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }
    
    .scrolly-title {
        font-size: 2.5rem;
    }
}

@media (max-width: 480px) {
    .selection-header h1 {
        font-size: 2rem;
    }
    
    .btn-cotizar {
        width: 100%;
        text-align: center;
    }
    
    .reset-btn {
        width: 90%;
        font-size: 14px;
        padding: 12px;
    }
}
/* --- Hide Mobile Elements by Default (Desktop First) --- */
.menu-toggle, .mobile-menu-overlay {
    display: none !important;
}

/* --- Mobile Responsive Fixes --- */
@media (max-width: 768px) {
    /* --- Reglas Globales de Tipografía y Formato para Móvil --- */
    h1, h2, h3, h4,
    .section-header, .section-title, .section-header h2, .section-title h2,
    .section-header h1, .section-title h1, .section-header h3, .section-title h3,
    .selection-header, .selection-header h2, .selection-header h1 {
        text-align: left !important;
    }

    p {
        text-align: justify !important;
        text-justify: inter-word !important;
    }

    /* Enforce safe horizontal margins/paddings on mobile containers */
    .container, section, .mision-card, .vision-card {
        padding-left: 20px !important;
        padding-right: 20px !important;
        box-sizing: border-box !important;
    }

    /* --- Scrollytelling/Canvas Hero Adjustments for Mobile --- */
    .scrollytelling-container {
        height: 350vh !important; /* Tighter scroll distance for smooth, responsive mobile swiping */
    }

    .sticky-wrapper {
        position: sticky !important;
        top: 60px !important; /* Pushes the entire sticky block below the 60px fixed header */
        height: calc(100vh - 60px) !important; /* Fits perfectly in the remaining viewport height */
        display: flex !important;
        flex-direction: column-reverse !important; /* Canvas on top, content at the bottom */
        overflow: hidden !important;
        background: #fff !important;
    }

    .canvas-col {
        height: 60% !important; /* Allocates 60% of vertical space to the elevator blueprint */
        padding: 15px 20px 30px 20px !important; /* Extra bottom padding so shadow diffuses smoothly */
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        background: #fff !important;
        position: relative !important; /* Position absolute context for scroll indicator */
        overflow: visible !important; /* Prevents shadow from being cropped abruptly */
        margin-top: 90px !important; /* CASO 1: Protects from colliding with fixed navbar */
    }

    .canvas-col canvas {
        max-height: 100% !important; /* Scale to fit container height precisely */
        max-width: 100% !important; /* Prevent horizontal spillover */
        width: auto !important;
        height: auto !important;
        aspect-ratio: 9 / 16 !important;
        object-fit: contain !important; /* El plano técnico se rescale completo de la polea a la base */
        margin: 0 auto !important;
        display: block !important;
        box-shadow: 0 6px 25px rgba(0, 0, 0, 0.06) !important; /* Apple-style soft diffused shadow */
        border-radius: 12px !important; /* CASO 1: smooth, professional corners */
        padding: 15px !important; /* CASO 1: internal padding so graphics do not touch edges */
        box-sizing: border-box !important;
        background-color: #f5f5f7 !important; /* Technical drawing blueprint background */
    }

    .mobile-scroll-indicator {
        display: flex !important;
        position: absolute !important;
        bottom: 10px !important; /* Sits perfectly in the vertical whitespace below the canvas card */
        top: auto !important;
        left: 0 !important;
        right: 0 !important;
        margin: 0 auto !important; /* Perfect horizontal centering in containing block */
        width: fit-content !important; /* Fits SVG dimension tightly */
        z-index: 100 !important;
        justify-content: center !important;
        align-items: center !important;
        animation: pulse-scroll 1.6s ease-in-out infinite !important;
        pointer-events: none !important;
        transition: opacity 0.3s ease, transform 0.3s ease !important;
    }

    @keyframes pulse-scroll {
        0%, 100% {
            opacity: 0.3;
            transform: translateY(0);
        }
        50% {
            opacity: 1;
            transform: translateY(6px); /* Pure black mouse icon pulsing elegantly */
        }
    }

    .content-col {
        height: 40% !important; /* Remaining 40% vertical space for the text details */
        padding: 15px 20px !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: flex-start !important; /* Left-align the flex children */
        text-align: left !important;
        background: #fff !important;
    }

    .scrolly-label {
        font-size: 0.75rem !important;
        margin-bottom: 0.5rem !important;
        text-align: left !important;
        letter-spacing: 0.2em !important;
    }

    .scrolly-title {
        font-size: 1.8rem !important; /* Elegant size fitting mobile screen */
        line-height: 1.2 !important;
        margin-bottom: 0.75rem !important;
        text-align: left !important;
    }

    .scrolly-desc {
        font-size: 0.9rem !important;
        line-height: 1.5 !important;
        text-align: justify !important;
        max-width: 100% !important;
        margin: 0 !important;
    }

    /* --- Service Sections Stacking (Column Layout) --- */
    #centro, 
    section > .container > div[style*="grid-template-columns: 1fr 1fr"],
    section > .container > div[style*="grid-template-columns: 1fr 1fr"] {
        display: flex !important;
        flex-direction: column !important;
        gap: 30px !important;
        padding: 0 15px !important;
    }

    #centro > div, 
    section > .container > div[style*="grid-template-columns: 1fr 1fr"] > div {
        width: 100% !important;
        max-width: 100% !important;
        order: 1 !important; /* Default: Text on top */
    }

    /* Target image containers specifically */
    #centro div:has(img),
    section > .container > div[style*="grid-template-columns: 1fr 1fr"] div:has(img) {
        order: 2 !important; /* Image below text */
        border-radius: 20px !important; /* Remove circular masks, use rounded corners */
        overflow: hidden !important;
    }

    #centro img,
    section > .container > div[style*="grid-template-columns: 1fr 1fr"] img {
        width: 100% !important;
        height: auto !important;
        max-width: 100% !important;
        border-radius: 20px !important;
        object-fit: cover !important;
    }

    /* Section headings and text adjustment */
    #centro h2, #centro h1 {
        font-size: 2rem !important;
        text-align: left !important;
    }

    #centro p {
        text-align: justify !important;
        font-size: 16px !important;
    }

    /* Buttons inside service sections */
    #centro .btn, #centro a[class*="btn"] {
        display: block !important;
        width: 100% !important;
        max-width: 250px !important;
        margin: 20px auto 0 !important;
        text-align: center !important;
    }

    header {
        position: fixed !important;
        top: 0 !important;
        left: 0;
        width: 100%;
        padding: 10px 0 !important;
        height: 60px !important;
        background-color: var(--white) !important;
        box-shadow: 0 2px 15px rgba(0,0,0,0.1) !important;
        z-index: 1000;
        display: block !important;
    }

    header .container {
        display: flex !important;
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
        padding: 0 20px !important;
        height: 100% !important;
        width: 100% !important;
        max-width: none !important;
        gap: 0 !important;
    }

    .desktop-nav, .btn-cotizar {
        display: none !important;
    }

    .menu-toggle {
        display: flex !important;
        flex-direction: column;
        gap: 5px;
        cursor: pointer;
        z-index: 1001;
        width: 30px;
        order: 1;
    }

    .menu-toggle span {
        display: block;
        width: 100%;
        height: 3px;
        background-color: var(--dark); /* Corrected variable */
        border-radius: 3px;
    }

    .logo {
        order: 2;
        margin: 0 !important;
    }

    .logo img {
        height: 35px !important;
    }

    /* Hide Floating Elements ONLY ON MOBILE */
    .elevator-panel, .elevator-shaft {
        display: none !important;
    }

    /* WhatsApp persistence on mobile */
    .whatsapp-float {
        display: flex !important;
        position: fixed !important;
        bottom: 25px !important;
        right: 25px !important;
        width: 60px !important;
        height: 60px !important;
        background-color: #25d366 !important;
        border-radius: 50% !important;
        z-index: 999 !important;
        align-items: center !important;
        justify-content: center !important;
        box-shadow: 0 4px 15px rgba(0,0,0,0.2) !important;
    }

    .whatsapp-float img {
        width: 35px !important;
        height: 35px !important;
    }

    body {
        padding-top: 60px !important;
    }

    /* Mobile Menu Overlay */
    .mobile-menu-overlay {
        display: block !important;
        position: fixed;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background-color: var(--white);
        z-index: 2000;
        transition: left 0.4s cubic-bezier(0.77,0,0.175,1);
        overflow-y: auto;
    }

    .mobile-menu-overlay.active {
        left: 0 !important;
    }

    .mobile-menu-content {
        padding: 30px 20px;
        display: block !important; /* Ensure content is visible */
    }

    .mobile-menu-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 40px;
        border-bottom: 1px solid #eee;
        padding-bottom: 20px;
    }

    .close-menu {
        background: #f5f5f7;
        border: none;
        font-size: 28px;
        color: var(--dark); /* Corrected variable */
        cursor: pointer;
        width: 44px;
        height: 44px;
        border-radius: 10px;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: 0.3s;
    }

    .close-menu:hover {
        background: #e5e5e7;
    }

    .mobile-nav {
        display: block !important;
        width: 100% !important;
    }

    .mobile-nav ul {
        list-style: none;
        padding: 0;
        display: block !important;
    }

    .mobile-nav ul li {
        margin-bottom: 10px;
        display: block !important;
    }

    .mobile-nav ul li a {
        font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
        font-size: 20px;
        font-weight: 600;
        color: var(--dark) !important; /* Force visible color */
        text-decoration: none;
        display: block;
        padding: 18px 15px; /* Even more generous padding */
        border-radius: 12px;
        transition: 0.2s;
        border-bottom: 1px solid #f9f9f9; /* Subtle separator */
    }

    .mobile-nav ul li a:active {
        background: #f5f5f7;
    }

    /* ==========================================
       NUEVOS AJUSTES RESPONSIVE (MÓVIL)
       ========================================== */
    
    /* Caso 1: Reglas de Alineación Tipográfica y Contenedores */
    .title, .text, .description {
        text-align: left !important;
    }
    
    p, .text, .description {
        text-align: justify !important;
        text-justify: inter-word !important;
    }

    .container, section {
        padding-left: 20px !important;
        padding-right: 20px !important;
        box-sizing: border-box !important;
    }

    /* Caso 2.1: Navbar Mobile (Logo izquierda, Menú derecha) */
    header .container {
        display: flex !important;
        flex-direction: row-reverse !important;
        justify-content: space-between !important;
        align-items: center !important;
    }

    .logo {
        order: 0 !important;
    }

    .menu-toggle {
        order: 0 !important;
    }

    /* Caso 2.2: Indicador de Scroll */
    .canvas-col {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .mobile-scroll-indicator {
        display: flex !important;
        position: relative !important;
        bottom: auto !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        margin: 20px auto 0 auto !important;
        width: fit-content !important;
        z-index: 100 !important;
        transform: none !important;
    }

    /* Caso 2.3: Desactivar animaciones de Misión y Visión, y añadir separación */
    .mision-card, .vision-card {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
        animation: none !important;
    }

    .mision-card {
        margin-top: 30px !important;
    }

    .vision-card {
        margin-bottom: 30px !important;
    }

    /* Caso 3: Títulos en Páginas de Servicios */
    .container h1 {
        font-size: 30px !important;
        margin-right: 20px !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
    }

    /* Caso 4: Sección de Diseño (Página Diseño) */
    #design-experience {
        height: auto !important;
        min-height: auto !important;
        display: block !important;
        padding-top: 100px !important;
        padding-bottom: 50px !important;
    }

    #selection-view, #simulation-view {
        position: relative !important;
        height: auto !important;
    }

    /* Caso 5: Reestructuración de la Página de Contacto */
    .contact-page, .contact-page body, .contact-page section {
        max-width: 100vw !important;
        overflow-x: hidden !important;
    }

    .contact-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 40px !important;
    }

    .contact-form-container {
        order: 1 !important;
    }

    .contact-info-container {
        order: 2 !important;
    }

    .contact-map-container {
        order: 3 !important;
    }

    .form-row-2col {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }

    /* Caso 5.3: Iconos Sociales de Caja Negra en Contacto */
    .contact-info-card .social-links {
        display: flex !important;
        flex-direction: row !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 30px !important;
        margin-top: 20px !important;
    }

    .contact-info-card .social-item {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 8px !important;
    }

    .contact-info-card .social-item img {
        width: 35px !important;
        height: 35px !important;
        min-width: 35px !important;
        max-width: 35px !important;
        max-height: 35px !important;
        border-radius: 0 !important; /* Force remove any border-radius */
        object-fit: contain !important; /* Keep original aspect ratio */
    }

    .contact-info-card .social-item span {
        font-size: 14px !important;
        opacity: 0.9 !important;
    }

    /* === CASO 2.1: Collage Section Compacting === */
    .collage-section {
        padding: 30px 0 !important;
        margin-top: 0 !important;
    }
    .collage-wrapper {
        gap: 20px !important;
    }
    .floating-stamp {
        display: none !important; /* Hide floating stamps on mobile to eliminate huge dead spacing */
    }

    /* === CASO 2.2: Reducir salto entre 'Pasión por la Ingeniería' y 'Nuestra Trayectoria' === */
    .scrollytelling-container + section {
        padding-top: 20px !important;
        padding-bottom: 40px !important;
    }
    .scrollytelling-container + section h2 {
        margin-top: 10px !important;
        font-size: 2.2rem !important;
        margin-bottom: 25px !important;
    }

    /* === CASO 4: Caja Negra de Información (Contacto) === */
    .contact-info-card {
        padding: 35px 25px !important; /* Premium uniform padding */
        border-radius: 30px !important;
        height: auto !important;
    }
    .contact-info-card p,
    .contact-info-card div,
    .contact-info-card h3 {
        height: auto !important;
        max-height: none !important;
        overflow: visible !important;
        text-overflow: clip !important;
        white-space: normal !important; /* Prevents text truncation */
    }
}

/* ==========================================
   NUEVOS AJUSTES GLOBALES (DESKTOP & MÓVIL)
   ========================================== */

/* Caso 2.4: Collage de Fotos (Desactivar clip-path, redondear bordes y marco blanco) */
.torn-1, .torn-2, .torn-3 {
    clip-path: none !important;
}

.collage-item {
    border-radius: 12px !important;
}

.collage-item img {
    border-radius: 12px !important;
    border: 2px solid #ffffff !important;
}

/* Contact Grid Desktop Configuration */
.contact-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 80px;
}

.contact-form-container {
    grid-column: 1;
    grid-row: 1;
}

.contact-map-container {
    grid-column: 1;
    grid-row: 2;
}

.contact-info-container {
    grid-column: 2;
    grid-row: 1 / span 2;
}

.form-row-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}