/* ==========================================================================
   Páginas interiores
   ========================================================================== */

.ticks { display: grid; gap: 8px; margin-top: 18px; }
.ticks li { display: flex; gap: 10px; align-items: baseline; font-weight: 700; }
.ticks li::before {
  content: ""; flex: none; width: 14px; height: 14px; border-radius: 50%; transform: translateY(2px);
  background: linear-gradient(90deg, var(--lav) 50%, var(--tq) 50%); box-shadow: 0 0 0 2px var(--ink);
}
.ticks--light li::before { box-shadow: 0 0 0 2px var(--white); }

/* --- Clases --- */
.subnav { position: sticky; top: 0; z-index: 20; background: var(--ink); padding: 12px 0; transition: top .5s var(--ease); }
/* Con la cápsula visible, la subnavegación se coloca debajo para no quedar tapada */
@media (max-width: 960px) { .js:not(.cap-hidden) .subnav { top: calc(var(--header-h) + 6px); } }
.subnav ul { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity; overscroll-behavior-x: contain; }
.subnav a {
  display: inline-flex; align-items: center; gap: .55em; white-space: nowrap;
  padding: .55em 1.1em; border-radius: 999px; border: 2px solid #3A3744;
  color: var(--white); text-decoration: none; font-family: var(--display); font-weight: 700; font-size: .82rem;
  min-height: 44px; scroll-snap-align: start;
  transition: border-color .25s, background .25s;
}
@media (hover: hover) { .subnav a:hover { border-color: var(--tq); } }
.dot { width: 12px; height: 12px; border-radius: 50%; background: var(--tq); }
.dot--1 { background: var(--lav); }
.dot--ink { background: var(--white); }

.disc-sec { padding: clamp(64px, 9vw, 130px) 0; border-bottom: 3px solid var(--ink); scroll-margin-top: 72px; }
.disc-sec--tq { background: linear-gradient(90deg, var(--tq) 0 38%, var(--paper) 38%); }
.disc-sec--lav { background: linear-gradient(270deg, var(--lav) 0 38%, var(--paper) 38%); }
.disc-sec__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.disc-sec--flip .disc-sec__media { order: 2; }
.disc-sec__media { position: relative; }
.disc-sec__disc {
  width: min(100%, 480px); aspect-ratio: 1; border-radius: 50%; overflow: hidden; margin-inline: auto;
  border: 12px solid var(--ink); background: var(--ink);
}
.disc-sec__img { width: 100%; height: 100%; object-fit: cover; }
.disc-sec__n {
  position: absolute; left: 0; bottom: 4%; width: 84px; height: 84px; border-radius: 50%;
  display: grid; place-items: center; background: var(--white); border: 3px solid var(--ink);
  font-family: var(--display); font-weight: 900; font-size: 1.4rem;
}
.disc-sec--flip .disc-sec__n { left: auto; right: 0; }
.disc-sec__copy { display: grid; gap: 14px; }
.disc-sec__short { font-family: var(--display); font-weight: 700; font-size: clamp(1.05rem, 1.5vw, 1.3rem); line-height: 1.35; }
.disc-sec__when { margin-top: 10px; padding: 14px 18px; border-radius: 18px; background: var(--white); border: 2px solid var(--ink); }
@media (max-width: 899px) {
  .disc-sec--tq, .disc-sec--lav { background: var(--paper); }
  .disc-sec__grid { grid-template-columns: 1fr; }
  .disc-sec--flip .disc-sec__media { order: 0; }
  .disc-sec__media { padding: 24px 0; border-radius: 999px; }
  .disc-sec--tq .disc-sec__media { background: var(--tq); }
  .disc-sec--lav .disc-sec__media { background: var(--lav); }
  .disc-sec__disc { width: min(76vw, 360px); }
  .disc-sec__n { width: 64px; height: 64px; font-size: 1.1rem; }
}
@media (max-width: 640px) {
  .disc-sec { padding: 48px 0; }
  .disc-sec__media { padding: 18px 0; }
  .disc-sec__disc { width: min(68vw, 300px); border-width: 8px; }
  .free__card { padding: 24px 20px; }
  .free__actions .btn, .sched-sec__actions .btn { flex: 1 1 220px; justify-content: space-between; }
}

.free { padding: clamp(64px, 9vw, 120px) 0; }
.free__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 36px; }
.free__card { padding: 30px 26px; border-radius: var(--radius); border: 3px solid var(--ink); box-shadow: 0 8px 0 var(--ink); display: grid; gap: 10px; align-content: start; }
.free__card h3 { font-family: var(--display); font-size: 1.4rem; }
.free__card--lav { background: var(--lav); }
.free__card--paper { background: var(--white); }
.free__card--tq { background: var(--tq); }
.free__note { font-size: .92rem; }
.free__actions, .sched-sec__actions, .singles__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 40px; }
@media (max-width: 899px) { .free__grid { grid-template-columns: 1fr; } }

/* --- Horarios --- */
.sched-sec { padding: clamp(56px, 8vw, 110px) 0; }
.sched-sec__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 18px; }
.sched-sec__note { margin: 18px 0 28px; max-width: 70ch; }
.legend { display: flex; flex-wrap: wrap; gap: 8px; }
.grid-wrap { border: 3px solid var(--ink); border-radius: var(--radius); overflow: hidden; background: var(--white); box-shadow: 0 10px 0 var(--ink); }
.sched { width: 100%; border-collapse: collapse; table-layout: fixed; }
.sched th, .sched td { padding: 10px 8px; border-bottom: 1px solid #DCD6EC; text-align: center; vertical-align: middle; }
.sched thead th { background: var(--ink); color: var(--white); font-family: var(--display); font-size: .82rem; padding: 16px 6px; }
.sched thead th:nth-child(even) { color: var(--tq); }
.sched thead th:nth-child(odd):not(:first-child) { color: var(--lav); }
.sched tbody th { font-family: var(--display); font-weight: 800; width: 92px; background: var(--lav-soft); }
.sched td.has { display: table-cell; }
.sched td .chip { display: block; margin: 3px auto; max-width: 132px; font-size: .66rem; white-space: normal; line-height: 1.3; }
@media (hover: hover) { .sched tbody tr:hover td, .sched tbody tr:hover th { background: #EEF9F8; } }
.sched .abbr { display: none; }
.sched-sec__mobile { display: none; }
@media (max-width: 899px) {
  .grid-wrap { display: none; }
  .sched-sec__mobile { display: block; }
  /* Pestañas de día táctiles: 7 píldoras que ocupan todo el ancho, alto ≥ 44 px */
  .sched-sec__mobile .daytabs { gap: 4px; position: sticky; top: 0; z-index: 5; padding: 8px 0; background: var(--paper); transition: top .5s var(--ease); }
  .js:not(.cap-hidden) .sched-sec__mobile .daytabs { top: calc(var(--header-h) + 6px); }
  .sched-sec__mobile .daytabs__btn { flex: 1 1 0; width: auto; min-width: 0; height: 46px; aspect-ratio: auto; border-radius: 999px; font-size: .9rem; }
  .sched-sec__mobile .slot { min-height: 56px; }
  .sched-sec__mobile .slot__chips .chip { font-size: .74rem; padding: .3em .8em; }
  .sched-sec__note { margin: 14px 0 20px; font-size: .98rem; }
}
.opening { background: var(--tq); border-top: 3px solid var(--ink); padding: clamp(56px, 8vw, 100px) 0; }
.opening__grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 32px; align-items: center; }
.opening__list li { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 6px 18px; padding: 16px 0; border-bottom: 2px solid var(--ink); }
.opening__list span { font-weight: 700; }
.opening__list strong { font-family: var(--display); }
.opening__list--small li { padding: 10px 0; border-bottom-width: 1px; }
@media (max-width: 899px) { .opening__grid { grid-template-columns: 1fr; } }

/* --- Tarifas --- */
.rates { padding: clamp(64px, 9vw, 120px) 0; overflow: hidden; }
.rates__head { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: end; margin-bottom: 40px; }
.rates__bar {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; align-items: end; position: relative;
  padding-bottom: 8px;
}
.rates__bar::before {
  content: ""; position: absolute; left: -100vw; right: -100vw;
  bottom: 120px; height: var(--bar); background: var(--ink); z-index: -1;
}
.rates__bar { isolation: isolate; }
.rplate { display: grid; justify-items: center; gap: 14px; }
.rplate__disc {
  width: calc(100% * var(--k)); max-width: 300px; aspect-ratio: 1; border-radius: 50%;
  display: grid; place-content: center; text-align: center;
  background: var(--tq); border: 3px solid var(--ink); box-shadow: inset 0 0 0 14px var(--paper), inset 0 0 0 17px var(--ink);
  transition: transform .6s var(--ease-roll);
}
.rplate--1 .rplate__disc { background: var(--lav); }
@media (hover: hover) { .rplate:hover .rplate__disc { transform: rotate(-14deg) translateY(-8px); } }
.rplate__name { font-family: var(--display); font-weight: 800; text-transform: uppercase; letter-spacing: .08em; font-size: .9rem; }
.rplate__price { font-family: var(--display); font-weight: 900; font-size: clamp(2.4rem, 4.6vw, 4rem); line-height: 1; }
.rplate__price small { font-size: .45em; }
.rplate__per { font-weight: 700; font-size: .85rem; }
.rplate__sessions { font-weight: 700; background: var(--white); border: 2px solid var(--ink); border-radius: 999px; padding: .3em 1em; white-space: nowrap; }
.rplate__sessions strong { font-family: var(--display); }
@media (max-width: 899px) {
  .rates__head { grid-template-columns: 1fr; }
  .rates__bar { grid-template-columns: 1fr 1fr; gap: 28px 12px; }
  .rates__bar::before { display: none; }
  .rplate__disc { width: min(100%, calc(80% * var(--k) + 20%)); box-shadow: inset 0 0 0 8px var(--paper), inset 0 0 0 10px var(--ink); }
  .rplate__price { font-size: clamp(1.7rem, 8vw, 2.6rem); }
  .rplate__name { font-size: .72rem; }
  .rplate__sessions { font-size: .8rem; white-space: normal; text-align: center; }
}
@media (max-width: 400px) {
  .rates__bar { gap: 24px 8px; }
  .rplate__disc { width: min(100%, calc(70% * var(--k) + 30%)); }
  .rplate__name { font-size: .64rem; letter-spacing: .04em; }
  .rplate__per { font-size: .75rem; }
  .rplate__sessions { font-size: .74rem; padding: .3em .7em; line-height: 1.3; }
  .dcard { padding: 24px 20px; }
  .singles__list strong { font-size: 1.2rem; }
}

.diamonds { background: var(--ink); color: var(--white); padding: clamp(64px, 9vw, 120px) 0; }
.diamonds__lead { color: var(--muted-on-ink); margin: 14px 0 36px; max-width: 56ch; }
.diamonds__grid { display: grid; grid-template-columns: 1.1fr 1fr 1fr; gap: 20px; }
.dcard { border-radius: var(--radius); padding: 32px 28px; display: grid; gap: 10px; align-content: start; color: var(--ink); border: 3px solid var(--ink); }
.dcard--tq { background: var(--tq); }
.dcard--lav { background: var(--lav); }
.dcard--ink { background: var(--ink-2); color: var(--white); border-color: var(--tq); }
.dcard__name { font-family: var(--display); font-weight: 800; font-size: 1.35rem; }
.dcard__price { font-family: var(--display); font-weight: 900; font-size: clamp(3rem, 5vw, 4.4rem); line-height: 1; }
.dcard__price small { font-size: .3em; margin-left: .2em; }
.dcard--ink .dcard__price { color: var(--tq); }
.dcard__note { font-weight: 700; color: var(--lav); }
@media (max-width: 899px) { .diamonds__grid { grid-template-columns: 1fr; } }

.singles { padding: clamp(64px, 9vw, 120px) 0; }
.singles__grid { display: grid; grid-template-columns: 1fr 1fr auto; gap: 40px; align-items: center; }
.singles__grid > div > p { margin-top: 14px; max-width: 40ch; }
.singles__list li { display: flex; justify-content: space-between; gap: 12px; padding: 16px 0; border-bottom: 2px solid var(--ink); font-weight: 700; }
.singles__list strong { font-family: var(--display); font-size: 1.4rem; }
.promo {
  width: 240px; aspect-ratio: 1; border-radius: 50%; display: grid; place-content: center; text-align: center; padding: 24px;
  background: linear-gradient(90deg, var(--lav) 50%, var(--tq) 50%); border: 3px solid var(--ink); transform: rotate(-8deg);
}
.promo__big { font-family: var(--display); font-weight: 900; font-size: 3rem; line-height: 1; white-space: nowrap; }
.promo__txt { font-weight: 800; max-width: 10ch; margin: 6px auto 0; line-height: 1.25; }
.singles__foot { margin-top: 40px; }
@media (max-width: 899px) { .singles__grid { grid-template-columns: 1fr; } .promo { width: 210px; } }

/* --- Ven a probar --- */
.steps { padding: clamp(64px, 9vw, 120px) 0; position: relative; }
.steps .wrap { position: relative; }
.steps__list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 48px; position: relative; z-index: 1; }
.steps__bar { position: absolute; left: 0; right: 0; top: calc(var(--bar) + 150px); height: var(--bar); background: var(--ink); }
.step { display: grid; gap: 12px; align-content: start; }
.step__disc {
  width: 120px; height: 120px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--display); font-weight: 900; font-size: 3rem; border: 3px solid var(--ink);
  background: var(--tq);
}
.step:nth-child(2) .step__disc { background: var(--lav); }
.step:nth-child(3) .step__disc { background: linear-gradient(90deg, var(--lav) 50%, var(--tq) 50%); }
.step__title { font-family: var(--display); font-size: 1.4rem; margin-top: 8px; }
@media (max-width: 899px) { .steps__list { grid-template-columns: 1fr; } .steps__bar { display: none; } }

.offer { background: var(--lav); border-top: 3px solid var(--ink); border-bottom: 3px solid var(--ink); padding: clamp(64px, 9vw, 120px) 0; }
.offer__grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: center; }
.offer__copy { display: grid; gap: 16px; justify-items: start; }
.offer__copy > p { max-width: 50ch; font-weight: 500; }
.offer__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 26px; margin-top: 8px; }
.offer__alt { display: grid; gap: 10px; justify-items: start; margin-top: 6px; }
.offer__alt p { font-weight: 700; }
.offer__actions .link-line { display: inline-flex; align-items: center; min-height: 44px; }
.offer__facts { display: flex; gap: 0; justify-content: center; }
.offer__fact {
  width: 200px; aspect-ratio: 1; border-radius: 50%; display: grid; place-content: center; text-align: center;
  border: 3px solid var(--ink); gap: 4px;
}
.offer__fact + .offer__fact { margin-left: -40px; transform: translateY(40px); }
.offer__fact--lav { background: var(--white); }
.offer__fact--tq { background: var(--tq); }
.offer__fact strong { font-family: var(--display); font-weight: 900; font-size: 2.6rem; line-height: 1; white-space: nowrap; }
.offer__fact span { font-weight: 800; max-width: 11ch; margin: 0 auto; line-height: 1.2; }
@media (max-width: 640px) {
  .offer__actions, .offer__alt { width: 100%; }
  .offer__actions .btn, .offer__alt .btn { width: 100%; justify-content: space-between; }
  .step__disc { width: 88px; height: 88px; font-size: 2.2rem; }
  .steps__list { gap: 36px; margin-top: 32px; }
}
@media (max-width: 899px) { .offer__grid { grid-template-columns: 1fr; } .offer__fact { width: 160px; } .offer__fact strong { font-size: 2rem; } .offer__facts { padding-bottom: 40px; } }

/* --- Galería --- */
.inside--gallery { padding-top: clamp(56px, 8vw, 100px); }
.ig { padding: clamp(56px, 8vw, 110px) 0; background: var(--ink); color: var(--white); }
.ig__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 18px; margin-bottom: 32px; }
.ig__head p { max-width: 44ch; color: var(--muted-on-ink); }
.ig__head a { color: var(--tq); font-weight: 800; }
.mosaic { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.mosaic__cell { aspect-ratio: 1; overflow: hidden; border-radius: 24px; border: 3px solid var(--tq); }
.mosaic__cell--1, .mosaic__cell--3 { border-color: var(--lav); border-radius: 50%; }
.mosaic__img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.mosaic__link { display: block; width: 100%; height: 100%; border-radius: inherit; }
@media (hover: hover) { .mosaic__cell:hover .mosaic__img { transform: scale(1.08); } }
[data-lightbox] img[role="button"] { cursor: zoom-in; }
@media (max-width: 640px) { .mosaic { gap: 10px; } .mosaic__cell { border-radius: 18px; } }
.ig__actions { margin-top: 36px; }
@media (max-width: 899px) { .mosaic { grid-template-columns: 1fr 1fr; } }

/* --- Contacto --- */
.contact { padding: clamp(56px, 8vw, 100px) 0; }
.channels { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.chan {
  display: grid; gap: 6px; min-height: 170px; align-content: space-between; position: relative;
  padding: 24px; border-radius: var(--radius); border: 3px solid var(--ink); text-decoration: none;
  box-shadow: 0 8px 0 var(--ink); transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
@media (hover: hover) { .chan:hover { transform: translateY(-5px); box-shadow: 0 13px 0 var(--ink); } }
.chan:active { transform: translateY(3px); box-shadow: 0 5px 0 var(--ink); }
.chan--tq { background: var(--tq); }
.chan--lav { background: var(--lav); }
.chan--paper { background: var(--white); }
.chan--paper .chan__value { font-size: clamp(.9rem, 1.15vw, 1.05rem); }
.chan--ink { background: var(--ink); color: var(--white); }
.chan__label { font-family: var(--display); font-weight: 700; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; }
.chan__value { font-family: var(--display); font-weight: 800; font-size: 1.2rem; line-height: 1.25; padding-right: 48px; overflow-wrap: anywhere; }
.chan__disc { position: absolute; right: 18px; bottom: 18px; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--white); transition: transform .35s var(--ease); }
.chan--ink .chan__disc { background: var(--tq); color: var(--ink); }
.chan__disc .ico { width: 20px; height: 20px; }
@media (hover: hover) { .chan:hover .chan__disc { transform: rotate(-45deg); } }
@media (max-width: 1024px) { .channels { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .channels { grid-template-columns: 1fr; } .chan { min-height: 120px; } }

.contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 56px; }
.waform { display: grid; gap: 16px; padding: 32px; border-radius: var(--radius); background: var(--lav); border: 3px solid var(--ink); align-content: start; }
.waform__lead { font-weight: 500; }
.field { display: grid; gap: 6px; font-weight: 800; }
.field input, .field select, .field textarea {
  font: inherit; font-weight: 500; width: 100%; padding: 14px 16px; border-radius: 16px;
  border: 2px solid var(--ink); background: var(--white); color: var(--ink);
  font-size: max(16px, 1rem); min-height: 52px;
}
.field select { appearance: none; -webkit-appearance: none; padding-right: 48px;
  background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%23111015' stroke-width='2.6' stroke-linecap='round'/%3E%3C/svg%3E") right 16px center / 20px no-repeat; }
.field input[aria-invalid="true"] { border-color: #8E1B2E; box-shadow: 0 0 0 3px #F5C9D1; }
.field__error { font-weight: 700; color: #7A1426; background: var(--white); border: 2px solid #8E1B2E; border-radius: 12px; padding: 8px 12px; }
.field__error::before { content: "! "; font-family: var(--display); }
.field textarea { resize: vertical; }
.waform .btn { justify-self: start; cursor: pointer; }
.place { border-radius: var(--radius); border: 3px solid var(--ink); overflow: hidden; background: var(--white); display: grid; grid-template-rows: 220px auto; }
.place__map { position: relative; background: var(--tq-soft); border-bottom: 3px solid var(--ink); overflow: hidden; }
.place__road { position: absolute; background: var(--white); border: 2px solid var(--ink); }
.place__road--a { left: -10%; right: -10%; top: 55%; height: 34px; transform: rotate(-12deg); }
.place__road--b { top: -10%; bottom: -10%; left: 30%; width: 22px; transform: rotate(18deg); }
.place__pin { position: absolute; left: 52%; top: 46%; transform: translate(-50%, -50%); width: 86px; height: 86px; border-radius: 50%; box-shadow: 0 0 0 4px var(--ink), 0 0 0 14px rgba(17, 16, 21, .12); animation: pulse 2.4s var(--ease) infinite; }
.place__pin img { width: 86px; height: 86px; }
@keyframes pulse { 50% { box-shadow: 0 0 0 4px var(--ink), 0 0 0 24px rgba(17, 16, 21, .05); } }
.place__info { padding: 28px; display: grid; gap: 12px; justify-items: start; }
.place__info .opening__list { width: 100%; }
.place__title { font-family: var(--display); font-size: 1.5rem; }
@media (max-width: 899px) { .contact__grid { grid-template-columns: 1fr; } .waform { padding: 24px 18px; } }
@media (max-width: 640px) {
  .contact__grid { margin-top: 36px; }
  .waform .btn, .place__info .btn { justify-self: stretch; justify-content: space-between; }
  .place { grid-template-rows: 170px auto; }
  .place__info { padding: 22px 18px; }
}

/* --- Legales --- */
.legal__head { background: var(--lav); border-bottom: 3px solid var(--ink); padding: calc(var(--header-h) + 64px) 0 48px; }
.legal__title { font-family: var(--display); font-weight: 900; font-size: clamp(2.1rem, 5vw, 4rem); line-height: 1; margin-top: 16px; }
.legal__body { max-width: 820px; padding-top: 48px; padding-bottom: 96px; }
.draft { padding: 16px 20px; border-radius: 18px; background: var(--tq-soft); border: 2px solid var(--ink); font-weight: 700; }

/* Índice colapsable de los textos legales */
.toc { margin: 24px 0 8px; border: 2px solid var(--ink); border-radius: 18px; background: var(--white); }
.toc summary {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; padding: 0 18px;
  font-family: var(--display); font-weight: 800; cursor: pointer; list-style: none;
}
.toc summary::-webkit-details-marker { display: none; }
.toc summary::after { content: "+"; font-size: 1.4rem; line-height: 1; }
.toc[open] summary::after { content: "–"; }
.toc__n { margin-left: auto; font-family: var(--text); font-size: .85rem; font-weight: 700; }
.toc ol { list-style: decimal; padding: 0 18px 14px 40px; margin: 0; }
.prose .toc li + li { margin-top: 0; }
.toc a { display: inline-flex; align-items: center; min-height: 44px; }
.legal__body h2 { scroll-margin-top: 90px; }
@media (max-width: 640px) {
  .legal__head { padding: calc(var(--header-h) + 36px) 0 32px; }
  .legal__body { padding-top: 32px; padding-bottom: 64px; }
  .prose h2 { font-size: 1.2rem; }
}

/* Visor de fotos */
.viewer {
  width: 100%; max-width: none; height: 100%; max-height: none; margin: 0; padding: 0; border: 0;
  background: var(--ink); color: var(--white);
}
.viewer::backdrop { background: rgba(17, 16, 21, .92); }
html:has(.viewer[open]) { overflow: hidden; }
.viewer[open] { display: grid; grid-template-rows: 1fr auto; place-items: center; }
.viewer__fig { margin: 0; display: grid; gap: 12px; justify-items: center; padding: 72px 16px 8px; max-height: 100%; }
.viewer__img { max-width: min(100%, 1200px); max-height: calc(100dvh - 200px); width: auto; height: auto; border-radius: 18px; border: 3px solid var(--tq); touch-action: pan-y; user-select: none; }
.viewer__cap { text-align: center; max-width: 60ch; color: var(--muted-on-ink); font-size: .95rem; }
.viewer__count { font-family: var(--display); font-weight: 700; padding: 0 0 calc(20px + env(safe-area-inset-bottom)); }
.viewer__btn {
  position: fixed; width: 52px; height: 52px; border-radius: 50%; border: 2px solid var(--ink);
  display: grid; place-items: center; cursor: pointer; font-family: var(--display); font-size: 1.8rem; line-height: 1;
  background: var(--tq); color: var(--ink);
}
.viewer__close { top: calc(14px + env(safe-area-inset-top)); right: calc(14px + env(safe-area-inset-right)); background: var(--white); }
.viewer__prev, .viewer__next { bottom: calc(12px + env(safe-area-inset-bottom)); }
.viewer__prev { left: calc(16px + env(safe-area-inset-left)); background: var(--lav); }
.viewer__next { right: calc(16px + env(safe-area-inset-right)); }
@media (min-width: 900px) { .viewer__prev, .viewer__next { top: 50%; bottom: auto; transform: translateY(-50%); } }
