/* hero.css - Estilos para la Sección Hero con Slider de Videos */

/* Hero: Full-width, altura completa de viewport, centrado vertical */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

/* Video de fondo */
.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    z-index: 0;
    object-fit: cover;
    transition: opacity 0.8s ease-in-out;
}

/* Overlay oscuro sobre el video para mejorar legibilidad */
.hero-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
    pointer-events: none;
}

/* Control de pausa/play del video */
.video-control {
    position: absolute;
    bottom: 120px;
    right: 30px;
    z-index: 3;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: 2px solid white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.video-control:hover {
    background: rgba(112, 193, 238, 0.8);
    transform: scale(1.1);
    border-color: rgba(112, 193, 238, 0.8);
}

/* Contenido dinámico del slide - POR ENCIMA DE TODO */
.hero-slide-content {
    position: absolute;
    top: 15%;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    z-index: 4;
    max-width: 900px;
    width: 90%;
    opacity: 0;
    animation: fadeInSlide 0.8s ease-out forwards;
}

@keyframes fadeInSlide {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

.slide-title {
    font-size: 3.5rem;
    font-weight: bold;
    color: white;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.8);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.slide-description {
    font-size: 1.5rem;
    color: white;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
    margin-bottom: 2rem;
    line-height: 1.6;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.slide-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.slide-btn {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.slide-btn-primary {
    background: linear-gradient(135deg, #70C1EE 0%, #4A9FD8 100%);
    color: white;
}

.slide-btn-primary:hover {
    background: linear-gradient(135deg, #4A9FD8 0%, #3A8FC8 100%);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(112, 193, 238, 0.5);
}

.slide-btn-secondary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid white;
    backdrop-filter: blur(10px);
}

.slide-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.3);
}

.slide-btn-accent {
    background: linear-gradient(135deg, #FF6B6B 0%, #EE5A6F 100%);
    color: white;
}

.slide-btn-accent:hover {
    background: linear-gradient(135deg, #EE5A6F 0%, #DC4A5F 100%);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.5);
}

/* Contenedor del hero content con contador */
.hero-content {
    position: absolute;
    bottom: 180px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    text-align: center;
    width: 100%;
}

/* Contador: Layout horizontal, responsive */
.countdown {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.countdown-item {
    background: rgba(255, 255, 255, 0.25);
    padding: 1.25rem;
    border-radius: 12px;
    min-width: 90px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.countdown-number {
    display: block;
    font-size: 2.5rem;
    font-weight: bold;
    font-family: 'Courier New', monospace;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.7);
}

.countdown-label {
    display: block;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 0.5rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

/* Leyenda */
.hero-legend {
    font-size: 1.2rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 3px;
    opacity: 0.95;
    margin: 0;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
    background: rgba(0, 0, 0, 0.4);
    padding: 0.5rem 1.5rem;
    border-radius: 8px;
    display: inline-block;
    backdrop-filter: blur(10px);
}

/* Indicadores del slider */
.slider-indicators {
    position: absolute;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 3;
}

.slider-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.slider-indicator.active {
    background: white;
    border-color: rgba(112, 193, 238, 0.8);
    transform: scale(1.2);
}

.slider-indicator:hover {
    background: rgba(255, 255, 255, 0.8);
}

/* Controles de navegación */
.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    background: rgba(0, 0, 0, 0.3);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.slider-nav:hover {
    background: rgba(112, 193, 238, 0.7);
    transform: translateY(-50%) scale(1.1);
}

.slider-nav.prev {
    left: 20px;
}

.slider-nav.next {
    right: 20px;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-slide-content {
        top: 10%;
        width: 95%;
    }

    .slide-title {
        font-size: 2rem;
    }

    .slide-description {
        font-size: 1.1rem;
        margin-bottom: 1.5rem;
    }

    .slide-buttons {
        gap: 0.75rem;
        margin-bottom: 2rem;
    }

    .slide-btn {
        padding: 0.8rem 1.8rem;
        font-size: 0.95rem;
    }

    .hero-content {
        bottom: 150px;
    }

    .countdown {
        gap: 1rem;
    }

    .countdown-number {
        font-size: 2rem;
    }

    .countdown-item {
        min-width: 70px;
        padding: 0.75rem;
    }

    .hero-legend {
        font-size: 0.9rem;
        padding: 0.4rem 1rem;
        letter-spacing: 2px;
    }

    .slider-nav {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .slider-nav.prev {
        left: 10px;
    }

    .slider-nav.next {
        right: 10px;
    }

    .slider-indicators {
        bottom: 40px;
        gap: 8px;
    }

    .slider-indicator {
        width: 10px;
        height: 10px;
    }

    .video-control {
        bottom: 80px;
        right: 15px;
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .slide-title {
        font-size: 1.5rem;
    }

    .slide-description {
        font-size: 1rem;
    }

    .slide-btn {
        padding: 0.7rem 1.5rem;
        font-size: 0.85rem;
    }

    .slide-buttons {
        margin-bottom: 1.5rem;
    }

    .hero-content {
        bottom: 130px;
    }

    .countdown {
        gap: 0.75rem;
    }

    .countdown-number {
        font-size: 1.5rem;
    }

    .countdown-item {
        min-width: 60px;
        padding: 0.5rem;
    }

    .hero-legend {
        font-size: 0.75rem;
        padding: 0.3rem 0.8rem;
    }

    .video-control {
        bottom: 80px;
        right: 15px;
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }
}