/* ═══ Las fotos de la sesión (22 oct 2026) ═══
   Tres maneras de integrarlas sobre la propuesta 3 (ver fuentes/armar-fotos.py):
   body.fotos-1 entre capítulos · fotos-2 álbum · fotos-3 carrusel. El svisor
   (ver en grande) lo comparten la 2 y la 3 (js/fx-fotos.js). */

/* ── 1 · Entre capítulos: una foto grande en arco, con su frase ── */
.foto-divisor {
  position: relative; margin: -2.4rem 0 0; z-index: 0;
  height: min(78svh, 640px); overflow: hidden;
  border-radius: 50% 50% 0 0 / 2.4rem 2.4rem 0 0;
  background: #4F3D35;
}
.foto-divisor__img { display: block; width: 100%; height: 100%; object-fit: cover; }
.foto-divisor::after {                                  /* velo para que se lea la frase */
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(40, 28, 22, 0) 45%, rgba(40, 28, 22, .55) 100%);
}
.foto-divisor__frase {
  position: absolute; z-index: 1; left: 1rem; right: 1rem; bottom: 3.6rem; text-align: center;
  font-family: var(--script); font-size: 2.5rem; line-height: 1.1; color: #FFF8EE;
  text-shadow: 0 2px 14px rgba(0, 0, 0, .45);
}

/* ── 2 y 3 · La sección «Nuestra sesión» ── */
.seccion--sesion .pieza--sesion { max-width: 26rem; }
.seccion--sesion .texto { margin-bottom: .4rem; }

/* 2 · Mosaico por capítulo */
.mosaico { margin-top: 1.8rem; }
.mosaico__cap { font-family: var(--script); font-size: 2.1rem; line-height: 1.1; color: #E6D2A6; margin-bottom: .6rem; }
.mosaico__rejilla { display: grid; grid-template-columns: 1fr 1fr; grid-auto-flow: dense; gap: 6px; }
.mosaico__tesela {
  display: block; padding: 0; border: 0; border-radius: 6px; overflow: hidden; cursor: zoom-in;
  aspect-ratio: 2 / 3; background: #3F302A;
}
.mosaico__tesela--ancha { grid-column: 1 / -1; aspect-ratio: 3 / 2; }
.mosaico__tesela:first-child:not(.mosaico__tesela--ancha) { grid-row: span 2; aspect-ratio: auto; }
.mosaico__tesela img { display: block; width: 100%; height: 100%; object-fit: cover; }
.mosaico__todas {
  margin-top: .7rem; padding: .55rem 1.1rem; border-radius: 999px; cursor: pointer;
  font-family: var(--sans); font-weight: 600; font-size: .62rem; letter-spacing: .2em; text-transform: uppercase;
  color: #F6EEE2; background: none; border: 1px solid rgba(230, 210, 166, .6);
}

/* 3 · Carrusel */
.carrusel { margin-top: 1.2rem; }
.carrusel__pestanas { display: flex; justify-content: center; gap: .35rem; flex-wrap: wrap; margin-bottom: .9rem; }
.carrusel__pestana {
  padding: .45rem .8rem; border-radius: 999px; cursor: pointer;
  font-family: var(--sans); font-weight: 600; font-size: .56rem; letter-spacing: .16em; text-transform: uppercase;
  color: #F6EEE2; background: none; border: 1px solid rgba(230, 210, 166, .45);
  transition: background .25s ease, color .25s ease;
}
.carrusel__pestana[aria-selected="true"] { background: #E6D2A6; color: #3F302A; border-color: #E6D2A6; }
.carrusel__pista {
  display: flex; gap: 10px; overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scrollbar-width: none;
  margin: 0 -1.35rem; padding: 0 1.35rem; scroll-padding: 0 1.35rem;
}
.carrusel__pista::-webkit-scrollbar { display: none; }
.carrusel__lamina {
  flex: 0 0 84%; padding: 0; border: 0; border-radius: 10px; overflow: hidden; cursor: zoom-in;
  aspect-ratio: 4 / 5; scroll-snap-align: start; background: #3F302A;
}
.carrusel__lamina img { display: block; width: 100%; height: 100%; object-fit: cover; }
.carrusel__pie { display: flex; align-items: center; justify-content: center; gap: 1.1rem; margin-top: .8rem; }
.carrusel__cuenta { font-family: var(--sans); font-size: .72rem; letter-spacing: .14em; color: #F6EEE2; }
.carrusel__cuenta b { color: #E6D2A6; }
.carrusel__flecha {
  width: 2.4rem; height: 2.4rem; border-radius: 50%; cursor: pointer;
  font-size: 1.4rem; line-height: 1; color: #F6EEE2; background: none; border: 1px solid rgba(230, 210, 166, .55);
}

/* ── El svisor: las fotos completas, deslizables ── */
.svisor {
  position: fixed; inset: 0; z-index: 10000; display: none; flex-direction: column;
  background: rgba(24, 17, 13, .96);
}
.svisor--abierto { display: flex; }
.svisor__barra {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: calc(env(safe-area-inset-top, 0px) + .7rem) 1rem .6rem; color: #F6EEE2;
}
.svisor__cap { font-family: var(--script); font-size: 1.7rem; line-height: 1; color: #E6D2A6; }
.svisor__cuenta { font-family: var(--sans); font-size: .7rem; letter-spacing: .14em; }
.svisor__cerrar { width: 2.6rem; height: 2.6rem; border-radius: 50%; border: 1px solid rgba(230, 210, 166, .5); background: none; color: #F6EEE2; font-size: 1.6rem; line-height: 1; cursor: pointer; }
.svisor__pista {
  flex: 1; min-height: 0; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior: contain;
}
.svisor__pista::-webkit-scrollbar { display: none; }
.svisor__foto { flex: 0 0 100%; height: 100%; scroll-snap-align: center; display: flex; align-items: center; justify-content: center; padding: .5rem .5rem calc(env(safe-area-inset-bottom, 0px) + .8rem); margin: 0; box-sizing: border-box; }
.svisor__foto img { display: block; width: auto; height: auto; max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 4px; }
body.svisor-abierto { overflow: hidden; }
/* (23 oct) el aviso del álbum, cuando se puede reintentar */
.galeria-aviso--reintentar { cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

/* (22 oct) el carrusel responde al dedo: al tocarlo, la foto se hunde tantito */
.carrusel__lamina { transition: scale .18s ease; }
.carrusel__pista--tocada .carrusel__lamina { scale: .97; }

/* (22 oct) la foto sin frase no lleva el velo oscuro de abajo */
.foto-divisor--sola::after { content: none; }
