/* ═══════════════════════════════════════════════════
   Armonía y Bienestar — Sección Videos
   Usa solo las variables y clases ya definidas en style.css
   (paleta jade · gold · cream · ink, Cormorant Garamond + Jost)
   ═══════════════════════════════════════════════════ */

.videos {
  padding: var(--space-section) clamp(1.25rem, 5vw, 4rem);
  max-width: var(--max-w);
  margin: 0 auto;
}
.videos__head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 2rem; flex-wrap: wrap;
  margin-bottom: clamp(2.2rem, 5vw, 3.5rem);
}
.videos__head h2 { font-size: clamp(2.2rem, 5vw, 3.4rem); max-width: 14ch; }
.videos__head p { max-width: 34ch; color: var(--ink-soft); padding-bottom: .4rem; }

.videos__grid {
  display: grid;
  gap: clamp(1rem, 2vw, 1.5rem);
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
}

/* ── Miniatura ───────────────────────────── */
.vthumb {
  position: relative;
  display: block; width: 100%;
  aspect-ratio: 4 / 5;
  border: 0; padding: 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  background: var(--jade-deep);
  color: var(--cream);
  font: inherit; text-align: left; cursor: pointer;
}
.vthumb[hidden] { display: none; }
.vthumb img {
  width: 100%; height: 100%; object-fit: cover; object-position: center;
  transition: transform .8s cubic-bezier(.22,1,.36,1);
}
.vthumb:hover img, .vthumb:focus-visible img { transform: scale(1.05); }
.vthumb:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.vthumb__play {
  position: absolute; top: 50%; left: 50%;
  width: 3.6rem; height: 3.6rem;
  transform: translate(-50%, -50%);
  display: grid; place-items: center;
  border-radius: 50%;
  background: rgba(247, 243, 234, .92);
  color: var(--jade-deep);
  box-shadow: 0 10px 24px -8px rgba(31, 66, 52, .55);
  transition: transform .4s cubic-bezier(.22,1,.36,1), background .3s, color .3s;
}
.vthumb__play svg { width: 1.3rem; height: 1.3rem; margin-left: .15rem; }
.vthumb:hover .vthumb__play, .vthumb:focus-visible .vthumb__play {
  transform: translate(-50%, -50%) scale(1.08);
  background: var(--gold); color: var(--cream);
}

.vthumb__overlay {
  position: absolute; inset: auto 0 0 0;
  padding: 2.2rem 1.2rem 1.1rem;
  background: linear-gradient(to top, rgba(31, 66, 52, .92) 0%, rgba(31, 66, 52, .6) 55%, transparent 100%);
  display: flex; flex-direction: column; gap: .3rem;
}
.vthumb__overlay em {
  font-family: var(--font-serif); font-style: normal;
  font-size: 1.1rem; line-height: 1.3; color: var(--cream);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.vthumb__overlay span {
  font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-soft);
}

/* ── Acciones ────────────────────────────── */
.videos__actions {
  display: flex; justify-content: center; align-items: center;
  gap: 1rem; flex-wrap: wrap;
  margin-top: clamp(2rem, 5vw, 3rem);
}
.videos__actions .btn { cursor: pointer; }

/* ── Visor (pantalla grande) ─────────────── */
.vmodal__panel {
  position: relative;
  width: min(940px, 100%);
  max-height: 94vh;
  display: flex; flex-direction: column; align-items: center; gap: .9rem;
}
.vmodal__frame {
  position: relative; width: 100%;
  aspect-ratio: 16 / 9;
  max-height: calc(94vh - 4.5rem);
  border-radius: var(--radius);
  overflow: hidden;
  background: #000;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(184, 147, 74, .35);
}
.vmodal__panel[data-orient="v"] { width: min(100%, calc((94vh - 4.5rem) * 9 / 16)); }
.vmodal__panel[data-orient="v"] .vmodal__frame {
  width: 100%; height: auto; max-height: none;
  aspect-ratio: 9 / 16;
}
.vmodal__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.vmodal__title {
  font-family: var(--font-serif); font-size: 1.25rem; line-height: 1.2;
  color: var(--cream); text-align: center; max-width: 90%;
}
.vmodal__close {
  position: absolute; top: -.2rem; right: -.2rem; z-index: 3;
  width: 2.4rem; height: 2.4rem; border-radius: 50%;
  border: 0; cursor: pointer;
  background: rgba(247, 243, 234, .92); color: var(--ink);
  font-size: 1.5rem; line-height: 1;
  box-shadow: 0 8px 20px -8px rgba(31, 66, 52, .55);
  transition: background .3s, color .3s;
}
.vmodal__close:hover { background: var(--gold); color: var(--cream); }

.vthumb__overlay .vthumb__sub { font-weight: 300; }

@media (max-width: 640px) {
  .vthumb__sub { display: none; }
  .videos__grid { grid-template-columns: repeat(2, 1fr); }
  .vthumb__play { width: 3rem; height: 3rem; }
  .vthumb__overlay { padding: 1.8rem .85rem .8rem; }
  .vthumb__overlay em { font-size: .98rem; }
  .vmodal__close { top: .3rem; right: .3rem; }
}

@media (prefers-reduced-motion: reduce) {
  .vthumb:hover img, .vthumb:focus-visible img { transform: none; }
}

.videos__actions [hidden] { display: none; }
