/* /fenia/videos: la galería de videos de FENIA (views/pages/fenia-videos.ejs).
 *
 * Clara, como el tablero y la página de reportar: se abre desde el celular.
 * El visor sí es oscuro: es donde se ve el video.
 */
.fv-cuerpo { margin: 0; background: #f6f5fb; color: #101828; font-family: Inter, -apple-system, 'Segoe UI', Arial, sans-serif; -webkit-text-size-adjust: 100%; }
.fv-barra { display: flex; align-items: center; gap: 12px; padding: 10px 16px; padding-top: max(10px, env(safe-area-inset-top)); background: #fff; border-bottom: 1px solid #e4e2ee; position: sticky; top: 0; z-index: 10; }
.fv-volver { display: inline-flex; align-items: center; min-height: 44px; padding: 0 6px; font-size: 16px; font-weight: 700; color: #0b6e64; text-decoration: none; }
.fv-marca { flex: 1; font-size: 12.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #6d28d9; }
.fv-cta { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px; background: #6d28d9; color: #fff; font-size: 15px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.fv { max-width: 1180px; margin: 0 auto; padding: 18px 16px 60px; }
.fv-h { margin: 0 0 8px; font-size: 30px; line-height: 1.15; letter-spacing: -.01em; }
.fv-sub { margin: 0; max-width: 62ch; font-size: 15.5px; line-height: 1.45; color: #475467; }
.fv-borrador { margin: 16px 0 0; padding: 11px 14px; border-radius: 12px; background: #fff7e6; border: 1px solid #f0c987; font-size: 14.5px; line-height: 1.45; color: #6b4200; }
.fv-vacio { margin: 28px 0 0; padding: 18px; border-radius: 14px; background: #fff; border: 1px solid #e4e2ee; font-size: 15.5px; line-height: 1.5; color: #475467; }
.fv-vacio a, .fv-nota a { color: #6d28d9; font-weight: 700; }

.fv-grupo { margin-top: 30px; }
.fv-grupo h2 { margin: 0 0 4px; font-size: 22px; line-height: 1.2; }
.fv-grupo-t { margin: 0 0 14px; font-size: 14.5px; line-height: 1.45; color: #475467; }
.fv-lista { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 18px 14px; }
.fv-item { min-width: 0; scroll-margin-top: 80px; }
.fv-item--ancho { grid-column: span 2; }
.fv-item h3 { margin: 10px 0 3px; font-size: 15.5px; line-height: 1.25; }
.fv-item p { margin: 0; font-size: 13.5px; line-height: 1.4; color: #475467; }
.fv-item:target .fv-portada { outline: 3px solid #6d28d9; outline-offset: 3px; }

.fv-portada { position: relative; display: block; width: 100%; padding: 0; border: 0; border-radius: 14px; overflow: hidden; background: #0b1220; aspect-ratio: 9 / 16; cursor: pointer; box-shadow: 0 1px 3px rgba(16,24,40,.18); }
.fv-item--ancho .fv-portada { aspect-ratio: 16 / 9; }
.fv-portada img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.fv-portada:hover img, .fv-portada:focus-visible img { transform: scale(1.03); }
.fv-portada:focus-visible { outline: 3px solid #6d28d9; outline-offset: 3px; }
.fv-play { position: absolute; left: 50%; top: 50%; width: 58px; height: 58px; margin: -29px 0 0 -29px; border-radius: 50%; background: rgba(11,18,32,.72); border: 2px solid rgba(255,255,255,.85); color: #fff; font-size: 22px; line-height: 54px; text-align: center; padding-left: 4px; box-sizing: border-box; }
.fv-portada--falta { cursor: default; }
.fv-portada--falta img { opacity: .45; }
.fv-falta { position: absolute; left: 10px; top: 10px; padding: 5px 10px; border-radius: 999px; background: #f0b45a; color: #1a1205; font-size: 12.5px; font-weight: 800; }

.fv-nota { margin: 26px 0 0; max-width: 78ch; font-size: 13.5px; line-height: 1.5; color: #667085; }
.fv-nota + .fv-nota { margin-top: 8px; }

/* El visor: oscuro, a pantalla completa en el celular. */
.fv-visor { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 12px; background: rgba(8,12,22,.92); }
.fv-visor[hidden] { display: none; }
.fv-visor-caja { display: flex; flex-direction: column; gap: 10px; width: min(100%, 420px); max-height: 100%; }
.fv-visor-caja.ancho { width: min(100%, 960px); }
.fv-visor-cab { display: flex; align-items: center; gap: 10px; }
.fv-visor-cab h2 { flex: 1; margin: 0; font-size: 16.5px; line-height: 1.25; color: #fff; }
.fv-cerrar { flex: none; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(255,255,255,.14); color: #fff; font-size: 18px; cursor: pointer; }
.fv-marco { position: relative; width: 100%; aspect-ratio: 9 / 16; max-height: calc(100dvh - 170px); margin: 0 auto; border-radius: 14px; overflow: hidden; background: #000; }
.fv-visor-caja.ancho .fv-marco { aspect-ratio: 16 / 9; }
.fv-marco iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.fv-visor-pie { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.fv-ir { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px; background: #38d6c4; color: #0b1220; font-size: 15px; font-weight: 800; text-decoration: none; }
.fv-compartir { min-height: 44px; padding: 0 16px; border: 1.5px solid rgba(255,255,255,.5); border-radius: 999px; background: transparent; color: #fff; font: inherit; font-size: 15px; font-weight: 700; cursor: pointer; }
.fv-yt { margin-left: auto; padding: 10px 4px; font-size: 13.5px; color: #cbd5e1; }

@media (max-width: 520px) {
    .fv-h { font-size: 26px; }
    .fv-lista { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 12px; }
    .fv-yt { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) { .fv-portada img { transition: none; } }
