
/* Hero Video Slider - Clases Únicas Encapsuladas */

/* Variables para el botón (si no existen globalmente) */


/* Sección Principal */
.herovidslider-section {
    position: sticky;
    width: calc(100%);
    height: calc(100vh - 220px);
    min-height: 600px;
    overflow: hidden;
    background: var(--bs-white);
    top: 0;
    z-index: 0;
    overflow: hidden;
}

.herovidslider-container {
    position: relative;
    width: 100%;
    height: 100%;
}

/* Wrapper de Videos */
.herovidslider-video-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* Videos con sistema de fundido */
.herovidslider-video {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    min-width: 100%;
    min-height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
    margin: 0;
    padding: 0;
}

#herovidslider-current {
    z-index: 1;
}

#herovidslider-next {
    z-index: 2;
}

.herovidslider-video-active {
    opacity: 1;
}

/* Overlay del Video */
.herovidslider-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.3) 0%,
        rgba(0, 0, 0, 0.5) 100%
    );
    z-index: 3;
    pointer-events: none;
}

/* Miniaturas Verticales */
.herovidslider-thumbnails {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 10;
}

.herovidslider-thumb {
    width: 120px;
    height: 180px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    position: relative;
    border: 3px solid transparent;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.herovidslider-thumb:hover {
    transform: scale(1.05);
    border-color: rgba(255, 255, 255, 0.5);
}

.herovidslider-thumb-active {
    border-color: #d4af37;
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.6);
}

/* Poster de miniatura */
.herovidslider-thumb-poster {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    opacity: 1;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

/* Video de miniatura */
.herovidslider-thumb-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

/* Mostrar video en hover */
.herovidslider-thumb:hover .herovidslider-thumb-poster {
    opacity: 0;
}

.herovidslider-thumb:hover .herovidslider-thumb-video {
    opacity: 1;
}

/* Overlay de miniatura */
.herovidslider-thumb-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    transition: background 0.3s ease;
    z-index: 2;
    pointer-events: none;
}

.herovidslider-thumb-active .herovidslider-thumb-overlay {
    background: rgba(0, 0, 0, 0.1);
}

.herovidslider-thumb:hover .herovidslider-thumb-overlay {
    background: rgba(0, 0, 0, 0.2);
}

/* Contenido del Hero CON BACKGROUND DIFUMINADO */
.herovidslider-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -80%)!important;
    text-align: center;
    z-index: 5;
    max-width: 900px;
    width: 90%;
    padding: 60px 40px;
    opacity: 1;
    transition: opacity 0.4s ease;
    
    /* Background difuminado con backdrop-filter */
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Fade out */
.herovidslider-content-fadeout {
    opacity: 0;
}

/* Fade in con reveal */
.herovidslider-content-fadein {
    animation: herovidsliderFadeInReveal 0.6s ease forwards;
}

@keyframes herovidsliderFadeInReveal {
    0% {
        opacity: 0;
        transform: translate(-50%, -48%);
    }
    100% {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

.herovidslider-content h1 {
    margin: 0 0 30px 0;
    padding: 0;
}

.herovidslider-title {
    display: inline-block;
    font-size: 3rem;
    font-weight: bold;
    color: #ffffff;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
    line-height: 1.2;
    text-transform: uppercase;
}

/* BOTÓN CON ESTILO btn-furner-primary */
.herovidslider-btn {
    display: inline-block;
    background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold-classic) 100%);
    color: var(--furner-black);
    font-weight: 600;
    font-size: 1.1rem;
    padding: 15px 40px;
    border: none;
    border-radius: var(--radius-sm);
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-gold);
    text-decoration: none;
    cursor: pointer;
}

.herovidslider-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.herovidslider-btn:hover::before {
    left: 100%;
}

.herovidslider-btn:hover {
    box-shadow: 0 8px 30px rgba(212, 175, 55, 0.5);
}

/* Responsive */
@media (max-width: 1024px) {
    .herovidslider-thumbnails {
        right: 3%;
    }
    
    .herovidslider-thumb {
        width: 100px;
        height: 150px;
    }

    .herovidslider-content {
        padding: 50px 30px;
    }
}

@media (max-width: 768px) {
    .herovidslider-thumbnails {
        flex-direction: row;
        right: auto;
        left: 50%;
        top: auto;
        bottom: 100px;
        transform: translateX(-50%);
        gap: 10px;
    }
    
    .herovidslider-thumb {
        width: 80px;
        height: 120px;
    }
    
    .herovidslider-content {
        top: 40%;
        width: 95%;
        padding: 40px 25px;
        border-radius: 15px;
    }

    .herovidslider-title {
        font-size: clamp(1.5rem, 4vw, 2.5rem);
    }

    .herovidslider-content h1 {
        margin-bottom: 25px;
    }

    .herovidslider-btn {
        padding: 12px 30px;
        font-size: 1rem;
    }

    @keyframes herovidsliderFadeInReveal {
        0% {
            opacity: 0;
            transform: translate(-50%, -38%);
        }
        100% {
            opacity: 1;
            transform: translate(-50%, -50%);
        }
    }
}

@media (max-width: 480px) {
    .herovidslider-thumb {
        width: 60px;
        height: 90px;
    }
    
    .herovidslider-thumbnails {
        bottom: 80px;
        gap: 8px;
    }

    .herovidslider-content {
        padding: 30px 20px;
        border-radius: 12px;
    }

    .herovidslider-btn {
        padding: 10px 25px;
        font-size: 0.9rem;
    }
}