/* Fetalia · láminas de las landings de simuladores (teléfono). Mismo lenguaje que Método Fetalia
   (src/styles/metodo.css → .m-paginas .lam): barra superior clara, láminas a pantalla completa y menú
   narrativo oscuro con los capítulos en una tira horizontal. Solo actúa con html.lam-on. */
html.lam-on {
  --lam-papel: #fbfbfc; --lam-tinta: #0a0a0c; --lam-texto: #2b2f37; --lam-tenue: #6d7480; --lam-linea: #e6e7eb;
  --lam-azul: #3d5afe; --lam-oscuro: #070a0d; --lam-oscuro-txt: #d7e2e7; --lam-oscuro-tenue: #8a9aa4; --lam-oscuro-linea: #24323b;
  --lam-ease: cubic-bezier(.2, .7, .2, 1);
}
html.lam-on, html.lam-on body { overflow: hidden; height: 100%; overscroll-behavior: none; }
/* Todo lo que no pasó a una lámina queda fuera de la lectura por láminas. */
html.lam-on [data-laminas] > :not(.lam),
html.lam-on .bar, html.lam-on .cta-f, html.lam-on .prog, html.lam-on .site-header, html.lam-on .site-footer,
html.lam-on .ft-nav, html.lam-on body > footer, html.lam-on .lam-oculto { display: none !important; }
html.lam-on .lam {
  position: fixed; inset: 0; z-index: 100; height: 100svh;
  display: grid; grid-template-rows: auto minmax(0, 1fr) auto;
  background: var(--lam-papel); color: var(--lam-tinta);
}
/* ---------- barra superior */
html.lam-on .lam__sup {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px;
  padding: env(safe-area-inset-top) max(14px, env(safe-area-inset-right)) 0 max(14px, env(safe-area-inset-left));
  border-bottom: 1px solid var(--lam-linea); background: var(--lam-papel); position: relative; z-index: 3;
}
html.lam-on .lam__marca { display: inline-flex; align-items: baseline; gap: 8px; min-height: 44px; align-items: center; color: var(--lam-tinta); text-decoration: none; font: 600 11.5px/1 "IBM Plex Mono", ui-monospace, Menlo, monospace; letter-spacing: .2em; white-space: nowrap; }
html.lam-on .lam__marca span { color: var(--lam-azul); }
html.lam-on .lam__cta { position: relative; display: inline-flex; align-items: center; min-height: 34px; padding: 0 14px; border-radius: 40px; background: var(--lam-azul); color: #fff; font: 600 12.5px/1.2 "IBM Plex Sans", system-ui, sans-serif; text-decoration: none; white-space: nowrap; }
html.lam-on .lam__cta::after { content: ""; position: absolute; inset: -6px -2px; }
/* ---------- escena: capas de fondo + pista */
html.lam-on .lam__escena { position: relative; min-height: 0; overflow: hidden; }
html.lam-on .lam__fondos { position: absolute; inset: 0; z-index: 0; }
html.lam-on .lam__fondo { position: absolute !important; inset: 0 !important; width: 100% !important; height: 100% !important; opacity: 0; visibility: hidden; transition: opacity .45s var(--lam-ease), visibility 0s linear .45s; pointer-events: none; }
html.lam-on .lam__fondo.is-visible { opacity: 1; visibility: visible; transition: opacity .45s var(--lam-ease), visibility 0s; }
html.lam-on .lam__pista {
  position: relative; z-index: 1; height: 100%; display: flex; min-width: 0;
  overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none;
}
html.lam-on .lam__pista::-webkit-scrollbar { display: none; }
html.lam-on .lam__pista:focus { outline: none; }
html.lam-on .lam__hoja {
  flex: 0 0 100%; width: 100%; min-width: 0; height: 100%;
  scroll-snap-align: start; scroll-snap-stop: always; overflow-x: hidden; overflow-y: auto; overscroll-behavior-y: contain;
  padding: 20px max(20px, env(safe-area-inset-right)) 28px max(20px, env(safe-area-inset-left));
  background: var(--lam-papel); color: var(--lam-tinta);
}
html.lam-on .lam__contenido { width: 100%; max-width: 560px; margin: 0 auto; }
/* los bloques pierden sus márgenes de sección: la lámina ya es la sección */
html.lam-on .lam__contenido > * { margin-top: 0; margin-bottom: 0; padding-top: 0; padding-bottom: 0; padding-left: 0; padding-right: 0; border: 0; min-height: 0; }
html.lam-on .lam__contenido > * + * { margin-top: 22px; }
html.lam-on .lam .wrap, html.lam-on .lam .ft-wrap { width: 100%; max-width: none; padding: 0; margin: 0; }
html.lam-on .lam .rv { opacity: 1; transform: none; transition: none; }
/* lámina oscura (Visor, zona oscura) */
html.lam-on .lam__hoja--oscura { background: var(--lam-oscuro); color: var(--lam-oscuro-txt); }
/* láminas sobre una escena fija (corazón 3D): transparentes, con el texto abajo */
html.lam-on .lam__hoja--sobre-fondo { background: transparent; display: flex; flex-direction: column; justify-content: flex-end; padding: 0; }
html.lam-on .lam__hoja--sobre-fondo .lam__contenido {
  max-width: none; padding: 64px 20px calc(18px + env(safe-area-inset-bottom, 0px)) 20px;
  background: linear-gradient(rgb(251 251 252 / 0%), rgb(251 251 252 / 92%) 34%, #fbfbfc 60%);
}
html.lam-on .lam__hoja--sobre-fondo .lam__contenido > * { position: static !important; transform: none !important; opacity: 1 !important; visibility: visible !important; width: auto !important; max-width: 560px; margin-inline: auto !important; }
/* ---------- menú narrativo */
html.lam-on .lam__inf {
  position: relative; z-index: 3; display: grid; grid-template-columns: 44px minmax(0, 1fr) 44px; align-items: center; gap: 6px;
  min-height: 64px; padding: 10px max(10px, env(safe-area-inset-right)) calc(10px + env(safe-area-inset-bottom)) max(10px, env(safe-area-inset-left));
  background: var(--lam-tinta); color: #fff; font-family: "IBM Plex Sans", system-ui, sans-serif;
}
html.lam-on .lam__avance { position: absolute; left: 0; right: 0; top: 0; height: 3px; background: rgb(255 255 255 / 14%); }
html.lam-on .lam__avance i { display: block; height: 100%; background: var(--lam-azul); transform: scaleX(0); transform-origin: left; transition: transform 320ms var(--lam-ease); }
html.lam-on .lam__anterior, html.lam-on .lam__siguiente {
  display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0;
  border: 1px solid rgb(255 255 255 / 40%); border-radius: 50%; background: none; color: #fff; font: 400 24px/1 "IBM Plex Sans", system-ui, sans-serif; cursor: pointer;
}
html.lam-on .lam__siguiente { border-color: #fff; background: #fff; color: var(--lam-tinta); }
html.lam-on .lam__siguiente[aria-label="Volver al inicio"] { font-size: 20px; }
html.lam-on .lam__anterior:disabled { opacity: .28; cursor: default; }
html.lam-on .lam__capitulos {
  display: flex; gap: 6px; min-width: 0; padding: 0 14px; overflow-x: auto; scrollbar-width: none; overscroll-behavior-x: contain;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 14px, #000 calc(100% - 14px), transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 14px, #000 calc(100% - 14px), transparent 100%);
}
html.lam-on .lam__capitulos::-webkit-scrollbar { display: none; }
html.lam-on .lam__cap {
  flex: none; display: inline-flex; align-items: center; gap: 7px; min-height: 40px; padding: 0 13px;
  border: 1px solid rgb(255 255 255 / 26%); border-radius: 40px; background: none; color: rgb(255 255 255 / 82%);
  font: 500 13px/1 "IBM Plex Sans", system-ui, sans-serif; white-space: nowrap; cursor: pointer;
  transition: background .3s var(--lam-ease), border-color .3s var(--lam-ease), color .3s var(--lam-ease);
}
html.lam-on .lam__cap-n { color: rgb(255 255 255 / 55%); font: 500 10.5px/1 "IBM Plex Mono", ui-monospace, monospace; letter-spacing: .06em; }
html.lam-on .lam__cap.is-pasado { color: #fff; border-color: rgb(255 255 255 / 45%); }
html.lam-on .lam__cap[aria-current="step"] { border-color: var(--lam-azul); background: var(--lam-azul); color: #fff; font-weight: 600; }
html.lam-on .lam__cap[aria-current="step"] .lam__cap-n { color: #fff; }
html.lam-on .lam__cap-paso { font: 500 10.5px/1 "IBM Plex Mono", ui-monospace, monospace; opacity: .85; }
html.lam-on .lam__cap-paso:empty { display: none; }
html.lam-on .lam__inf :focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
html.lam-on .lam :focus-visible { outline: 2px solid var(--lam-azul); outline-offset: 2px; }
html.lam-on .lam__vivo { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
@media (prefers-reduced-motion: reduce) {
  html.lam-on .lam *, html.lam-on .lam *::before, html.lam-on .lam *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
/* botones secundarios sobre las láminas oscuras (la hoja base los aclara con html.dark, que aquí no existe) */
html.lam-on .lam__hoja--oscura .pill.quiet { color: var(--na-ink, #e0edf5); border-color: #3a4c58; }
/* portada: cabe en una pantalla; la ficha se repite en «Qué hace» */
html.lam-on .hb .facts { display: none; }
