/* Enterao · web
   Cuaderno y fluorescente: papel cuadriculado, tinta azul marino, subrayador. */

@font-face {
  font-family: "Bricolage";
  src: url("fuentes/BricolageGrotesque-ExtraBold.ttf") format("truetype");
  font-weight: 800;
  font-display: swap;
}
@font-face {
  font-family: "Bricolage";
  src: url("fuentes/BricolageGrotesque-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Atkinson";
  src: url("fuentes/AtkinsonHyperlegible-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Atkinson";
  src: url("fuentes/AtkinsonHyperlegible-Bold.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Atkinson";
  src: url("fuentes/AtkinsonHyperlegible-Italic.ttf") format("truetype");
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Kalam";
  src: url("fuentes/Kalam-Regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Kalam";
  src: url("fuentes/Kalam-Bold.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

:root {
  --papel: #fbfaf4;
  --tarjeta: #ffffff;
  --cuadricula: #e7e8ee;
  --margen: #f2b8b5;
  --tinta: #1b2340;
  --tinta-suave: #5a6077;
  --linea: #d9dbe3;
  --acento: #2b44b8;
  --acento-suave: #e3e8fb;
  --fluor: #ffe45c;
  --fluor-suave: #fff8d1;
  --pago: #0f766e;
  --pago-suave: #dff3f0;
  --disfraz: #a21caf;
  --disfraz-suave: #fae8fd;
  --examen: #be123c;
  --examen-suave: #fde4ea;
  --boli: #2b44b8;

  --cuadro: 28px;
  --radio: 18px;
  --ancho: 1180px;
  --sombra-solida: 4px 5px 0 var(--tinta);

  --titular: "Bricolage", "Avenir Next", system-ui, sans-serif;
  --texto: "Atkinson", system-ui, sans-serif;
  --mano: "Kalam", "Bradley Hand", cursive;

  color-scheme: light;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background-color: var(--papel);
  background-image:
    linear-gradient(var(--cuadricula) 1px, transparent 1px),
    linear-gradient(90deg, var(--cuadricula) 1px, transparent 1px);
  background-size: var(--cuadro) var(--cuadro);
  color: var(--tinta);
  font-family: var(--texto);
  font-size: 18px;
  line-height: 1.55;
  overflow-x: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

::selection {
  background: var(--fluor);
  color: var(--tinta);
}

.envoltura {
  width: min(var(--ancho), 100% - 32px);
  margin-inline: auto;
}

.solo-lectores {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ───────── Subrayador ───────── */

.fluor {
  position: relative;
  z-index: 0;
  white-space: nowrap;
}
.fluor::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: -0.12em;
  right: -0.12em;
  top: 0.18em;
  bottom: 0.02em;
  background: var(--fluor);
  border-radius: 0.12em 0.3em 0.18em 0.35em;
  transform: rotate(-1.2deg) scaleX(var(--trazo, 1));
  transform-origin: left center;
}

.marca {
  position: relative;
  z-index: 0;
  padding: 0 0.08em;
}
.marca > .tiza {
  position: absolute;
  z-index: -1;
  inset: 0.08em -0.1em -0.02em -0.1em;
  background: var(--fluor);
  border-radius: 3px 8px 4px 9px;
  opacity: 0.92;
  transform-origin: left center;
}

/* ───────── Botones ───────── */

.boton {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border: 2px solid var(--tinta);
  border-radius: 14px;
  background: var(--fluor);
  color: var(--tinta);
  font-family: var(--titular);
  font-weight: 800;
  font-size: 17px;
  text-decoration: none;
  box-shadow: var(--sombra-solida);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.boton:hover {
  transform: translate(-1px, -1px);
  box-shadow: 6px 7px 0 var(--tinta);
}
.boton:active {
  transform: translate(3px, 4px);
  box-shadow: 1px 1px 0 var(--tinta);
}
.boton svg {
  width: 20px;
  height: 20px;
}
.boton--tinta {
  background: var(--tinta);
  color: var(--papel);
  box-shadow: 4px 5px 0 var(--fluor), 4px 5px 0 2px var(--tinta);
}
.boton--tinta:hover {
  box-shadow: 6px 7px 0 var(--fluor), 6px 7px 0 2px var(--tinta);
}
.boton-pequeno {
  padding: 9px 15px;
  font-size: 15px;
  border-radius: 11px;
  box-shadow: 3px 3px 0 var(--tinta);
}

/* ───────── Cabecera ───────── */

.cabecera {
  position: sticky;
  top: 0;
  z-index: 40;
  padding: 14px 0;
  transition: background 0.25s ease, box-shadow 0.25s ease;
}
.cabecera.con-fondo {
  background: rgba(251, 250, 244, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 1px 0 var(--linea);
}
.cabecera.sobre-noche {
  background: rgba(27, 35, 64, 0.94);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08);
  color: var(--papel);
}
.cabecera.sobre-noche .logo img {
  border-color: var(--papel);
}
.cabecera.sobre-noche .boton {
  border-color: var(--papel);
  box-shadow: 3px 3px 0 var(--papel);
}
.cabecera .envoltura {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--titular);
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.02em;
  text-decoration: none;
}
.logo img {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  border: 1.5px solid var(--tinta);
}
.navegacion {
  display: flex;
  align-items: center;
  gap: 26px;
  font-weight: 700;
  font-size: 16px;
}
.navegacion a:not(.boton) {
  text-decoration: none;
  background-image: linear-gradient(var(--fluor), var(--fluor));
  background-size: 0% 45%;
  background-position: 0 85%;
  background-repeat: no-repeat;
  transition: background-size 0.25s ease;
}
.navegacion a:not(.boton):hover {
  background-size: 100% 45%;
}

/* ───────── Portada ───────── */

.portada {
  position: relative;
  padding: 40px 0 120px;
}
.portada .envoltura {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 40px;
  align-items: center;
}
.portada h1 {
  margin: 0 0 22px;
  font-family: var(--titular);
  font-weight: 800;
  font-size: clamp(54px, 8.2vw, 112px);
  line-height: 0.92;
  letter-spacing: -0.045em;
}
.portada h1 .linea {
  display: block;
}
.tachado {
  position: relative;
  display: inline-block;
  color: var(--tinta-suave);
}
.tachado svg {
  position: absolute;
  left: -4%;
  top: 34%;
  width: 108%;
  height: 40%;
  overflow: visible;
  pointer-events: none;
}
.tachado path {
  fill: none;
  stroke: var(--examen);
  stroke-width: 7;
  stroke-linecap: round;
}
.portada .lema {
  max-width: 22ch;
  margin: 0 0 14px;
  font-family: var(--titular);
  font-weight: 800;
  font-size: clamp(24px, 2.4vw, 32px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--tinta);
}
.portada .entradilla {
  max-width: 30ch;
  margin: 0 0 32px;
  font-size: clamp(19px, 1.7vw, 22px);
  color: var(--tinta-suave);
}
.portada .entradilla strong {
  color: var(--tinta);
}
.acciones {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 22px;
}
.nota-mano {
  font-family: var(--mano);
  font-size: 22px;
  line-height: 1.2;
  color: var(--boli);
}
.acciones .nota-mano {
  display: flex;
  align-items: center;
  gap: 8px;
  transform: rotate(-3deg);
}
.acciones .nota-mano svg {
  width: 46px;
  height: 30px;
  overflow: visible;
}
.trazo-boli {
  fill: none;
  stroke: var(--boli);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Escena: circular + móvil */
.escena {
  position: relative;
  height: 640px;
}
.circular {
  position: absolute;
  left: -48px;
  top: 30px;
  width: 340px;
  padding: 30px 30px 34px;
  background: #fffdf8;
  border: 1px solid #e5e2d6;
  border-radius: 4px;
  box-shadow: 0 1px 0 #ece9dd, 0 18px 40px -18px rgba(27, 35, 64, 0.35);
  transform: rotate(-4deg);
  font-family: "Times New Roman", Georgia, serif;
  font-size: 13.5px;
  line-height: 1.6;
  color: #2e2e2e;
}
.circular::before {
  /* agujeros de archivador */
  content: "";
  position: absolute;
  left: 10px;
  top: 70px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--papel);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.25), 0 180px 0 var(--papel);
}
.circular .membrete {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid #ddd;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 10.5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #6b6b6b;
}
.circular p {
  margin: 0 0 9px;
}
/* Subrayador que corre por la frase aunque ocupe dos líneas */
.subrayable {
  --p: 1;
  background-image: linear-gradient(transparent 22%, rgba(255, 228, 92, 0.95) 22%, rgba(255, 228, 92, 0.95) 92%, transparent 92%);
  background-repeat: no-repeat;
  background-size: calc(var(--p) * 100%) 100%;
  padding: 0 1px;
}
.circular .firma {
  margin-top: 14px;
  font-style: italic;
}
.sello-cole {
  position: absolute;
  right: 22px;
  bottom: 18px;
  width: 64px;
  height: 64px;
  border: 2px solid rgba(43, 68, 184, 0.45);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: Arial, sans-serif;
  font-size: 8px;
  font-weight: 700;
  text-align: center;
  color: rgba(43, 68, 184, 0.55);
  transform: rotate(14deg);
  line-height: 1.15;
}

.movil {
  position: absolute;
  right: 0;
  top: 0;
  width: 304px;
  height: 628px;
  padding: 11px;
  background: var(--tinta);
  border-radius: 50px;
  box-shadow: 10px 12px 0 rgba(27, 35, 64, 0.12);
  z-index: 2;
}
.movil::before {
  /* isla */
  content: "";
  position: absolute;
  top: 22px;
  left: 50%;
  width: 92px;
  height: 26px;
  margin-left: -46px;
  border-radius: 20px;
  background: #0b1022;
  z-index: 5;
}
.pantalla {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 40px;
  background-color: var(--papel);
  background-image:
    linear-gradient(var(--cuadricula) 1px, transparent 1px),
    linear-gradient(90deg, var(--cuadricula) 1px, transparent 1px);
  background-size: 20px 20px;
  padding: 58px 16px 16px;
  font-size: 14px;
  line-height: 1.35;
}
.barra-estado {
  position: absolute;
  top: 18px;
  left: 30px;
  right: 26px;
  display: flex;
  justify-content: space-between;
  font-weight: 700;
  font-size: 14px;
}
.barra-estado span:last-child {
  letter-spacing: 2px;
}
.app-titulo {
  margin: 0 0 2px;
  font-family: var(--titular);
  font-weight: 800;
  font-size: 26px;
  letter-spacing: -0.03em;
}
.app-sub {
  margin: 0 0 14px;
  font-size: 12.5px;
  color: var(--tinta-suave);
}
.app-sub b {
  color: var(--tinta);
}

.ficha {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  padding: 11px 12px;
  background: var(--tarjeta);
  border: 1.5px solid var(--linea);
  border-radius: 14px;
}
.ficha .icono {
  flex: none;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: var(--acento-suave);
  color: var(--acento);
}
.ficha .icono svg {
  width: 18px;
  height: 18px;
}
.ficha .que {
  flex: 1;
  min-width: 0;
}
.ficha .que b {
  display: block;
  font-family: var(--titular);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: -0.01em;
}
.ficha .que small {
  display: block;
  font-size: 11.5px;
  color: var(--tinta-suave);
}
.ficha--pago .icono {
  background: var(--pago-suave);
  color: var(--pago);
}
.ficha--disfraz .icono {
  background: var(--disfraz-suave);
  color: var(--disfraz);
}
.ficha--mochila .icono {
  background: var(--fluor-suave);
  color: #8a6d00;
}
.ficha--examen .icono {
  background: var(--examen-suave);
  color: var(--examen);
}
.ok {
  flex: none;
  width: 28px;
  height: 28px;
  border: 1.5px solid var(--tinta);
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--papel);
}
.ok svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: var(--tinta);
  stroke-width: 3.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0;
}
.ok.hecho svg {
  opacity: 1;
}
.ok.hecho {
  background: var(--fluor);
}

.pie-app {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  display: flex;
  justify-content: space-around;
  padding: 10px 6px 8px;
  border: 1.5px solid var(--linea);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.9);
  font-size: 10px;
  font-weight: 700;
  color: var(--tinta-suave);
}
.pie-app span {
  display: grid;
  justify-items: center;
  gap: 2px;
}
.pie-app svg {
  width: 19px;
  height: 19px;
}
.pie-app .activa {
  color: var(--acento);
}

.post-it {
  position: absolute;
  right: 250px;
  bottom: 40px;
  z-index: 3;
  width: 168px;
  padding: 16px 14px 18px;
  background: var(--fluor);
  box-shadow: 0 10px 22px -10px rgba(27, 35, 64, 0.45);
  transform: rotate(5deg);
  font-family: var(--mano);
  font-size: 19px;
  line-height: 1.2;
  color: var(--tinta);
}
.post-it::after {
  content: "";
  position: absolute;
  top: -10px;
  left: 50%;
  width: 70px;
  height: 22px;
  margin-left: -35px;
  background: rgba(255, 255, 255, 0.55);
  transform: rotate(-4deg);
}

/* ───────── Secciones ───────── */

.seccion {
  position: relative;
  padding: 130px 0;
}
.antetitulo {
  display: inline-block;
  margin-bottom: 18px;
  padding: 4px 10px;
  border: 1.5px solid var(--tinta);
  border-radius: 8px;
  background: var(--tarjeta);
  font-family: var(--titular);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.titulo-seccion {
  margin: 0 0 22px;
  font-family: var(--titular);
  font-weight: 800;
  font-size: clamp(40px, 5.6vw, 76px);
  line-height: 0.98;
  letter-spacing: -0.04em;
}
.texto-seccion {
  max-width: 46ch;
  margin: 0;
  font-size: 20px;
  color: var(--tinta-suave);
}

/* 22:47 */
.noche {
  background: var(--tinta);
  color: var(--papel);
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: var(--cuadro) var(--cuadro);
  overflow: hidden;
}
.noche .envoltura {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  min-height: 100vh;
}
.reloj {
  font-family: var(--titular);
  font-weight: 800;
  font-size: clamp(96px, 15vw, 210px);
  line-height: 0.85;
  letter-spacing: -0.06em;
  font-variant-numeric: tabular-nums;
}
.reloj .dos-puntos {
  animation: parpadeo 1s steps(1) infinite;
}
@keyframes parpadeo {
  50% {
    opacity: 0.2;
  }
}
.relato {
  position: relative;
  margin-top: 26px;
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.25;
}
.relato p {
  margin: 0 0 0.6em;
}
/* En escritorio, con movimiento: una frase cada vez, al ritmo del reloj. */
.relato--escenas {
  min-height: 7.5em;
}
.relato--escenas p + p {
  position: absolute;
  inset: 0 0 auto 0;
}
.relato em {
  font-style: normal;
  color: var(--fluor);
}
.chat {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 420px;
  margin-left: auto;
}
.chat-cabecera {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.chat-cabecera .avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #31406f;
  font-family: var(--titular);
  font-weight: 800;
}
.chat-cabecera b {
  display: block;
}
.chat-cabecera small {
  color: #a9aec4;
  font-size: 14px;
}
.mensaje {
  max-width: 82%;
  padding: 9px 13px 7px;
  border-radius: 16px 16px 16px 5px;
  background: #26305a;
  font-size: 16px;
  line-height: 1.35;
}
.mensaje small {
  display: block;
  margin-bottom: 2px;
  font-size: 12.5px;
  font-weight: 700;
  color: #9db0ff;
}
.mensaje time {
  display: block;
  margin-top: 2px;
  text-align: right;
  font-size: 11px;
  color: #a9aec4;
}
.mensaje--yo {
  align-self: flex-end;
  border-radius: 16px 16px 5px 16px;
  background: #3d4f99;
}
.mensaje--pdf {
  display: flex;
  align-items: center;
  gap: 10px;
}
.mensaje--pdf .pdf {
  flex: none;
  width: 34px;
  height: 42px;
  border-radius: 5px;
  display: grid;
  place-items: center;
  background: #e5484d;
  font-size: 10px;
  font-weight: 700;
  color: white;
}
.mensaje--alarma {
  background: #5a2340;
}

/* Cómo va */
.como .envoltura {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 80px;
}
.pasos {
  list-style: none;
  margin: 50px 0 0;
  padding: 0;
}
.paso {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 4px 18px;
  min-height: 62vh;
  align-content: center;
  opacity: 0.28;
  transition: opacity 0.35s ease;
}
.paso.activo {
  opacity: 1;
}
.paso .numero {
  grid-row: span 2;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border: 2px solid var(--tinta);
  border-radius: 50%;
  background: var(--tarjeta);
  font-family: var(--titular);
  font-weight: 800;
  font-size: 26px;
  box-shadow: 3px 3px 0 var(--tinta);
}
.paso.activo .numero {
  background: var(--fluor);
}
.paso h3 {
  margin: 4px 0 6px;
  font-family: var(--titular);
  font-weight: 800;
  font-size: clamp(30px, 3.4vw, 44px);
  line-height: 1;
  letter-spacing: -0.03em;
}
.paso p {
  max-width: 40ch;
  margin: 0;
  font-size: 19px;
  color: var(--tinta-suave);
}
.paso p strong {
  color: var(--tinta);
}
.como-movil {
  position: sticky;
  top: calc(50vh - 314px);
  height: 628px;
  align-self: start;
  margin-top: 50px;
}
.como-movil .movil {
  position: relative;
}
.vista {
  position: absolute;
  inset: 0;
  padding: 58px 16px 16px;
  opacity: 0;
  visibility: hidden;
}
.vista.activa {
  opacity: 1;
  visibility: visible;
}
.escaner {
  position: relative;
  height: 330px;
  margin-top: 6px;
  border-radius: 16px;
  background: #2a2f3a;
  overflow: hidden;
}
.escaner .hoja {
  position: absolute;
  left: 34px;
  right: 30px;
  top: 34px;
  bottom: 40px;
  padding: 16px 14px;
  background: #fffdf8;
  transform: rotate(-3deg) skewX(-2deg);
  font-family: Georgia, serif;
  font-size: 8.5px;
  line-height: 1.6;
  color: #444;
}
.escaner .hoja i {
  display: block;
  height: 5px;
  margin-bottom: 7px;
  border-radius: 3px;
  background: #d9d6cc;
}
.escaner .marco {
  position: absolute;
  left: 26px;
  right: 22px;
  top: 26px;
  bottom: 32px;
  border: 2.5px solid var(--fluor);
  border-radius: 6px;
  background: rgba(255, 228, 92, 0.12);
}
.escaner .rayo {
  position: absolute;
  left: 22px;
  right: 18px;
  top: 30px;
  height: 3px;
  border-radius: 3px;
  background: var(--fluor);
  box-shadow: 0 0 16px 4px rgba(255, 228, 92, 0.6);
}
.disparador {
  width: 62px;
  height: 62px;
  margin: 18px auto 0;
  border-radius: 50%;
  border: 4px solid var(--tinta);
  background: var(--tarjeta);
  box-shadow: inset 0 0 0 4px var(--papel);
}
.dia-grande {
  margin: 4px 0 14px;
  font-family: var(--titular);
  font-weight: 800;
  font-size: 30px;
  line-height: 1;
  letter-spacing: -0.035em;
}
.dia-grande small {
  display: block;
  margin-bottom: 6px;
  font-family: var(--texto);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--tinta-suave);
}
.comedor {
  margin: 0 0 10px;
  padding: 9px 12px;
  border-radius: 12px;
  background: var(--acento-suave);
  font-size: 12.5px;
  line-height: 1.35;
}
.comedor b {
  font-family: var(--titular);
  font-weight: 600;
}
.mochila {
  margin-top: 14px;
  padding: 14px;
  border: 1.5px solid var(--tinta);
  border-radius: 16px;
  background: var(--tinta);
  color: var(--papel);
}
.mochila b {
  display: block;
  margin-bottom: 8px;
  font-family: var(--titular);
  font-size: 15px;
}
.mochila ul {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 13px;
}
.mochila li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 0;
}
.mochila li::before {
  content: "";
  width: 14px;
  height: 14px;
  border: 1.5px solid var(--fluor);
  border-radius: 4px;
}

/* Lo que se te escapaba */
.cosas {
  overflow: hidden;
}
.cosas .cabeza {
  max-width: 760px;
  margin-bottom: 60px;
}
.tablon {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 26px;
}
.tarjeta-cosa {
  position: relative;
  grid-column: span 4;
  padding: 26px 24px 24px;
  background: var(--tarjeta);
  border: 2px solid var(--tinta);
  border-radius: 6px;
  box-shadow: 5px 6px 0 var(--tinta);
  transform: rotate(var(--giro, 0deg));
}
.tarjeta-cosa:nth-child(1) {
  --giro: -1.6deg;
}
.tarjeta-cosa:nth-child(2) {
  --giro: 1.2deg;
  margin-top: 34px;
}
.tarjeta-cosa:nth-child(3) {
  --giro: -0.8deg;
}
.tarjeta-cosa:nth-child(4) {
  --giro: 0.9deg;
}
.tarjeta-cosa:nth-child(5) {
  --giro: -1.4deg;
  margin-top: 20px;
}
.tarjeta-cosa:nth-child(6) {
  --giro: 1.6deg;
}
.tarjeta-cosa:nth-child(7) {
  --giro: -1deg;
}
.tarjeta-cosa:nth-child(8) {
  --giro: 1.3deg;
  margin-top: 26px;
}
.tarjeta-cosa:nth-child(9) {
  --giro: -1.2deg;
}
.tarjeta-cosa .celo {
  position: absolute;
  top: -13px;
  left: 50%;
  width: 92px;
  height: 26px;
  margin-left: -46px;
  background: rgba(255, 228, 92, 0.75);
  transform: rotate(-3deg);
}
.tarjeta-cosa h3 {
  margin: 0 0 8px;
  font-family: var(--titular);
  font-weight: 800;
  font-size: 27px;
  line-height: 1.02;
  letter-spacing: -0.025em;
}
.tarjeta-cosa p {
  margin: 0;
  font-size: 17px;
  color: var(--tinta-suave);
}
.tarjeta-cosa .nota-mano {
  margin-top: 14px;
  font-size: 20px;
}
.etiqueta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 14px;
  padding: 3px 9px;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 700;
}
.etiqueta--disfraz {
  background: var(--disfraz-suave);
  color: var(--disfraz);
}
.etiqueta--examen {
  background: var(--examen-suave);
  color: var(--examen);
}
.etiqueta--pago {
  background: var(--pago-suave);
  color: var(--pago);
}
.etiqueta--acento {
  background: var(--acento-suave);
  color: var(--acento);
}
.etiqueta--fluor {
  background: var(--fluor-suave);
  color: #7a5f00;
}
.plan {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  margin-top: 16px;
  font-size: 12.5px;
  text-align: center;
}
.plan span {
  padding: 8px 2px;
  border: 1.5px solid var(--linea);
  border-radius: 9px;
  background: var(--papel);
}
.plan span b {
  display: block;
  font-family: var(--titular);
  font-size: 14px;
}
.plan span:last-child {
  border-color: var(--examen);
  background: var(--examen-suave);
  color: var(--examen);
}

/* Precios */
.precios .cabeza {
  max-width: 760px;
  margin-bottom: 56px;
}
.tarifas {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 30px;
  max-width: 900px;
}
.tarifa {
  position: relative;
  padding: 28px 26px 26px;
  background: var(--tarjeta);
  border: 2px solid var(--tinta);
  border-radius: 6px;
  box-shadow: 5px 6px 0 var(--tinta);
  transform: rotate(-0.8deg);
}
.tarifa--familia {
  background: var(--fluor-suave);
  transform: rotate(0.9deg);
}
.tarifa .celo {
  position: absolute;
  top: -13px;
  left: 50%;
  width: 92px;
  height: 26px;
  margin-left: -46px;
  background: rgba(255, 228, 92, 0.75);
  transform: rotate(-3deg);
}
.tarifa h3 {
  margin: 0;
  font-family: var(--titular);
  font-weight: 800;
  font-size: 44px;
  line-height: 1;
  letter-spacing: -0.03em;
}
.tarifa h3 small {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--tinta-suave);
}
.tarifa .sub-precio {
  margin: 8px 0 0;
  font-size: 16px;
  color: var(--tinta-suave);
}
.tarifa .sub-precio b {
  color: var(--tinta);
}
/* Al mes / Al año: sin JS se ve el año (el botón marcado en el HTML) */
.tarifas[data-periodo="anio"] .solo-mes,
.tarifas[data-periodo="mes"] .solo-anio {
  display: none;
}
.periodo {
  display: inline-flex;
  gap: 4px;
  margin: 0 0 34px;
  padding: 4px;
  background: var(--tarjeta);
  border: 2px solid var(--tinta);
  border-radius: 999px;
  box-shadow: var(--sombra-solida);
}
.periodo button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 20px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--tinta);
  font: 700 16px var(--texto);
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease;
}
.periodo button[aria-pressed="true"] {
  background: var(--tinta);
  color: var(--tarjeta);
}
.periodo button:focus-visible {
  outline: 3px solid var(--acento);
  outline-offset: 2px;
}
.periodo .ahorro {
  padding: 2px 7px;
  border-radius: 6px;
  background: var(--fluor);
  color: var(--tinta);
  font-size: 13px;
}
.que-es-lectura {
  max-width: 900px;
  margin: 36px 0 0;
  font-size: 17px;
}
.tarifa ul {
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 9px;
  font-size: 17px;
}
.tarifa li {
  position: relative;
  padding-left: 26px;
}
.tarifa li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.45em;
  width: 12px;
  height: 7px;
  border-left: 2.5px solid var(--tinta);
  border-bottom: 2.5px solid var(--tinta);
  transform: rotate(-45deg);
}
.tarifa .nota-mano {
  margin: 16px 0 0;
  font-size: 22px;
}
.letra-pequena {
  max-width: 900px;
  margin: 40px 0 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--tinta-suave);
}
@media (max-width: 720px) {
  .tarifas {
    grid-template-columns: 1fr;
  }
  .tarifa,
  .tarifa--familia {
    transform: none;
  }
}

/* Promesa */
.promesa {
  text-align: center;
}
.promesa .envoltura {
  display: grid;
  justify-items: center;
}
.sello {
  width: 180px;
  height: 180px;
  margin-bottom: 30px;
}
.sello text {
  font-family: var(--titular);
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 2px;
  fill: var(--tinta);
}

.promesa .titulo-seccion {
  max-width: 14ch;
}
.promesa .texto-seccion {
  margin-inline: auto;
}
.garantias {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin: 46px 0 0;
  padding: 0;
  list-style: none;
}
.garantias li {
  padding: 10px 16px;
  border: 1.5px solid var(--tinta);
  border-radius: 999px;
  background: var(--tarjeta);
  font-weight: 700;
  font-size: 16px;
}

/* Preguntas */
.preguntas .envoltura {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 70px;
}
.preguntas details {
  border-bottom: 2px solid var(--tinta);
}
.preguntas details:first-child {
  border-top: 2px solid var(--tinta);
}
.preguntas summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 22px 0;
  cursor: pointer;
  list-style: none;
  font-family: var(--titular);
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.02em;
}
.preguntas summary::-webkit-details-marker {
  display: none;
}
.preguntas summary::after {
  content: "+";
  flex: none;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 2px solid var(--tinta);
  border-radius: 50%;
  font-size: 22px;
  line-height: 1;
  transition: transform 0.25s ease, background 0.25s ease;
}
.preguntas details[open] summary::after {
  transform: rotate(45deg);
  background: var(--fluor);
}
.preguntas details p {
  max-width: 58ch;
  margin: -6px 0 24px;
  color: var(--tinta-suave);
}

/* Final */
.final {
  padding: 150px 0 120px;
  text-align: center;
}
.final .titulo-seccion {
  font-size: clamp(48px, 8vw, 120px);
}
.final .acciones {
  justify-content: center;
  margin-top: 36px;
}

.pie {
  padding: 34px 0 44px;
  border-top: 2px solid var(--tinta);
  background: var(--papel);
  font-size: 15px;
}
.pie .envoltura {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 30px;
}
.pie nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  font-weight: 700;
}
.pie nav a {
  text-decoration: none;
}
.pie nav a:hover {
  text-decoration: underline;
  text-decoration-color: var(--fluor);
  text-decoration-thickness: 5px;
  text-underline-offset: -1px;
}
.pie small {
  color: var(--tinta-suave);
  font-size: 14px;
}

/* ───────── Páginas legales ───────── */

.documento {
  padding: 60px 0 110px;
}
.documento .hoja-legal {
  max-width: 780px;
  margin-inline: auto;
  padding: clamp(28px, 5vw, 64px);
  background: var(--tarjeta);
  border: 2px solid var(--tinta);
  border-radius: 8px;
  box-shadow: 6px 7px 0 var(--tinta);
}
.documento h1 {
  margin: 0 0 6px;
  font-family: var(--titular);
  font-weight: 800;
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1;
  letter-spacing: -0.035em;
}
.documento .fecha {
  margin: 0 0 34px;
  color: var(--tinta-suave);
}
.documento h2 {
  margin: 38px 0 10px;
  font-family: var(--titular);
  font-weight: 800;
  font-size: 24px;
  letter-spacing: -0.02em;
}
.documento p,
.documento li {
  color: #2c3352;
}
.documento ul {
  padding-left: 22px;
}
.documento li {
  margin-bottom: 6px;
}
.documento .resumen {
  margin: 0 0 30px;
  padding: 18px 20px;
  border-radius: 10px;
  background: var(--fluor-suave);
  border: 1.5px solid #f0d96a;
}
.documento .resumen p {
  margin: 0;
}

/* ───────── Pantallas medianas y móviles ───────── */

@media (max-width: 1080px) {
  .portada .envoltura,
  .noche .envoltura,
  .como .envoltura,
  .preguntas .envoltura {
    grid-template-columns: 1fr;
  }
  .escena {
    max-width: 640px;
    width: 100%;
    margin-inline: auto;
  }
  .como-movil {
    display: none;
  }
  .paso {
    min-height: 0;
    padding: 26px 0;
    opacity: 1;
  }
  .noche .envoltura {
    min-height: 0;
    gap: 50px;
  }
  .chat {
    margin-left: 0;
  }
  .tarjeta-cosa,
  .tarjeta-cosa:nth-child(n) {
    grid-column: span 6;
    margin-top: 0;
  }
}

@media (max-width: 720px) {
  body {
    font-size: 17px;
  }
  .navegacion a:not(.boton) {
    display: none;
  }
  .portada {
    padding: 20px 0 70px;
  }
  .escena {
    height: 560px;
  }
  .circular {
    left: 0;
    width: 270px;
    padding: 20px 18px 24px;
    font-size: 11px;
    top: 0;
  }
  .movil {
    width: 250px;
    height: 516px;
    border-radius: 42px;
    top: 50px;
  }
  .pantalla {
    border-radius: 33px;
  }
  .post-it {
    display: none;
  }
  .seccion {
    padding: 90px 0;
  }
  .tarjeta-cosa,
  .tarjeta-cosa:nth-child(n) {
    grid-column: span 12;
  }
  .reloj {
    font-size: 26vw;
  }
}

/* ───────── Funciones (funciones.html) ───────── */

.funciones {
  padding: 50px 0 40px;
}
.funciones-portada {
  max-width: 820px;
  margin-bottom: 70px;
}
.indice-funciones {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 34px;
}
.indice-funciones a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 2px solid var(--tinta);
  border-radius: 999px;
  background: var(--tarjeta);
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  box-shadow: 2px 2px 0 var(--tinta);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.indice-funciones a:hover {
  background: var(--fluor-suave);
  transform: translate(-1px, -1px);
  box-shadow: 3px 3px 0 var(--tinta);
}
.indice-funciones svg {
  width: 18px;
  height: 18px;
}
.grupo-funciones {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: 40px;
  padding: 54px 0;
  border-top: 2px dashed var(--linea);
  scroll-margin-top: 80px;
}
.grupo-cabeza {
  position: sticky;
  top: 96px;
  align-self: start;
}
.grupo-icono {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin-bottom: 16px;
  border: 2px solid var(--tinta);
  border-radius: 14px;
  background: var(--tarjeta);
  box-shadow: 3px 3px 0 var(--tinta);
}
.grupo-icono svg {
  width: 28px;
  height: 28px;
}
.grupo-icono--fluor { background: var(--fluor); }
.grupo-icono--acento { background: var(--acento-suave); color: var(--acento); }
.grupo-icono--examen { background: var(--examen-suave); color: var(--examen); }
.grupo-icono--pago { background: var(--pago-suave); color: var(--pago); }
.grupo-cabeza .etiqueta {
  display: flex;
  width: fit-content;
}
.grupo-cabeza h2 {
  margin: 0 0 10px;
  font-family: var(--titular);
  font-weight: 800;
  font-size: clamp(30px, 3.4vw, 42px);
  line-height: 1;
  letter-spacing: -0.03em;
}
.grupo-cabeza p {
  margin: 0;
  color: var(--tinta-suave);
}
.lista-funciones {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.funcion {
  position: relative;
  padding: 18px 20px 18px 50px;
  background: var(--tarjeta);
  border: 1.5px solid var(--linea);
  border-radius: var(--radio);
}
.funcion::before {
  content: "";
  position: absolute;
  top: 21px;
  left: 18px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--pago) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4L18 8' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.funcion h3 {
  margin: 0 0 4px;
  font-family: var(--titular);
  font-weight: 800;
  font-size: 19px;
  line-height: 1.15;
  letter-spacing: -0.015em;
}
.funcion p {
  margin: 0;
  font-size: 16px;
  line-height: 1.45;
  color: var(--tinta-suave);
}
.final-funciones {
  padding: 80px 0 40px;
  border-top: 2px dashed var(--linea);
  text-align: center;
}
.final-funciones .texto-seccion {
  margin-inline: auto;
}
.final-funciones .acciones {
  justify-content: center;
  margin-top: 30px;
}
.ver-todo {
  margin-top: 70px;
  text-align: center;
}
@media (max-width: 1080px) {
  .grupo-funciones {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .grupo-cabeza {
    position: static;
  }
}
@media (max-width: 720px) {
  .lista-funciones {
    grid-template-columns: 1fr;
  }
  .grupo-funciones {
    padding: 40px 0;
  }
}

/* ───────── De la clase (clase.html) ───────── */

.clase {
  padding: 40px 0 60px;
}
.clase .envoltura {
  max-width: 680px;
}
.clase-estado {
  padding: 60px 0;
  font-size: 18px;
  color: var(--tinta-suave);
}
.lista-clase {
  display: grid;
  gap: 14px;
  margin: 32px 0 40px;
  padding: 0;
  list-style: none;
}
.cosa-clase {
  padding: 18px 20px;
  background: var(--tarjeta);
  border: 2px solid var(--tinta);
  border-radius: var(--radio);
  box-shadow: 3px 4px 0 var(--tinta);
}
.cosa-clase .etiqueta {
  margin-bottom: 8px;
}
.cosa-clase h3 {
  margin: 0 0 4px;
  font-family: var(--titular);
  font-weight: 800;
  font-size: 22px;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.cosa-clase p {
  margin: 0;
  font-size: 16px;
  color: var(--tinta-suave);
}
.cosa-clase .llevar {
  margin-top: 4px;
  color: var(--tinta);
}
.anadir-calendario {
  margin-top: 12px;
  padding: 8px 12px;
  border: 1.5px solid var(--acento);
  border-radius: 10px;
  background: var(--acento-suave);
  color: var(--acento);
  font-family: var(--texto);
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
}
.clase-app {
  padding: 26px 24px;
  border-radius: 22px;
  background: var(--tinta);
  color: var(--papel);
}
.clase-app h2 {
  margin: 0 0 8px;
  font-family: var(--titular);
  font-weight: 800;
  font-size: 28px;
  line-height: 1.05;
  letter-spacing: -0.03em;
}
.clase-app p {
  margin: 0 0 20px;
  color: #c9cee0;
}
.clase-app .boton {
  border-color: var(--papel);
  box-shadow: 3px 3px 0 var(--papel);
}
.clase-abrir {
  color: var(--fluor);
  font-weight: 700;
  font-size: 16px;
}
.clase-letra {
  margin-top: 26px;
  font-size: 14px;
  color: var(--tinta-suave);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reloj .dos-puntos {
    animation: none;
  }
}
