/* --- CONFIGURACIONES GLOBALES --- */
:root {
    --bg-dark: #0a0c10;
    --bg-pure-black: #000000;
    --bg-light: #ffffff;
    --bg-modern-gray: #f8fafc;
    --text-dark: #0f172a;
    --text-light: #ffffff;
    --text-gray: #64748b;
    --accent-color: #0066cc; 
    --whatsapp-color: #25d366;
    --border-color: #f1f5f9;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Helvetica Neue', Arial, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-light);
    overflow-x: hidden;
}

/* --- SECCIÓN 1: NAVBAR CON OPACIDAD REDUCIDA SUTIL --- */
.main-header {
    width: 100%;
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 16px 20px;
}

.nav-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

.logo-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 35px;
}

.brand-logo {
    width: auto;
    object-fit: contain;
}

.logo-left { max-height: 36px; }
.logo-right { max-height: 28px; }

.navigation-block {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 18px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 40px;
}

.nav-menu a {
    color: var(--text-light);
    text-decoration: none;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 2.5px;
    font-weight: 600;
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: var(--accent-color);
}

/* --- HERO BANNER CON EFECTO DE MOVIMIENTO (PARALLAX MOUSE FLUIDO) --- */
.hero-banner {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding-top: 140px;
    position: relative;
    overflow: hidden; /* Importante para que el fondo escalado no desborde */
}

/* Contenedor exclusivo para el fondo interactivo */
.hero-bg-dynamic {
    position: absolute;
    top: -10%;
    left: -10%;
    width: 120%;
    height: 120%;
    background: linear-gradient(rgba(0,0,0,0.35), rgba(0,0,0,0.88)), url('img/hero-bg.jpg') no-repeat center center/cover;
    z-index: 1;
    will-change: transform;
    transform: scale(1.1); /* Escala fija preestablecida */
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1); /* NUEVO: Movimiento ultra suavizado sin trabas */
}

/* NUEVO: Capa contenedora de partículas futuristas sutiles */
.hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

/* NUEVO: Estructura individual de partícula flotante */
.particle {
    position: absolute;
    background: rgba(255, 255, 255, 0.22);
    border-radius: 50%;
    pointer-events: none;
    animation: floatUpParticle 9s infinite linear;
}

@keyframes floatUpParticle {
    0% {
        transform: translateY(105vh) scale(0.4);
        opacity: 0;
    }
    15% { opacity: 0.6; }
    85% { opacity: 0.6; }
    100% {
        transform: translateY(-5vh) scale(1.1);
        opacity: 0;
    }
}

/* Forzamos que el contenido esté por encima del fondo dinámico y de las partículas */
.hero-banner > *:not(.hero-bg-dynamic):not(.hero-particles) {
    position: relative;
    z-index: 3;
}

.hero-subtitle {
    letter-spacing: 7px;
    font-size: 11px;
    margin-bottom: 12px;
    color: #94a3b8;
    font-weight: bold;
}

.hero-banner h1 {
    font-size: 58px;
    letter-spacing: 5px;
    text-transform: uppercase;
    margin-bottom: 25px;
}

/* NUEVO: Estilo sutil para el tag MATERIAL antes del logo */
.hero-material-tag {
    font-size: 15px;
    letter-spacing: 3px;
    color: #ffffff;
    font-weight: bold;
    margin-bottom: 15px;
}

.hero-logo-container {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 15px;
}

.hero-inner-logo {
    max-height: 96px;
    width: auto;
    object-fit: contain;
    opacity: 0.95;
}

/* NUEVO: Estilo técnico para el código AB300 abajo del logo */
.hero-material-code {
    font-size: 24px;
    letter-spacing: 4px;
    color: var(--accent-color-white);
    font-family: monospace;
    font-weight: bold;
    margin-bottom: 30px;
}

/* --- REPRODUCTOR DE AUDIO CON CALL TO ACTION INTEGRADO --- */
.audio-player-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 40px;
}

.audio-cta {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent-color);
    font-weight: 700;
    margin-bottom: 10px;
    animation: pulseText 2.5s infinite;
}

/* NUEVO: Forzado de tono blanco de alta pureza para legibilidad solicitada */
.audio-player-wrapper .cta-light-text {
    color: #ffffff !important;
    opacity: 0.95;
}

@keyframes pulseText {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}

.audio-player-container {
    width: 380px;
    background: rgba(15, 23, 42, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 30px;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.player-btn {
    width: 36px;
    height: 36px;
    background: var(--bg-light);
    border: none;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: transform 0.2s, background-color 0.2s;
}

.player-btn:hover { transform: scale(1.05); background-color: var(--accent-color); }
.player-btn svg { width: 14px; height: 14px; fill: var(--bg-dark); transition: fill 0.2s; }
.player-btn:hover svg { fill: white; }

.progress-box {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    gap: 4px;
}

.time-display {
    font-size: 10px;
    color: #94a3b8;
    font-family: monospace;
    text-align: left;
}

.seek-bar, .volume-bar {
    -webkit-appearance: none;
    appearance: none;
    background: rgba(255, 255, 255, 0.15);
    height: 4px;
    border-radius: 2px;
    outline: none;
    width: 100%;
}

.seek-bar::-webkit-slider-thumb, .volume-bar::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--accent-color);
    cursor: pointer;
}

.volume-box {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 80px;
}

.volume-icon { font-size: 12px; opacity: 0.7; }

/* Indicador de continuidad de Scroll */
.scroll-indicator {
    position: absolute;
    bottom: 25px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

/* NUEVO: Modificador para forzar que el indicador quede significativamente más abajo */
.indicator-lowered {
    bottom: 12px !important;
}

.scroll-indicator p {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #64748b;
}

.mouse-icon {
    width: 22px;
    height: 36px;
    border: 2px solid #64748b;
    border-radius: 12px;
    position: relative;
    display: block;
    animation: bounce 2s infinite;
}

.mouse-icon .wheel {
    width: 2px;
    height: 6px;
    background-color: var(--accent-color);
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-6px); }
    60% { transform: translateY(-3px); }
}

/* --- TOUR DE KUULA --- */
.kuula-section {
    width: 100%;
    background-color: var(--bg-light);
    padding: 0;
    margin: 0;
    display: block;
}

.kuula-container {
    width: 100%;
    height: 580px;
    display: block;
}

/* NUEVO: Alarga la dimensión de la ventana de Kuula de forma vertical */
.kuula-container-extended {
    height: 820px; /* Estirado considerable solicitado hacia abajo */
}

.kuula-container iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

/* --- SECCIÓN 3: PROCESO / GALERÍA ADAPTADA CON DESPLAZAMIENTO MANUAL MANEJABLE --- */
.gallery-section {
    background-color: var(--bg-light);
    color: var(--text-dark);
    padding: 85px 0 40px 0;
    text-align: center;
    overflow: hidden;
}

.gallery-section h2 {
    font-size: 24px;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 45px;
    font-weight: 700;
}

.carousel-wrapper {
    width: 100%;
    overflow: hidden;
    position: relative;
}

.gallery-track {
    display: flex;
    width: max-content;
    gap: 20px;
    will-change: transform;
}

/* Clase de animación asignada por JS para no interferir con el arrastre */
.track-animated {
    animation: scrollInfinite 32s linear infinite;
}

.carousel-wrapper:hover .track-animated {
    animation-play-state: paused;
}

.gallery-item {
    width: 280px;
    height: 380px;
    background-color: #f1f5f9;
    overflow: hidden;
    border-radius: 6px;
    flex-shrink: 0;
    user-select: none;
    -webkit-user-drag: none;
    transition: transform 0.3s ease;
}

.gallery-item:hover { transform: scale(1.02); }

/* CAMBIO CENTRAL DE INTERACCIÓN: Permitir el paso del clic nativo hacia el Lightbox */
.gallery-item img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    pointer-events: auto; /* Modificado con éxito de 'none' a 'auto' */
}

@keyframes scrollInfinite {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc((-280px * 6) - (20px * 6))); }
}

/* --- SECCIÓN 4: CONOCE EL MATERIAL CON CONTENEDORES PNG (LÍNEA ELIMINADA CON ÉXITO) --- */
.features-section {
    background-color: var(--bg-light);
    padding: 30px 40px 80px 40px;
    border-top: none !important; /* LÍNEA TOSEA QUITADA */
}

/* NUEVO: Estilo enfocado para el título centrado arriba de los iconos PNG */
.features-main-title {
    text-align: center;
    color: var(--text-dark);
    font-size: 24px;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 45px;
    font-weight: 700;
}

.features-row {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
}

.feature-box {
    flex: 1;
    min-width: 170px;
    text-align: center;
    color: var(--text-dark);
}

.feature-icon {
    width: auto;
    height: 42px;
    max-width: 60px;
    object-fit: contain;
    margin-bottom: 14px;
}

.feature-box h4 {
    font-size: 12px;
    text-transform: uppercase;
    color: var(--text-gray);
    margin-bottom: 5px;
    letter-spacing: 1px;
}

.feature-box p { font-size: 16px; font-weight: bold; }

/* --- SECCIÓN 5: VISUALIZADOR 3D --- */
.viewer-3d-section {
    background-color: var(--bg-pure-black);
    padding: 85px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.viewer-3d-section h3 {
    font-size: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 40px;
}

.model-container {
    width: 100%;
    max-width: 1000px;
    height: 540px;
    background: #090a0d;
    border: 1px solid #161b22;
    border-radius: 8px;
    display: block;
    position: relative;
}

model-viewer {
    width: 100%;
    height: 100%;
    display: block;
    outline: none;
}

/* --- SECCIÓN MULTIMEDIA YOUTUBE HORIZONTAL OPTIMIZADO --- */
.video-media-section {
    background-color: var(--bg-pure-black);
    padding: 0 20px 90px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.video-section-header {
    text-align: center;
    margin-bottom: 35px;
}

.video-media-section h3 {
    font-size: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 6px;
}

.sub-accent {
    font-size: 12px;
    color: var(--text-gray);
    letter-spacing: 1px;
}

.video-wrapper-responsive {
    width: 100%;
    max-width: 1000px;
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #161b22;
}

.video-wrapper-responsive iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* --- SECCIÓN 6: INTERFAZ SPLIT --- */
.contact-section {
    background-color: var(--bg-light);
    padding: 100px 40px;
}

.split-layout-container {
    max-width: 1140px;
    margin: 0 auto;
    display: flex;
    gap: 60px;
}

.downloads-column {
    flex: 1;
    color: var(--text-dark);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.section-badge {
    align-self: flex-start;
    font-size: 10px;
    letter-spacing: 2px;
    background-color: #f1f5f9;
    color: var(--accent-color);
    padding: 4px 10px;
    border-radius: 3px;
    font-weight: bold;
    margin-bottom: 15px;
}

.downloads-column h2 {
    font-size: 32px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 15px;
}

.downloads-column p {
    color: var(--text-gray);
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 35px;
}

.download-links-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Contenedor alineado horizontal para los dos botones de sitio web partidos */
.split-buttons-row {
    display: flex;
    gap: 15px;
    width: 100%;
}

.modern-download-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 22px 26px;
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-left: 3px solid var(--text-dark);
    text-decoration: none;
    color: var(--text-dark);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Ajuste proporcional para que los botones simétricos web no se desborden */
.multi-site-btn {
    flex: 1;
    padding: 18px 20px;
}

.modern-download-card:hover {
    border-left-color: var(--accent-color);
    background-color: var(--bg-modern-gray);
    transform: translateX(4px);
}

.card-inner-flex { display: flex; align-items: center; gap: 20px; width: 100%; }
.card-num { font-size: 14px; font-weight: bold; color: #cbd5e1; font-family: monospace; }
.card-main-text { display: flex; flex-direction: column; }
.card-main-text strong { font-size: 13px; font-weight: 600; letter-spacing: -0.2px; line-height: 1.3; }
.card-main-text span { font-size: 11px; color: var(--text-gray); margin-top: 2px; }
.card-arrow { font-size: 16px; color: #94a3b8; transition: transform 0.2s; }
.modern-download-card:hover .card-arrow { transform: translateX(3px); color: var(--accent-color); }

.form-column {
    flex: 1.2;
    background-color: #ffffff;
    padding: 10px 0;
}

.column-header {
    color: var(--text-dark);
    margin-bottom: 40px;
}

.column-header h2 { font-size: 24px; font-weight: 700; margin-bottom: 8px; }
.column-header p { color: var(--text-gray); font-size: 14px; }

.modern-form {
    display: flex;
    flex-direction: column;
    gap: 35px;
}

.input-row { display: flex; gap: 30px; }
.input-group { position: relative; flex: 1; }
.input-group.full-width { width: 100%; }

.input-group input, .input-group textarea {
    width: 100%;
    padding: 10px 0;
    font-size: 15px;
    color: var(--text-dark);
    border: none;
    border-bottom: 1px solid #cbd5e1;
    background: transparent;
    outline: none;
    transition: border-color 0.3s;
}

.input-group textarea { resize: none; }
.input-group label {
    position: absolute;
    top: 10px;
    left: 0;
    color: #94a3b8;
    font-size: 14px;
    pointer-events: none;
    transition: transform 0.3s, font-size 0.3s, color 0.3s;
}

.input-group input:focus ~ label,
.input-group input:not(:placeholder-shown) ~ label,
.input-group textarea:focus ~ label,
.input-group textarea:not(:placeholder-shown) ~ label {
    transform: translateY(-22px);
    font-size: 11px;
    color: var(--accent-color);
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.input-group input:focus, .input-group textarea:focus { border-bottom: 2px solid var(--accent-color); }

.form-footer { display: flex; justify-content: flex-end; }

.btn-premium-action {
    background-color: var(--text-dark);
    color: var(--text-light);
    border: none;
    padding: 18px 45px;
    font-size: 12px;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 2px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-premium-action:hover { background-color: var(--accent-color); }
.btn-icon-slide { transition: transform 0.2s ease; }
.btn-premium-action:hover .btn-icon-slide { transform: translateX(4px); }

/* --- FOOTER --- */
.main-footer {
    background-color: var(--bg-light);
    color: var(--text-dark);
    padding: 60px 20px;
    text-align: center;
    border-top: 1px solid var(--border-color);
}

.footer-logo-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    margin-bottom: 25px;
}

.footer-brand-logo {
    height: 36px;
    width: auto;
    object-fit: contain;
    opacity: 0.85;
}

.footer-brand-logo-sm {
    height: 24px; /* Ajuste preciso para homologar el peso visual contra el logo 1 */
}

.footer-credits {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-gray);
}

/* --- INTERFAZ LIGHTBOX MEJORADO CON BOTONES DE NAVEGACIÓN SECUENCIAL --- */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.97);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.lightbox.active { opacity: 1 !important; pointer-events: auto !important; display: flex !important; }
.lightbox-content { max-width: 80%; max-height: 80%; object-fit: contain; user-select: none; }
.lightbox-close { position: absolute; top: 25px; right: 35px; color: #fff; font-size: 45px; cursor: pointer; transition: color 0.2s; }
.lightbox-close:hover { color: var(--accent-color); }

/* NUEVO: Estilos dedicados para las flechas laterales internas del Lightbox */
.lightbox-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
    font-size: 38px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2010;
    transition: all 0.25s ease;
    user-select: none;
}

.lightbox-arrow:hover { background: var(--accent-color); border-color: var(--accent-color); color: white; }
.arrow-left { left: 40px; }
.arrow-right { right: 40px; }

/* --- BOTONES FLOTANTES --- */
.scroll-top-float {
    position: fixed;
    bottom: 35px;
    left: 35px;
    width: 54px;
    height: 54px;
    background-color: rgba(0, 0, 0, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 1500;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s, background-color 0.2s;
}

.scroll-top-float.visible { opacity: 1; pointer-events: auto; }
.scroll-top-float:hover { background-color: var(--accent-color); }
.scroll-top-float svg { width: 26px; height: 26px; fill: #ffffff; }

.whatsapp-float {
    position: fixed;
    bottom: 35px;
    right: 35px;
    width: 58px;
    height: 58px;
    background-color: var(--whatsapp-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.25);
    z-index: 1500;
    animation: pulse 2s infinite;
}

.whatsapp-float svg { width: 28px; height: 28px; fill: #fff; }

@keyframes pulse {
    0% { transform: scale(1); box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4); }
    50% { transform: scale(1.06); box-shadow: 0 4px 22px rgba(37, 211, 102, 0.6); }
    100% { transform: scale(1); box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4); }
}

/* --- AJUSTES RESPONSIVOS --- */
@media (max-width: 992px) {
    .split-layout-container { flex-direction: column; gap: 50px; }
    .downloads-column { text-align: center; }
    .section-badge { align-self: center; }
    .split-buttons-row { flex-direction: column; gap: 15px; } 
}

@media (max-width: 768px) {
    .main-header { padding: 12px; }
    .logo-row { gap: 15px; }
    .logo-left { max-height: 28px; }
    .logo-right { max-height: 22px; }
    .navigation-block { margin-top: 14px; }
    .nav-menu { gap: 18px; flex-wrap: wrap; justify-content: center; }
    .nav-menu a { font-size: 10px; letter-spacing: 1.5px; }
    .hero-banner h1 { font-size: 32px; }
    .hero-inner-logo { max-height: 55px; }
    .audio-player-container { width: 90%; max-width: 340px; gap: 10px; padding: 10px 15px; }
    .kuula-container { height: 400px; }
    .kuula-container-extended { height: 480px; }
    .model-container, .video-wrapper-responsive { height: 240px; }
    .contact-section { padding: 60px 20px; }
    .input-row { flex-direction: column; gap: 35px; }
    .features-row { justify-content: center; gap: 25px; }
    .footer-logo-row { gap: 20px; }
    .footer-brand-logo { height: 26px; }
    .footer-brand-logo-sm { height: 18px; } 
    .scroll-top-float { width: 46px; height: 46px; bottom: 25px; left: 25px; }
    .whatsapp-float { width: 48px; height: 48px; bottom: 25px; right: 25px; }
    .lightbox-arrow { width: 45px; height: 45px; font-size: 26px; }
    .arrow-left { left: 15px; }
    .arrow-right { right: 15px; }
}