/* =========================================================
   GALERÍA DE VIDEOS
   Sociedad Juvenil Simiente de Abraham
   ========================================================= */

body[data-page="videoGallery"] {
  background:
    radial-gradient(circle at 12% 18%, rgba(208, 231, 250, 0.7), transparent 30rem),
    radial-gradient(circle at 88% 18%, rgba(255, 235, 190, 0.55), transparent 32rem),
    linear-gradient(180deg, #f8fbff 0%, #eef7fd 100%);
  color: #123f68;
}

body[data-page="videoGallery"] *,
body[data-page="videoGallery"] *::before,
body[data-page="videoGallery"] *::after {
  box-sizing: border-box;
}

/* Contenido principal */

.video-gallery-page {
  min-height: 70vh;
  overflow: hidden;
}

.video-gallery-hero {
  padding: clamp(7rem, 11vw, 10rem) 0 clamp(5rem, 9vw, 8rem);
}

.video-gallery-hero > .container {
  width: min(100% - 3rem, 1664px);
  margin-inline: auto;
}

/* Encabezado */

.video-gallery-heading {
  width: min(100%, 1050px);
  margin: 0 auto clamp(4rem, 7vw, 6rem);
  text-align: center;
}

.video-gallery-heading .section-eyebrow {
  margin: 0 0 1.6rem;
  color: #a46808;
  font-size: clamp(0.9rem, 1.5vw, 1.15rem);
  font-weight: 800;
  letter-spacing: 0.28em;
  line-height: 1.4;
  text-transform: uppercase;
}

.video-gallery-heading h1 {
  margin: 0;
  color: #123f68;
  font-size: clamp(3.5rem, 7vw, 7rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 0.98;
  text-wrap: balance;
}

.video-gallery-introduction {
  max-width: 820px;
  margin: clamp(2rem, 4vw, 3rem) auto 0;
  color: #607990;
  font-size: clamp(1.15rem, 2vw, 1.6rem);
  line-height: 1.7;
  text-wrap: balance;
}

/* Tarjeta principal */

.video-card {
  overflow: hidden;
  width: 100%;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(58, 116, 161, 0.2);
  border-radius: 2.2rem;
  box-shadow:
    0 2rem 5rem rgba(32, 79, 116, 0.12),
    0 0.5rem 1.5rem rgba(32, 79, 116, 0.05);
}

.video-card-cover {
  position: relative;
  min-height: 360px;
  aspect-ratio: 16 / 6;
  overflow: hidden;
  background: #0d477c;
}

.video-card-cover img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.video-card-cover::after {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  background:
    linear-gradient(
      180deg,
      rgba(5, 37, 67, 0.04) 0%,
      rgba(5, 37, 67, 0.12) 100%
    );
}

.video-card-overlay {
  position: absolute;
  z-index: 2;
  right: clamp(1.5rem, 4vw, 3rem);
  bottom: clamp(1.5rem, 4vw, 3rem);
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.85rem 1.35rem;
  color: #123f68;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 999px;
  box-shadow: 0 0.8rem 2rem rgba(2, 31, 57, 0.2);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.video-play-icon {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 2.65rem;
  height: 2.65rem;
  padding-left: 0.15rem;
  color: #ffffff;
  background: linear-gradient(145deg, #e6ad2c, #bd7505);
  border-radius: 50%;
  box-shadow: 0 0.4rem 1rem rgba(175, 105, 0, 0.25);
  font-size: 0.85rem;
}

.video-card-status {
  font-size: 1.05rem;
  font-weight: 800;
  white-space: nowrap;
}

.video-card-content {
  padding: clamp(2.25rem, 5vw, 4rem);
}

.video-card-content h2 {
  margin: 0 0 1.25rem;
  color: #123f68;
  font-size: clamp(2rem, 4vw, 3.1rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.1;
}

.video-card-content > p {
  max-width: 900px;
  margin: 0;
  color: #607990;
  font-size: clamp(1.05rem, 1.8vw, 1.35rem);
  line-height: 1.7;
}

/* Insignia de estado */

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  margin-top: 2rem;
  padding: 0.85rem 1.25rem;
  color: #176399;
  background: #eaf5ff;
  border-radius: 999px;
  font-size: 1.05rem;
  font-weight: 800;
}

.status-dot {
  width: 0.75rem;
  height: 0.75rem;
  background: #e2a720;
  border-radius: 50%;
  box-shadow: 0 0 0 0.3rem rgba(226, 167, 32, 0.12);
}

/* Mensaje próximamente */

.video-coming-soon {
  width: 100%;
  margin: clamp(2.5rem, 5vw, 4rem) auto 0;
  padding: clamp(2.5rem, 5vw, 4rem) 2rem;
  text-align: center;
  background: rgba(255, 255, 255, 0.55);
  border: 2px dashed rgba(48, 116, 170, 0.28);
  border-radius: 2rem;
}

.video-coming-soon h2 {
  margin: 0 0 1rem;
  color: #174f7c;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 800;
}

.video-coming-soon p {
  margin: 0;
  color: #607990;
  font-size: clamp(1rem, 1.7vw, 1.25rem);
  line-height: 1.6;
}

/* Pie de página */

body[data-page="videoGallery"] .site-footer {
  padding: clamp(4rem, 7vw, 6rem) 0 2rem;
  background: rgba(238, 247, 253, 0.78);
  border-top: 1px solid rgba(48, 116, 170, 0.15);
}

body[data-page="videoGallery"] .site-footer > .container {
  width: min(100% - 3rem, 1664px);
  margin-inline: auto;
}

body[data-page="videoGallery"] .footer-grid {
  display: grid;
  grid-template-columns:
    minmax(280px, 1.6fr)
    minmax(180px, 0.8fr)
    minmax(180px, 0.8fr);
  gap: clamp(3rem, 8vw, 8rem);
  align-items: start;
}

body[data-page="videoGallery"] .footer-brand-column {
  min-width: 0;
}

body[data-page="videoGallery"] .footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
}

body[data-page="videoGallery"] .footer-brand-column > p {
  max-width: 440px;
  margin: 2rem 0 0;
  color: #607990;
  font-size: 1.05rem;
  line-height: 1.7;
}

body[data-page="videoGallery"] .footer-column {
  min-width: 0;
}

body[data-page="videoGallery"] .footer-column h2 {
  margin: 0 0 1.5rem;
  color: #123f68;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.3;
  text-transform: uppercase;
}

body[data-page="videoGallery"] .footer-column nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
}

body[data-page="videoGallery"] .footer-column a {
  color: #607990;
  line-height: 1.5;
  text-decoration: none;
}

body[data-page="videoGallery"] .footer-column a:hover,
body[data-page="videoGallery"] .footer-column a:focus-visible {
  color: #176399;
  text-decoration: underline;
  text-underline-offset: 0.3rem;
}

body[data-page="videoGallery"] .footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  margin-top: clamp(3rem, 6vw, 5rem);
  padding-top: 2rem;
  color: #607990;
  border-top: 1px solid rgba(48, 116, 170, 0.15);
}

body[data-page="videoGallery"] .footer-bottom p {
  margin: 0;
  line-height: 1.6;
}

body[data-page="videoGallery"] .footer-language-selector {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  flex: 0 0 auto;
}

body[data-page="videoGallery"] .footer-language-selector button {
  padding: 0;
  color: #607990;
  background: transparent;
  border: 0;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
}

body[data-page="videoGallery"] .footer-language-selector button:hover,
body[data-page="videoGallery"] .footer-language-selector button:focus-visible {
  color: #176399;
  text-decoration: underline;
  text-underline-offset: 0.3rem;
}

/* Tabletas */

@media (max-width: 900px) {
  .video-gallery-hero {
    padding-top: 6rem;
  }

  .video-gallery-heading {
    margin-bottom: 3.5rem;
  }

  .video-card-cover {
    min-height: 320px;
    aspect-ratio: 16 / 7;
  }

  body[data-page="videoGallery"] .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 3rem;
  }
}

/* Celulares */

@media (max-width: 720px) {
  .video-gallery-hero {
    padding: 4.75rem 0 4rem;
  }

  .video-gallery-hero > .container,
  body[data-page="videoGallery"] .site-footer > .container {
    width: min(100% - 2rem, 1664px);
  }

  .video-gallery-heading {
    margin-bottom: 3rem;
  }

  .video-gallery-heading .section-eyebrow {
    margin-bottom: 1.2rem;
    font-size: 0.85rem;
    letter-spacing: 0.22em;
  }

  .video-gallery-heading h1 {
    font-size: clamp(2.65rem, 12vw, 4.25rem);
    line-height: 1.02;
  }

  .video-gallery-introduction {
    margin-top: 1.6rem;
    font-size: 1.1rem;
    line-height: 1.6;
  }

  .video-card {
    border-radius: 1.75rem;
  }

  .video-card-cover {
    min-height: 0;
    aspect-ratio: 4 / 3;
  }

  .video-card-cover img {
    object-position: center;
  }

  .video-card-overlay {
    right: 1.25rem;
    bottom: 1.25rem;
    gap: 0.65rem;
    padding: 0.7rem 1rem;
  }

  .video-play-icon {
    width: 2.25rem;
    height: 2.25rem;
    font-size: 0.72rem;
  }

  .video-card-status {
    font-size: 0.95rem;
  }

  .video-card-content {
    padding: 2rem 1.5rem 2.25rem;
  }

  .video-card-content h2 {
    font-size: 2rem;
  }

  .video-card-content > p {
    font-size: 1.05rem;
  }

  .video-coming-soon {
    margin-top: 2rem;
    padding: 2.5rem 1.25rem;
    border-radius: 1.5rem;
  }

  body[data-page="videoGallery"] .footer-grid {
    grid-template-columns: 1fr;
    gap: 2.75rem;
  }

  body[data-page="videoGallery"] .footer-brand-column > p {
    margin-top: 1.5rem;
  }

  body[data-page="videoGallery"] .footer-column h2 {
    margin-bottom: 1.2rem;
  }

  body[data-page="videoGallery"] .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    margin-top: 3rem;
  }
}

/* Celulares pequeños */

@media (max-width: 420px) {
  .video-gallery-heading h1 {
    font-size: 2.55rem;
  }

  .video-card-overlay {
    right: 1rem;
    bottom: 1rem;
  }

  .video-play-icon {
    display: none;
  }

  .video-card-content {
    padding-inline: 1.25rem;
  }

  .status-badge {
    padding: 0.8rem 1rem;
    font-size: 0.95rem;
  }
}

/* Accesibilidad */

@media (prefers-reduced-motion: reduce) {
  body[data-page="videoGallery"] *,
  body[data-page="videoGallery"] *::before,
  body[data-page="videoGallery"] *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
