/* Estilos CSS Frontend para el Video Destacado */

.video-destacado-wrapper {
    width: 100%;
    margin-bottom: 2rem;
    position: relative;
    box-sizing: border-box;
}

.video-destacado-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    background: #000;
}

/* Aspect Ratio 16:9 (Horizontal Estándar) */
.video-destacado-ratio-16-9 .video-destacado-container {
    aspect-ratio: 16 / 9;
}

/* Fallback para navegadores antiguos que no soportan CSS aspect-ratio */
@supports not (aspect-ratio: 16 / 9) {
    .video-destacado-ratio-16-9 .video-destacado-container {
        padding-bottom: 56.25%;
        height: 0;
    }
    .video-destacado-ratio-16-9 iframe,
    .video-destacado-ratio-16-9 video {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
    }
}

/* Aspect Ratio 9:16 (Vertical / Shorts / Reels) */
.video-destacado-ratio-9-16 {
    max-width: 380px;
    margin-left: auto;
    margin-right: auto;
}

.video-destacado-ratio-9-16 .video-destacado-container {
    aspect-ratio: 9 / 16;
}

@supports not (aspect-ratio: 9 / 16) {
    .video-destacado-ratio-9-16 .video-destacado-container {
        padding-bottom: 177.77%;
        height: 0;
    }
    .video-destacado-ratio-9-16 iframe,
    .video-destacado-ratio-9-16 video {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
    }
}

/* Dimensiones Personalizadas */
.video-destacado-custom-dimensions {
    margin-left: auto;
    margin-right: auto;
    max-width: 100%;
}

.video-destacado-custom-dimensions .video-destacado-container {
    height: 100%;
    min-height: 250px;
}

/* Estilos de iframe e Elemento Video HTML5 */
.video-destacado-container iframe,
.video-destacado-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: none;
    display: block;
}
