/* =========================================================
   HONDUCOR - Videos (se administran en el panel: Videos)
   1) Video de bienvenida: ventana flotante sobre la página, solo en la primera visita de cada sesión
      (después de la pantalla de carga) y solo si está encendido en el panel. Se cierra con la X, con Esc,
      tocando fuera, o sola cuando termina el video.
   2) Carrusel de videos de la portada.
   ========================================================= */
.mv { position: fixed; inset: 0; z-index: 2100; display: grid; place-items: center; padding: 16px; opacity: 0;
      background: rgba(8, 29, 58, .74); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); transition: opacity .5s ease; }
.mv[hidden] { display: none; }
.mv.is-open { opacity: 1; }
.mv.is-closing { opacity: 0; }

.mv-ventana { position: relative; width: min(92vw, calc(86vh * var(--ar, 1.7778)), 880px); background: #000; border-radius: 16px; overflow: hidden;
              box-shadow: 0 40px 100px rgba(0, 0, 0, .55); transform: translateY(28px) scale(.95); transition: transform .6s cubic-bezier(.22, .61, .36, 1); }
.mv.is-open .mv-ventana { transform: none; }
.mv.is-closing .mv-ventana { transform: translateY(16px) scale(.97); }
.mv-ventana video { display: block; width: 100%; height: auto; max-height: 86vh; object-fit: contain; background: #000; }

.mv-cerrar, .mv-sonido { position: absolute; border: 0; cursor: pointer; color: #fff; background: rgba(8, 29, 58, .72); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
                         border-radius: 12px; font-family: var(--font-head, inherit); transition: background .2s, color .2s; }
.mv-cerrar { top: 12px; right: 12px; width: 44px; height: 44px; font-size: 1.05rem; }
.mv-sonido { left: 12px; bottom: 20px; height: 44px; padding: 0 16px; display: inline-flex; align-items: center; gap: 10px; font-size: .85rem; font-weight: 700; }
.mv-cerrar:hover, .mv-cerrar:focus-visible, .mv-sonido:hover, .mv-sonido:focus-visible { background: #F5AE09; color: #0b2a52; outline: none; }
.mv-cerrar:focus-visible, .mv-sonido:focus-visible { box-shadow: 0 0 0 3px #fff; }

/* Botón central "Ver con sonido": es lo que da permiso al navegador para reproducir con audio */
.mv-play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: inline-flex; align-items: center; gap: 14px; height: 64px; padding: 0 28px 0 20px;
           border: 0; border-radius: 999px; cursor: pointer; background: #F5AE09; color: #0b2a52; font: 800 1.05rem var(--font-head, inherit);
           box-shadow: 0 16px 40px rgba(0, 0, 0, .4); animation: mv-pulso 2s ease-out infinite; transition: background .2s, transform .25s cubic-bezier(.22, .61, .36, 1); }
.mv-play i { font-size: 2rem; line-height: 1; }
.mv-play:hover, .mv-play:focus-visible { background: #fff; transform: translate(-50%, -50%) scale(1.05); outline: none; }
.mv-play:focus-visible { box-shadow: 0 0 0 4px #F5AE09, 0 16px 40px rgba(0, 0, 0, .4); }
@keyframes mv-pulso { 0% { box-shadow: 0 0 0 0 rgba(245, 174, 9, .6), 0 16px 40px rgba(0, 0, 0, .4); } 70%, 100% { box-shadow: 0 0 0 20px rgba(245, 174, 9, 0), 0 16px 40px rgba(0, 0, 0, .4); } }
.mv-sonido[hidden], .mv-play[hidden] { display: none; }

.mv-barra { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: rgba(255, 255, 255, .22); }
.mv-barra i { display: block; height: 100%; width: 0; background: #F5AE09; }

body.mv-abierto { overflow: hidden; }

@media (max-width: 575.98px) {
    .mv { padding: 12px; }
    .mv-sonido span { display: none; }
    .mv-sonido { width: 44px; padding: 0; justify-content: center; }
    .mv-play { height: 56px; padding: 0 22px 0 16px; font-size: .95rem; }
}
@media (prefers-reduced-motion: reduce) {
    .mv, .mv-ventana { transition-duration: .01ms; }
    .mv-play { animation: none; }
}


/* ---------- Carrusel de videos de la portada ---------- */
.vd { background: var(--hc-bg); }
.vd-nav { display: flex; align-items: center; gap: 8px; }
.vd-contador { margin-right: 8px; color: var(--hc-muted); font: 600 .95rem var(--font-head); font-variant-numeric: tabular-nums; }
.vd-contador b { color: var(--hc-navy); }
.vd-flecha { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 12px; border: 1px solid var(--hc-line); background: #fff;
             color: #1F569C; font-size: 1.15rem; transition: background .2s, color .2s, border-color .2s, transform .2s; }
.vd-flecha:hover, .vd-flecha:focus-visible { background: #1F569C; border-color: #1F569C; color: #fff; outline: none; }
.vd-flecha:active { transform: scale(.96); }

.vd-escenario { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
.vd-video { margin: 0; border-radius: 16px; overflow: hidden; background: #000; box-shadow: 0 30px 60px -30px rgba(11, 42, 82, .5); }
.vd-video video { display: block; width: 100%; aspect-ratio: 16 / 9; height: auto; background: #000; object-fit: contain; }
.vd-info { border-left: 4px solid #F5AE09; padding-left: clamp(1rem, 2vw, 1.5rem); }
.vd-titulo { margin: 0 0 .75rem; font-size: clamp(1.35rem, 2.2vw, 1.85rem); font-weight: 800; line-height: 1.2; text-wrap: balance; }
.vd-desc { margin: 0; color: var(--hc-muted); font-size: 1.02rem; line-height: 1.6; max-width: 46ch; }
.vd-info.is-cambiando { animation: vd-texto .45s cubic-bezier(.22, .61, .36, 1); }
@keyframes vd-texto { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.vd-lista { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.vd-item { width: 100%; display: flex; align-items: center; gap: 12px; padding: 8px; text-align: left; border: 1px solid var(--hc-line); border-radius: 12px;
           background: #fff; transition: border-color .2s, box-shadow .2s, transform .2s; }
.vd-item:hover { border-color: #1F569C; transform: translateY(-2px); box-shadow: 0 12px 24px -16px rgba(11, 42, 82, .5); }
.vd-item:focus-visible { outline: 3px solid #F5AE09; outline-offset: 2px; }
.vd-item.is-on { border-color: #1F569C; box-shadow: inset 0 0 0 1px #1F569C; }
.vd-miniatura { position: relative; flex: 0 0 96px; aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden; background: #0b2a52; display: grid; place-items: center; color: rgba(255,255,255,.7); }
.vd-miniatura img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.vd-miniatura-play { position: absolute; inset: 0; margin: auto; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%;
                     background: rgba(255, 255, 255, .92); color: #1F569C; font-size: 1.1rem; }
.vd-item.is-on .vd-miniatura-play { background: #F5AE09; color: #0b2a52; }
.vd-item-texto { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.vd-item-texto small { color: var(--hc-muted); font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.vd-item-texto strong { color: var(--hc-navy); font: 700 .92rem/1.3 var(--font-head); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

@media (max-width: 991.98px) {
    .vd-escenario { grid-template-columns: 1fr; }
    .vd-desc { max-width: none; }
}
@media (max-width: 575.98px) {
    .vd-lista { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; padding-bottom: 6px; margin-inline: -16px; padding-inline: 16px; }
    .vd-lista li { flex: 0 0 78%; scroll-snap-align: start; }
    .vd-contador { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    .vd-info.is-cambiando { animation: none; }
    .vd-item, .vd-flecha { transition: none; }
}
