.webinars-destacados {
    text-align: center;
    padding: 40px 20px;
}

.webinars-destacados h2 {
    font-size: 40px;
    color: #333;
    letter-spacing: 1px;
}


.subtitulo {
    color: #555;
    margin-bottom: 30px;
    font-size: 25px;
    padding: 1em;
}

.webinars-destacados .video-principal-container {
    max-width: 900px;
    margin: 0 auto 40px auto;
    background: white;
    padding: 20px;
    border-radius: 18px;
    box-shadow: 0px 4px 12px rgba(0,0,0,0.08);
}

.webinars-destacados .video-principal-container video {
    width: 100%;
    border-radius: 14px;
}

.webinars-destacados .video-info {
    margin-top: 20px;
}

.webinars-destacados .video-info h3 {
    font-size: 22px;
    margin-bottom: 5px;
}

.webinars-destacados .video-info p {
    color: #777;
    margin: 0;
}

.webinars-destacados .carousel-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.webinars-destacados .carousel {
    display: flex;
    overflow-x: auto;
    gap: 15px;
    padding: 10px 0;
    scroll-behavior: smooth;
}

.webinars-destacados .carousel::-webkit-scrollbar {
    display: none;
}

.webinars-destacados .carousel-item {
    min-width: 200px;
    cursor: pointer;
    text-align: center;
}

.webinars-destacados .titulo-miniatura {
    display: -webkit-box;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
    line-height: 1.5;
    max-height: calc(1.3em * 2);
    margin-top: 8px;
    font-size: 12px;
    color: #444;
}

.webinars-destacados .carousel-btn {
    background: transparent;
    border: none;
    color: #EA6D64;
    font-size: 50px;
    cursor: pointer;
    padding: 0 12px;
    line-height: 1;
    transition: color 0.2s ease;
}

.carousel-btn:hover {
    color: #000;
}

.webinars-destacados .vd-thumb {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background-color: transparent;
    text-decoration: none;
    border-radius: var(--vd-radius);
}

/* Imagen dentro del thumb */
.webinars-destacados .vd-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--vd-transition);
    display: block;
}

/* Hover en thumb: zoom suave */
.webinars-destacados .vd-thumb:hover img {
    transform: scale(1.05);
}

.metaVideo-miniatures .vd-thumb:focus-visible {
    outline: transparent;
    box-shadow: inset 0 0 0 3px var(--vd-focus-ring);
    border-radius: var(--vd-radius);
}

.webinars-destacados .metaVideo-miniatures {
    margin-top: 0.5em;
    font-size: 12px;
}

.webinars-destacados .vd-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 48px;
    height: 48px;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    opacity: 0;
    transition: var(--vd-transition);
    line-height: 1;
}

/* Mostrar play en hover o focus */
.webinars-destacados .vd-thumb:hover .vd-play,
.webinars-destacados .vd-thumb:focus .vd-play {
    opacity: 1;
}

/* Animación del play en hover (pulse suave) */
.webinars-destacados .vd-thumb:hover .vd-play {
    animation: vd-pulse 0.6s ease-in-out infinite;
}

@keyframes vd-pulse {
    0% {
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        transform: translate(-50%, -50%) scale(1.1);
        background-color: rgba(0, 0, 0, 0.85);
    }
    100% {
        transform: translate(-50%, -50%) scale(1);
    }
}

.webinars-destacados .vd-duration {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background-color: rgba(0, 0, 0, 0.85);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.54rem;
    font-weight: 600;
    line-height: 1;
    letter-spacing: 0.5px;
}
