/* =====================================================================
   HOME.CSS - Estilos exclusivos para la página principal (index.php)
   ===================================================================== */

/* =====================================================================
   NUEVO HERO REESTRUCTURADO (BANDA ÚNICA Y SEPARADOR)
   ===================================================================== */

/* LA BANDA GIGANTE (Único contenedor principal) */
.hero-banner-full {
    width: 100%;
    box-sizing: border-box;
    background: rgba(10, 14, 23, 0.4); 
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 50px 0 40px 0; 
    margin-bottom: 50px; 
    position: relative;
    overflow: hidden; 
}

.hero-banner-full .hero-code-logo {
    font-size: 50px;
    margin-bottom: -5px;
    text-align: center;
}

/* 1. TEXTO ESTÁTICO SUPERIOR */
.hero-static-content {
    max-width: 900px; 
    margin: 0 auto 35px auto; 
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 2;
    width: 100%;
    padding: 0 25px; 
    box-sizing: border-box;
}

.hero-static-content h1 {
    font-size: 38px;
    font-weight: 800;
    color: white;
    margin: 10px 0;
    letter-spacing: -1px;
    text-shadow: 0 4px 20px rgba(0,0,0,0.9);
}
.hero-static-content h1 span { color: var(--primary); }

.hero-static-content p {
    font-size: 15px;
    color: #f8fafc;
    line-height: 1.6;
    font-weight: 300;
    margin: 0;
    text-shadow: 0 2px 10px rgba(0,0,0,0.9);
}

/* LA LÍNEA SEPARADORA ELEGANTE (Más visible y con ligero resplandor) */
.hero-separator {
    width: 100%;
    max-width: 1200px;
    height: 1px;
    /* Subimos la opacidad del blanco de 0.15 a 0.5 */
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
    /* Le damos un toque de luz mágica */
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
    margin: 0 auto 40px auto; 
    box-sizing: border-box;
}

/* 2. SLIDER DINÁMICO */
.hero-projects-slider {
    position: relative;
    width: 100%; 
    min-height: 110px; 
    z-index: 10;
}

.hero-slide {
    position: absolute;
    top: 0; left: 0; width: 100%;
    opacity: 0;
    visibility: hidden;
    transform: translateX(50px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.hero-slide.active {
    position: relative;
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

/* Tarjeta 100% invisible */
.slide-transparent-card {
    width: 100%; 
    display: flex;
    justify-content: center; 
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    padding: 0;
}

/* El contenido interno que se alinea matemáticamente con tu web (1200px) */
.slide-content-wrapper {
    max-width: 1200px; 
    width: 100%;
    padding: 0 25px; 
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: space-between; 
    gap: 30px;
}

.slide-icon {
    width: 65px;
    height: 65px;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px; 
    color: var(--app-color);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 0 20px rgba(0,0,0,0.5), inset 0 0 15px rgba(255,255,255,0.02);
}

.slide-info { flex: 1; }

.slide-info h3 {
    margin: 0 0 5px 0;
    font-size: 24px;
    font-weight: 800;
    color: white;
}

.slide-info p {
    margin: 0;
    color: #cbd5e1;
    font-size: 14px;
    line-height: 1.5;
    max-width: 900px; 
}

.slide-action { flex-shrink: 0; }

/* =====================================================================
   BOTÓN DINÁMICO
   ===================================================================== */
.btn-dynamic {
    position: relative;
    background: rgba(0, 0, 0, 0.6); 
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white !important; 
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    z-index: 1;
}

/* Resplandor interior (fijo) */
.btn-dynamic::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    border-radius: 50px;
    box-shadow: inset 0 0 20px var(--app-color);
    opacity: 0; 
    transition: 0.4s;
    pointer-events: none;
    z-index: -1;
}

/* LA MAGIA QUE FALTABA: Efecto de llenado animado desde la izquierda */
.btn-dynamic::after {
    content: '';
    position: absolute;
    left: 0; 
    top: 0; 
    height: 100%; 
    width: 0; 
    background: var(--app-color);
    transition: 0.4s ease-out;
    opacity: 0; 
    z-index: -1;
}

.btn-dynamic:hover {
    transform: translateY(-3px);
    border-color: var(--app-color);
    box-shadow: 0 10px 25px rgba(0,0,0,0.6), 0 0 15px var(--app-color);
}

.btn-dynamic:hover::before { opacity: 0.6; } 
.btn-dynamic:hover::after { width: 100%; opacity: 0.25; } /* El color llena el botón */

.btn-dynamic span { z-index: 2; position: relative; }
.btn-dynamic i { transition: 0.3s; z-index: 2; position: relative; }

.btn-dynamic:hover i {
    transform: translateX(4px);
    color: var(--app-color);
    text-shadow: 0 0 10px var(--app-color);
}

.btn-dynamic[style*="--app-color: #ffffff"]:hover i,
.btn-dynamic[style*="--app-color: #fff"]:hover i {
    color: #ffffff;
    text-shadow: 0 0 10px rgba(255,255,255,0.8);
}

.badge-dev {
    color: #fbbf24; 
    font-size: 13px; font-weight: 700; 
    background: rgba(251,191,36,0.1); 
    padding: 10px 18px; border-radius: 50px; 
    border: 1px solid rgba(251,191,36,0.3); 
    display: inline-block;
}

/* Puntos Indicadores del Slider */
.hero-slider-indicators {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 30px; 
    position: relative;
    z-index: 10;
}
.h-indicator {
    width: 40px; height: 5px;
    background: rgba(255,255,255,0.15);
    border-radius: 3px; cursor: pointer; transition: 0.3s;
}
.h-indicator.active {
    background: var(--dot-color, var(--primary));
    box-shadow: 0 0 12px var(--dot-color, var(--primary));
}

/* =====================================================================
   CARRUSEL DE APPS HORIZONTAL (ESCRITORIO - El de abajo)
   ===================================================================== */
.apps-carousel-wrapper {
    position: relative; display: flex; align-items: center; margin: 0 -15px; 
}
.apps-carousel-track {
    display: flex; gap: 25px; overflow-x: auto; scroll-snap-type: x mandatory; 
    scrollbar-width: none; -ms-overflow-style: none; padding: 10px 15px 30px 15px; 
    scroll-behavior: smooth; width: 100%;
}
.apps-carousel-track::-webkit-scrollbar { display: none; }
.carousel-card { flex: 0 0 320px; scroll-snap-align: start; }
.carousel-arrow {
    position: absolute; top: 45%; transform: translateY(-50%); width: 45px; height: 45px;
    border-radius: 50%; background: rgba(20, 25, 35, 0.9); border: 1px solid rgba(255, 255, 255, 0.15);
    color: white; font-size: 18px; cursor: pointer; display: flex; align-items: center;
    justify-content: center; z-index: 20; backdrop-filter: blur(10px); transition: 0.3s;
    box-shadow: 0 10px 20px rgba(0,0,0,0.5);
}
.carousel-arrow:hover { background: var(--primary); border-color: var(--primary); box-shadow: 0 0 15px var(--primary-glow); }
.left-arrow { left: -10px; }
.right-arrow { right: -10px; }

/* =====================================================================
   RESPONSIVE MÓVIL
   ===================================================================== */
@media (max-width: 768px) {
    .hero-banner-full { padding: 40px 0 30px 0; margin-bottom: 30px; }
    .hero-static-content h1 { font-size: 32px; }
    .hero-banner-full .hero-code-logo { font-size: 40px; }
    
    .slide-content-wrapper { 
        flex-direction: column; 
        text-align: center; 
        gap: 15px; 
        padding: 0 20px;
    }
    .slide-info p { max-width: 100%; font-size: 13px; }
    .slide-icon { margin: 0 auto; width: 60px; height: 60px; font-size: 26px;}

    .apps-carousel-wrapper { margin: 0; display: block; }
    .carousel-arrow { display: none; }
    .apps-carousel-track { flex-direction: column; overflow-x: hidden; padding: 0; gap: 20px; }
    .carousel-card { flex: auto; width: 100%; }
}
