/* css/hero-marquee.css - VERSIÓN FINAL INTEGRADA (Desktop + Mobile Slider + iPad Fix) */

/* =========================================
   1. ESTRUCTURA PRINCIPAL (DESKTOP > 1024px)
   ========================================= */
   .hero-split-screen {
    position: relative;
    width: 100%;
    min-height: 100vh; /* Ocupa toda la pantalla vertical */
    display: flex;
    align-items: center;
    overflow: hidden; /* Evita que la rotación genere scroll horizontal */
    background: var(--color-primary);
    padding-top: var(--header-height); /* Deja espacio para el menú fijo */
}

/* Gradiente de transición inferior (Suelo) */
.hero-split-screen::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 150px;
    background: linear-gradient(to bottom, 
        transparent 0%, 
        var(--color-primary) 100%
    );
    z-index: 30;
    pointer-events: none;
}

/* =========================================
   2. CONTENIDO DE TEXTO (IZQUIERDA)
   ========================================= */
.hero-content {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px; /* Padding estándar para Desktop */
    z-index: 20;
    position: relative;
    pointer-events: none; /* Permite hacer click "a través" en zonas vacías */
}

.hero-text-wrapper {
    max-width: 650px;
    pointer-events: auto; /* Reactivar clicks para botones/textos */
    
    /* Fondo degradado limpio para asegurar legibilidad sobre imágenes */
    background: linear-gradient(
        90deg, 
        rgba(10, 25, 32, 1) 0%,      
        rgba(10, 25, 32, 0.85) 55%,   
        transparent 100%             
    );
    
    padding: 40px 40px 40px 0;
    border-radius: 0;
}

.hero-logo-container { margin-bottom: 25px; }
.hero-main-logo {
    max-width: 220px;
    height: auto;
    display: block;
    filter: drop-shadow(0 0 25px rgba(0, 255, 157, 0.2));
}

.hero-description {
    font-size: 1.15rem; 
    color: #b0b0c0; 
    line-height: 1.6;
    margin-bottom: 40px; 
    max-width: 90%;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.hero-actions { display: flex; gap: 15px; flex-wrap: wrap; }

/* --- ESTILOS NEÓN Y TÍTULO --- */
.neon-title {
    /* Ajuste fluido: Se adapta automáticamente */
    font-size: clamp(2rem, 4vw, 3.8rem);
    line-height: 1.1;
    margin-bottom: 25px;
    color: #00ff9d; /* Verde Neón */
    text-shadow: 0 0 30px rgba(0, 255, 157, 0.4); /* Resplandor */
    font-weight: 800;
    letter-spacing: -1px;
}

/* Botones Cápsula */
.btn-neon {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 35px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.btn-neon.primary {
    background: #00ff9d;
    color: #0a1920;
    box-shadow: 0 0 20px rgba(0, 255, 157, 0.4);
    border: 2px solid #00ff9d;
}

.btn-neon.primary:hover {
    background: #00cc7d;
    transform: translateY(-3px);
    box-shadow: 0 0 40px rgba(0, 255, 157, 0.6);
}

.btn-neon.secondary {
    background: transparent;
    color: #ffffff;
    border: 2px solid #00ff9d;
    box-shadow: inset 0 0 10px rgba(0, 255, 157, 0.1);
}

.btn-neon.secondary:hover {
    background: rgba(0, 255, 157, 0.1);
    color: #00ff9d;
    transform: translateY(-3px);
    box-shadow: inset 0 0 20px rgba(0, 255, 157, 0.3);
}

.hero-footer-text {
    margin-top: 25px;
    font-size: 0.9rem;
    color: #8899a6;
    font-weight: 500;
    display: flex; align-items: center; gap: 8px;
}
.hero-footer-text::before {
    content: ''; display: block; width: 8px; height: 8px;
    background: #00ff9d; border-radius: 50%; box-shadow: 0 0 10px #00ff9d;
}

/* =========================================
   3. VISUALES ANIMADOS (DERECHA / FONDO DESKTOP)
   ========================================= */
.hero-visuals {
    position: absolute;
    top: -20%;
    right: -5%; 
    width: 60%;
    height: 150%;
    
    display: flex;
    justify-content: center;
    gap: 30px;
    
    /* Inclinación 3D solo en escritorio */
    transform: rotate(-8deg) translateZ(0); 
    z-index: 1;
    
    /* Máscaras de desvanecimiento para escritorio */
    mask-image: 
        linear-gradient(to right, transparent 0%, black 20%, black 100%),
        linear-gradient(to bottom, transparent 0%, black 15%, black 85%, transparent 100%);
    -webkit-mask-image: 
        linear-gradient(to right, transparent 0%, black 20%, black 100%),
        linear-gradient(to bottom, transparent 0%, black 15%, black 85%, transparent 100%);
    mask-composite: intersect;
    -webkit-mask-composite: source-in;
}

.visual-column {
    width: 48%;
    max-width: 450px;
    flex-shrink: 0;
}

.visual-track {
    display: flex; 
    flex-direction: column; 
    gap: 30px;
    will-change: transform; 
    padding-bottom: 30px;
    backface-visibility: hidden;
    transform-style: preserve-3d;
}

/* Tarjeta Base */
.visual-link {
    display: block;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.6);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: 1px solid rgba(255,255,255,0.1);
    background: #000;
}

.visual-link img {
    width: 100%; 
    height: auto; 
    aspect-ratio: 16/9; /* Formato Horizontal */
    object-fit: cover; 
    display: block;
    filter: brightness(0.6) grayscale(30%); /* Oscuro en desktop */
    transition: inherit;
    transform: scale(1.01);
}

/* Hover Efecto (Solo Desktop) */
@media (hover: hover) {
    .visual-link:hover { 
        transform: scale(1.08) translateY(-5px);
        z-index: 10; 
        border-color: var(--color-accent);
        box-shadow: 0 25px 60px rgba(0, 255, 157, 0.25);
    }
    .visual-link:hover img { 
        filter: brightness(1.1) grayscale(0%); 
    }
}

/* Animaciones Verticales (Desktop) */
.scroll-up .visual-track { animation: scrollUp 70s linear infinite; }
.scroll-down .visual-track { animation: scrollDown 80s linear infinite; }

@keyframes scrollUp { 0% { transform: translateY(0); } 100% { transform: translateY(-50%); } }
@keyframes scrollDown { 0% { transform: translateY(-50%); } 100% { transform: translateY(0); } }


/* =========================================
   4. RESPONSIVE (MÓVIL < 1024px)
   ========================================= */
@media (max-width: 1024px) {
    
    /* --- ESTRUCTURA VERTICAL --- */
    .hero-split-screen {
        flex-direction: column;
        justify-content: flex-start;
        /* Sin padding lateral para Full Width */
        padding: 110px 0 30px 0; 
        height: auto;
        min-height: 100vh;
        overflow-x: hidden;
    }
    
    .hero-split-screen::after { display: none; }

    /* --- TEXTO --- */
    .hero-content {
        flex: 0 0 auto;
        width: 100%;
        margin-bottom: 40px;
        padding: 0 25px; /* Padding de seguridad para el texto */
    }
    
    .hero-text-wrapper {
        background: none;
        padding: 0;
        align-items: center;
        text-align: center;
        display: flex;
        flex-direction: column;
        width: 100%;
    }

    .tech-badges, .hero-actions, .hero-footer-text { justify-content: center; }
    .hero-description { margin: 0 auto 30px; }
    
    .neon-title { font-size: 2.2rem; } 
    .btn-neon { width: 100%; justify-content: center; max-width: 400px; }

    /* --- CARRUSEL HORIZONTAL (Móvil Base) --- */
    .hero-visuals {
        position: relative;
        width: 100%; /* Ocupa 100% del padre sin padding */
        left: 0; right: 0; margin: 0;
        transform: none;
        
        display: flex;
        flex-direction: column;
        gap: 20px;
        margin-top: auto;
        
        mask-image: none;
        -webkit-mask-image: none;
        opacity: 1;
    }

    .visual-column {
        width: 100%;
        padding: 0; margin: 0;
        
        /* Scroll Nativo Habilitado */
        overflow-x: auto; 
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
        cursor: grab;
    }
    
    .visual-column::-webkit-scrollbar { display: none; }

    .visual-track {
        display: flex;
        flex-direction: row;
        width: max-content;
        gap: 15px;
        padding: 15px 15px; /* Padding interno */
        animation: none !important; 
    }

    .visual-link {
        /* TAMAÑO MÓVIL ESTÁNDAR */
        width: 200px; 
        flex-shrink: 0;
        box-shadow: 0 4px 12px rgba(0,0,0,0.4);
    }
    
    .visual-link img {
        height: 115px; /* Proporción móvil */
        aspect-ratio: 16/9;
        filter: none !important; /* Colores vivos */
        opacity: 1 !important;
    }
    
    .visual-column:active { cursor: grabbing; }


    /* ==========================================
       5. AJUSTE "BOOSTER" PARA IPAD / TABLET
       (Solo si es más ancho que un móvil: > 700px)
       ========================================== */
    @media (min-width: 700px) {
        
        /* Texto más grande y espaciado */
        .hero-content {
            padding: 0 60px; 
            margin-bottom: 60px;
        }
        
        .neon-title { font-size: 3.5rem; } /* Título grande */
        .hero-description { font-size: 1.3rem; }
        
        /* Botones normales (no estirados) */
        .btn-neon { width: auto; padding: 15px 50px; } 

        /* Carrusel más grande y separado */
        .hero-visuals {
            gap: 30px; 
        }

        .visual-track {
            gap: 30px; 
            padding: 20px 0; 
        }

        /* TARJETAS GRANDES (TABLET SIZE) */
        .visual-link {
            width: 340px; /* Aumento significativo */
            box-shadow: 0 8px 20px rgba(0,0,0,0.5);
        }

        .visual-link img {
            height: 190px; /* Altura proporcional */
        }
    }
}