/* Amén · Extensión exclusiva de galeria.html. No altera el diseño de Inicio. */
body[data-page="galeria"] .filter-bar { flex-wrap: wrap; row-gap: 10px; }
body[data-page="galeria"] .filter-bar button { line-height: 1.45; }
body[data-page="galeria"] .gallery-status { white-space: nowrap; }
.gallery-campaign { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 30px; padding: 22px 25px; border-left: 3px solid var(--red); background: var(--pink); border-radius: 0 6px 6px 0; }
.gallery-campaign h2 { font-size: clamp(25px, 3vw, 34px); letter-spacing: -.025em; line-height: 1.17; }
.gallery-campaign h2 span { color: var(--red); white-space: nowrap; }
.gallery-campaign p { font-size: 13px; color: var(--muted); margin-top: 7px; max-width: 640px; line-height: 1.65; }
.gallery-campaign .text-link { white-space: nowrap; color: var(--red); flex-shrink: 0; font-size: 13px; }
body[data-page="galeria"] .filter-bar { margin-top: 28px; }
.media-tools { display: none; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px 22px; padding-top: 17px; }
.gallery-ready .media-tools { display: flex; }
.media-type-filters { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.media-type-filters > span { color: var(--muted); font-size: 11px; padding-right: 8px; }
.media-type-filters button { min-height: 40px; padding: 8px 13px; background: transparent; border: 1px solid transparent; border-radius: 5px; font-size: 12px; line-height: 1.4; }
.media-type-filters button[aria-pressed="true"] { border-color: var(--line); background: var(--white); color: var(--red); font-weight: 650; }
.media-type-filters button:hover { color: var(--red); background: var(--soft); }
.media-help { font-size: 11px; line-height: 1.65; color: var(--muted); max-width: 430px; }
.gallery-campaign a:focus-visible, .media-type-filters button:focus-visible { outline-offset: 3px; }
.gallery-video-link { display: block; position: relative; aspect-ratio: 3 / 4; background: #eae2dc; overflow: hidden; border-radius: var(--radius); text-decoration: none; isolation: isolate; }
.gallery-video-link::after { content: ''; position: absolute; inset: auto 0 0; height: 23%; background: linear-gradient(transparent, #17131065); pointer-events: none; z-index: 1; }
.gallery-video-link > img { width: 100%; height: 100%; object-fit: contain; transition: filter .2s ease; }
.gallery-video-link:hover > img { filter: brightness(.94); }
.gallery-video-link .media-play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: flex; justify-content: center; align-items: center; width: 58px; height: 58px; border: 1px solid #ffffff88; border-radius: 50%; background: #851721ed; color: white; box-shadow: 0 4px 18px #19161426; z-index: 2; }
.media-play svg { width: 21px; height: 21px; margin-left: 3px; }
.media-duration, .media-kind { position: absolute; z-index: 2; padding: 4px 8px; font-size: 11px; line-height: 1.35; border-radius: 4px; letter-spacing: .025em; }
.media-duration { right: 12px; bottom: 12px; background: #191614d9; color: white; font-variant-numeric: tabular-nums; }
.media-kind { left: 12px; top: 12px; display: flex; gap: 6px; align-items: center; background: var(--white); color: var(--ink); }
.media-kind svg { width: 12px; height: 12px; }
body[data-page="galeria"] .gallery-card figcaption .media-card-label { font-size: 9px; line-height: 1.6; letter-spacing: .12em; }
.gallery-empty { margin: 0 auto 52px; text-align: center; padding: 35px 20px; background: var(--soft); border-radius: 6px; }
.gallery-empty p { font-size: 14px; }
.gallery-noscript { font-size: 13px; padding: 14px 0; color: var(--muted); }
/* Visor independiente. Los enlaces MP4 también funcionan sin JavaScript. */
.amen-video-dialog { position: fixed; inset: 0; margin: 0; padding: 0; width: 100%; height: 100%; max-width: none; max-height: none; border: 0; background: #191614fc; color: #fffdfa; overscroll-behavior: contain; }
.amen-video-dialog:not([open]) { display: none; }
.amen-video-dialog::backdrop { background: #191614e8; }
.video-dialog-shell { height: 100dvh; width: 100%; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; gap: 12px; padding: max(16px, env(safe-area-inset-top)) max(22px, env(safe-area-inset-right)) max(18px, env(safe-area-inset-bottom)) max(22px, env(safe-area-inset-left)); }
.video-dialog-top { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.video-dialog-top h2 { font-family: var(--sans); font-size: 16px; letter-spacing: 0; font-weight: 550; line-height: 1.5; }
.video-dialog-kicker { font-size: 10px; letter-spacing: .11em; text-transform: uppercase; color: #ead7d2; margin-bottom: 3px; }
.video-dialog-count { font-size: 12px; color: #e1d7d0; font-variant-numeric: tabular-nums; margin-left: auto; white-space: nowrap; }
.video-dialog-button { display: flex; align-items: center; justify-content: center; width: 46px; height: 46px; min-width: 46px; border: 1px solid #ffffff55; border-radius: 50%; color: #fffdfa; background: #ffffff0c; padding: 10px; }
.video-dialog-button:hover { background: #ffffff25; }
.amen-video-dialog :focus-visible { outline-color: #fffdfa; }
.video-dialog-stage { min-height: 0; display: grid; grid-template-columns: 46px minmax(0, 1fr) 46px; align-items: center; gap: 20px; }
.video-dialog-frame { height: 100%; min-height: 0; width: 100%; display: flex; justify-content: center; }
.video-dialog-player { display: block; width: 100%; height: 100%; min-height: 0; object-fit: contain; background: #101010; border-radius: 4px; }
.video-dialog-bottom { text-align: center; font-size: 12px; color: #eee3dc; }
.video-dialog-bottom a { display: inline-flex; align-items: center; min-height: 40px; padding: 5px 12px; }
.video-dialog-feedback { font-size: 12px; color: #fffdfa; }
@media (max-width: 800px) {
  .gallery-campaign { padding: 20px; gap: 16px; }
  .gallery-campaign .text-link { font-size: 12px; }
  body[data-page="galeria"] .gallery-status { position: static; width: auto; height: auto; padding: 0; overflow: visible; clip-path: none; white-space: normal; margin-left: 0; flex-basis: 100%; font-size: 11px; }
  .media-tools { align-items: flex-start; }
  .media-help { flex-basis: 100%; max-width: none; }
}
@media (max-width: 600px) {
  .gallery-campaign { flex-direction: column; align-items: flex-start; gap: 10px; margin-top: 20px; padding: 16px; }
  .gallery-campaign h2 { font-size: 28px; }
  .gallery-campaign p { font-size: 12px; }
  .gallery-campaign .text-link { min-height: 38px; }
  body[data-page="galeria"] .filter-bar { gap: 8px 7px; padding-bottom: 17px; margin-top: 22px; }
  body[data-page="galeria"] .filter-bar button { font-size: 11px; padding-inline: 12px; }
  .gallery-video-link .media-play { width: 44px; height: 44px; }
  .media-play svg { width: 17px; height: 17px; }
  .media-duration, .media-kind { font-size: 10px; padding: 4px 6px; }
  .media-duration { bottom: 8px; right: 8px; }
  .media-kind { left: 8px; top: 8px; }
  .video-dialog-shell { padding-inline: 12px; gap: 8px; }
  .video-dialog-top { gap: 10px; }
  .video-dialog-top h2 { font-size: 13px; }
  .video-dialog-kicker { font-size: 8px; }
  .video-dialog-count { font-size: 10px; }
  .video-dialog-stage { position: relative; grid-template-columns: 1fr; gap: 0; }
  .video-dialog-prev, .video-dialog-next { position: absolute; top: 50%; transform: translateY(-50%); z-index: 1; background: #191614b3; }
  .video-dialog-prev { left: 4px; }
  .video-dialog-next { right: 4px; }
}
@media (max-width: 350px) {
  body[data-page="galeria"] .filter-bar button { font-size: 10px; padding-inline: 10px; }
  .media-kind { font-size: 9px; gap: 4px; }
  .gallery-campaign h2 { font-size: 25px; }
}
@media (prefers-reduced-motion: reduce) {
  .gallery-video-link > img { transition: none; }
}
@media print {
  .media-tools, .amen-video-dialog, .media-play, .gallery-campaign .text-link { display: none !important; }
  .gallery-card[hidden] { display: block !important; }
}
