/* ============================================
   HERO SLIDER - NOELYTH SOFTWORKS
   Archivo: css/hero-slider.css
   
   Estilos para el slider hero principal del sitio.
   Mantiene las dimensiones originales de la sección #inicio.
   ============================================ */

/* ============================================
   CONTENEDOR PRINCIPAL DEL SLIDER
   Mismo tamaño que la sección #inicio original
   CORREGIDO: Con altura mínima explícita
   ============================================ */
   .hero-slider-container {
    position: relative;
    width: 100%;
    /* IMPORTANTE: Padding personalizado */
    padding: 340px 0 226px;
    overflow: hidden;
    /* ✅ SIN FONDO - Cada slide tendrá su propia imagen */
    background: transparent;
    
    /* CORRECCIÓN: Aislar el slider y eliminar efectos heredados */
    isolation: isolate;
    clip-path: inset(0);
    
    /* ✅ CRÍTICO: Altura mínima para forzar expansión de slides */
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Remover cualquier pseudo-elemento que cause efectos visuales */
.hero-slider-container::before,
.hero-slider-container::after {
    display: none !important;
}

/* Asegurar que #inicio no tenga efectos heredados */
#inicio {
    isolation: isolate;
    min-height: 100vh;
}

#inicio::before,
#inicio::after {
    display: none !important;
}

/* ============================================
   SLIDES DEL HERO
   Contenedor que mueve los slides horizontalmente
   CORREGIDO: Altura absoluta completa
   ============================================ */
.hero-slides {
    display: flex;
    /* ✅ CRÍTICO: Posición absoluta para llenar todo el contenedor */
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    align-items: center;
    /* CORRECCIÓN: Eliminar gaps y asegurar bordes limpios */
    gap: 0;
    margin: 0;
    padding: 0;
    transform-style: flat;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.hero-slide {
    /* ✅ CRÍTICO: Ancho y alto 100% absolutos */
    min-width: 100%;
    width: 100%;
    height: 100%;
    min-height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    /* CORRECCIÓN: Asegurar que no haya espacios entre slides */
    flex-shrink: 0;
    margin: 0;
    padding: 0;
    /* ✅ CRÍTICO: Asegurar que la imagen cubra TODO el slide */
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
}

/* ============================================
   CONTENIDO DEL SLIDE
   Mismo estilo que .hero-content original
   ============================================ */
.hero-slide-content {
    /* Mismo max-width que el hero original */
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    color: white;
    padding: 0 40px;
    /* Animación de entrada suave */
    animation: fadeInUp 0.8s ease-out;
}

/* Animación de entrada del contenido */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Título principal - Mismo estilo que .hero-content h1 */
.hero-slide-content h1 {
    font-size: 4.2rem;
    margin-bottom: 24px;
    font-family: 'EB Garamond', serif;
    font-weight: 700;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.3);
    line-height: 1.2;
}

/* Subtítulo - Mismo estilo que .hero-subtitle */
.hero-slide-content p {
    font-size: 2rem;
    font-weight: 400;
    margin-bottom: 48px;
    font-family: 'EB Garamond', serif;
    font-style: italic;
    line-height: 1.4;
    opacity: 0.9;
}

/* ============================================
   BOTONES DE ACCIÓN (CTA)
   Estilos para los botones de llamada a acción
   ============================================ */
.hero-slide-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Botón base - Mismo estilo que .btn original */
.hero-slide-btn {
    display: inline-block;
    padding: 16px 40px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    font-size: 18px;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
    border: 2px solid transparent;
    cursor: pointer;
    font-family: 'EB Garamond', serif;
}

/* Botón primario (azul oscuro) */
.hero-slide-btn-primary {
    background-color: var(--secondary-color);
    color: white;
}

.hero-slide-btn-primary:hover {
    background-color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Botón secundario (transparente con borde) */
.hero-slide-btn-secondary {
    background-color: transparent;
    color: white;
    border: 2px solid white;
}

.hero-slide-btn-secondary:hover {
    background-color: white;
    color: var(--secondary-color);
    transform: translateY(-2px);
}

/* ============================================
   CONTROLES DE NAVEGACIÓN
   Flechas laterales para cambiar slides
   ============================================ */
.hero-nav-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background-color: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.4);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(8px);
    font-size: 1.2rem;
}

.hero-nav-button:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-50%) scale(1.1);
}

.hero-nav-button.prev {
    left: 30px;
}

.hero-nav-button.next {
    right: 30px;
}

/* ============================================
   INDICADORES DE POSICIÓN (DOTS)
   Puntos en la parte inferior para navegación
   ============================================ */
.hero-indicators {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 12px;
}

.hero-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.hero-indicator:hover {
    background-color: rgba(255, 255, 255, 0.6);
    transform: scale(1.2);
}

.hero-indicator.active {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    width: 30px;
    border-radius: 6px;
}

/* ============================================
   RESPONSIVE DESIGN
   Adaptación para dispositivos móviles
   AJUSTADO PROPORCIONALMENTE: Desktop usa 340px 0 226px
   ============================================ */

/* Tablets (768px y menos) */
@media (max-width: 768px) {
    .hero-slider-container {
        /* Proporción: 140px original × 1.89 = 265px top
                      80px original × 1.88 = 150px bottom */
        padding: 265px 0 150px;
    }

    .hero-slide-content h1 {
        font-size: 3rem;
    }

    .hero-slide-content p {
        font-size: 1.4rem;
    }

    .hero-nav-button {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .hero-nav-button.prev {
        left: 15px;
    }

    .hero-nav-button.next {
        right: 15px;
    }

    .hero-indicators {
        bottom: 30px;
    }
}

/* Móviles pequeños (576px y menos) */
@media (max-width: 576px) {
    .hero-slider-container {
        /* Proporción: 120px original × 1.89 = 227px top
                      60px original × 1.88 = 113px bottom */
        padding: 227px 0 113px;
    }

    .hero-slide-content {
        padding: 0 20px;
    }

    .hero-slide-content h1 {
        font-size: 2.5rem;
    }

    .hero-slide-content p {
        font-size: 1.2rem;
        margin-bottom: 35px;
    }

    .hero-slide-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .hero-slide-btn {
        width: 100%;
        text-align: center;
    }

    .hero-nav-button {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }

    .hero-nav-button.prev {
        left: 10px;
    }

    .hero-nav-button.next {
        right: 10px;
    }

    .hero-indicators {
        bottom: 20px;
        gap: 8px;
    }

    .hero-indicator {
        width: 10px;
        height: 10px;
    }

    .hero-indicator.active {
        width: 24px;
    }
}

/* ============================================
   IMÁGENES DE FONDO POR SLIDE
   Cada slide tiene su propia imagen de fondo
   CORREGIDO: Sintaxis correcta de background con gradiente + imagen
   ============================================ */

/* Slide 1: Soluciones de Software - Imagen por defecto */
.hero-slide:nth-child(1) {
    background-image: 
        linear-gradient(rgba(0, 51, 102, 0.85), rgba(0, 153, 204, 0.75)), 
        url('../resources/sliderHome/BackgroundHome.jpeg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Slide 2: Desarrollo Web - Imagen personalizada */
.hero-slide:nth-child(2) {
    background-image: 
        linear-gradient(rgba(0, 51, 102, 0.85), rgba(0, 153, 204, 0.75)), 
        url('../resources/sliderHome/webdevelopBG.avif');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Slide 3: Aplicaciones Móviles - Imagen personalizada */
.hero-slide:nth-child(3) {
    background-image: 
        linear-gradient(rgba(0, 51, 102, 0.85), rgba(0, 153, 204, 0.75)), 
        url('../resources/sliderHome/mobile-app-development-trends.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Slide 4: Transformación Digital - Imagen personalizada */
.hero-slide:nth-child(4) {
    background-image: 
        linear-gradient(rgba(0, 51, 102, 0.85), rgba(0, 153, 204, 0.75)), 
        url('../resources/sliderHome/digitalTransformationBG.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}