/* ==========================================================================
   Portada Abiel · «Cuaderno de cuentas»
   Hoja cuadriculada, tapas de cuaderno en cobalto, tinta de lapicero.
   La usa solo index.html (las páginas de rubro se eliminaron el 2026-10-17).
   ========================================================================== */

/* ---------- Respaldo de fuentes con medidas igualadas (CLS) ----------
   Mientras Archivo, Schibsted Grotesk y Kalam llegan de Google Fonts, el texto se
   pinta con Arial ajustada al ancho y a la altura de cada una. Así, al cambiar a la
   fuente real, los renglones no se parten distinto y nada salta. Las cifras salen
   de medir el texto de la portada y los rubros con cada fuente frente a Arial.
   Archivo lleva una cara por cada ancho (font-stretch) que usan los titulares. */
@font-face { font-family: "Schibsted Fallback"; src: local("Arial"), local("ArialMT"), local("Liberation Sans"), local("Arimo"); font-weight: 100 500; size-adjust: 103.5%; ascent-override: 94.7%; descent-override: 25.1%; line-gap-override: 0%; }
@font-face { font-family: "Schibsted Fallback"; src: local("Arial Bold"), local("Arial-BoldMT"), local("Liberation Sans Bold"), local("Arimo Bold"); font-weight: 600 900; size-adjust: 100.3%; ascent-override: 97.7%; descent-override: 25.9%; line-gap-override: 0%; }
@font-face { font-family: "Kalam Fallback"; src: local("Arial"), local("ArialMT"), local("Liberation Sans"), local("Arimo"); font-weight: 400; size-adjust: 94.7%; ascent-override: 111.9%; descent-override: 56.0%; line-gap-override: 0%; }
@font-face { font-family: "Kalam Fallback"; src: local("Arial Bold"), local("Arial-BoldMT"), local("Liberation Sans Bold"), local("Arimo Bold"); font-weight: 700; size-adjust: 92.8%; ascent-override: 114.2%; descent-override: 57.1%; line-gap-override: 0%; }
@font-face { font-family: "Archivo Fallback"; src: local("Arial Bold"), local("Arial-BoldMT"), local("Liberation Sans Bold"), local("Arimo Bold"); font-weight: 700 800; font-stretch: 108%; size-adjust: 111.8%; ascent-override: 78.7%; descent-override: 18.8%; line-gap-override: 0%; }
@font-face { font-family: "Archivo Fallback"; src: local("Arial Bold"), local("Arial-BoldMT"), local("Liberation Sans Bold"), local("Arimo Bold"); font-weight: 700 800; font-stretch: 110%; size-adjust: 113.3%; ascent-override: 77.7%; descent-override: 18.5%; line-gap-override: 0%; }
@font-face { font-family: "Archivo Fallback"; src: local("Arial Bold"), local("Arial-BoldMT"), local("Liberation Sans Bold"), local("Arimo Bold"); font-weight: 700 800; font-stretch: 112%; size-adjust: 115.0%; ascent-override: 76.5%; descent-override: 18.3%; line-gap-override: 0%; }
@font-face { font-family: "Archivo Fallback"; src: local("Arial Bold"), local("Arial-BoldMT"), local("Liberation Sans Bold"), local("Arimo Bold"); font-weight: 700 800; font-stretch: 116%; size-adjust: 120.3%; ascent-override: 73.2%; descent-override: 17.5%; line-gap-override: 0%; }
@font-face { font-family: "Archivo Fallback"; src: local("Arial Bold"), local("Arial-BoldMT"), local("Liberation Sans Bold"), local("Arimo Bold"); font-weight: 700 800; font-stretch: 120%; size-adjust: 122.8%; ascent-override: 71.7%; descent-override: 17.1%; line-gap-override: 0%; }

:root {
  /* Hoja */
  --hoja: #FAFCFF;
  --papel: #FFFFFF;
  --cuadro: #D5E5F5;
  --renglon: #B9D0E8;
  --margen: #E0605A;

  /* Tinta en limpio */
  --tinta: #111318;
  --tinta-2: #394150;
  --tinta-3: #586173;

  /* Lapiceros y resaltador */
  --lapicero: #1F3FBF;
  --rojo: #D9312B;
  --resaltador: #FFE14D;

  /* Tapa del cuaderno */
  --cobalto: #1D3FAE;
  --cobalto-osc: #16318C;
  --cobalto-hondo: #10266E;
  --sobre-tapa: #DDE5FF;

  /* Tipos */
  --f-titular: "Archivo", "Archivo Fallback", "Schibsted Grotesk", sans-serif;
  --f-texto: "Schibsted Grotesk", "Schibsted Fallback", system-ui, sans-serif;
  --f-mano: "Kalam", "Kalam Fallback", "Schibsted Grotesk", cursive;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --celda: 24px;
  --nav-h: 64px;

  /* Margen rojo y columnas: en móvil, angosto */
  --m: 20px;
  --izq: 40px;
  --der: 16px;
}

@media (min-width: 768px) {
  :root {
    --m: max(28px, calc(50% - 656px));
    --izq: max(64px, calc(50% - 600px));
    --der: max(32px, calc(50% - 600px));
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--nav-h) + 12px);
  caret-color: var(--lapicero);
  scrollbar-color: #9FB4DE var(--hoja);
  color-scheme: light;
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  position: relative;
  margin: 0;
  overflow-x: clip;
  font-family: var(--f-texto);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--tinta);
  background-color: var(--hoja);
  background-image:
    linear-gradient(var(--cuadro) 1px, transparent 1px),
    linear-gradient(90deg, var(--cuadro) 1px, transparent 1px);
  background-size: var(--celda) var(--celda);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--lapicero); color: #fff; }

::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: var(--hoja); }
::-webkit-scrollbar-thumb { background: #9FB4DE; border: 3px solid var(--hoja); border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: var(--cobalto); }

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

a { color: var(--lapicero); text-underline-offset: 0.2em; text-decoration-thickness: 1.5px; }

h1, h2, h3 { margin: 0; }

p { margin: 0; }

:focus-visible {
  outline: 3px solid var(--lapicero);
  outline-offset: 3px;
  border-radius: 6px;
}

.tapa :focus-visible,
.pie :focus-visible { outline-color: #fff; }

.saltar {
  position: absolute;
  left: 12px;
  top: -64px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--cobalto);
  color: #fff;
  font-weight: 700;
  border-radius: 8px;
  text-decoration: none;
}
.saltar:focus { top: 12px; }

.solo-lector {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.contenedor {
  padding-left: var(--izq);
  padding-right: var(--der);
}

/* El margen rojo de la hoja: una sola línea que corre por toda la página */
main { position: relative; display: block; overflow-x: clip; }
body::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--m);
  width: 2px;
  background: var(--margen);
  opacity: 0.8;
  pointer-events: none;
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 22px;
  border: 0;
  border-radius: 10px;
  font-family: var(--f-texto);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease), transform 0.15s var(--ease), box-shadow 0.2s var(--ease);
}
.btn i { font-size: 1.3em; flex: none; }
.btn:active { transform: translateY(1px); }

.btn--primario {
  background: var(--cobalto);
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 6px 14px -8px rgba(29, 63, 174, 0.75);
}
.btn--primario:hover { background: var(--cobalto-osc); }

.btn--etiqueta {
  background: var(--papel);
  color: var(--cobalto-hondo);
  box-shadow: 0 10px 22px -12px rgba(0, 0, 30, 0.6);
}
.btn--etiqueta:hover { background: #EAF0FF; }

.btn--grande { min-height: 58px; padding: 16px 28px; font-size: 1.0625rem; }
.btn--chico { min-height: 42px; padding: 9px 16px; font-size: 0.95rem; }

.btn.is-disabled {
  background: var(--papel);
  color: var(--tinta-3);
  box-shadow: inset 0 0 0 1.5px var(--renglon);
  cursor: default;
}

/* Enlace escrito a mano (acción secundaria) */
.enlace-mano {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 48px;
  padding-inline: 4px;
  font-family: var(--f-mano);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--lapicero);
  text-decoration: none;
}
.enlace-mano span {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.22em;
}
.enlace-mano:hover span { text-decoration-style: wavy; }
.enlace-mano i { font-size: 1.1em; }

/* ---------- Encabezado: renglón de la hoja ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: transparent;
  border-bottom: 1.5px solid var(--renglon);
  transition: background-color 0.25s var(--ease), box-shadow 0.3s var(--ease);
}
.nav.is-scrolled { background: var(--hoja); box-shadow: 0 10px 22px -16px rgba(17, 30, 80, 0.4); }

.nav__fecha {
  flex: none;
  padding-top: 4px;
  font-family: var(--f-mano);
  font-size: 1.1rem;
  line-height: 1;
  color: var(--lapicero);
  white-space: nowrap;
}
@media (max-width: 359px) {
  .nav__fecha { display: none; }
}

.nav__fila {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: var(--nav-h);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--tinta);
  text-decoration: none;
  border-radius: 8px;
}
/* Logotipo «La casilla marcada» (assets/logo.svg y logo-claro.svg, proporción 3,045:1) */
.logo__img { display: block; width: auto; height: 32px; flex: none; }
.logo--claro { color: #fff; }

.nav__enlaces { display: none; gap: 28px; margin-left: auto; }
.nav__enlaces a {
  padding-block: 8px;
  color: var(--tinta);
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.3em;
  text-decoration-color: transparent;
  transition: text-decoration-color 0.25s var(--ease), color 0.2s;
}
.nav__enlaces a:hover { color: var(--lapicero); text-decoration-color: var(--lapicero); }

.nav__cta { display: none; }

.nav__menu {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-left: auto;
  border: 1.5px solid var(--renglon);
  border-radius: 10px;
  background: var(--papel);
  color: var(--tinta);
  font-size: 1.5rem;
  cursor: pointer;
}

.nav__movil {
  display: grid;
  gap: 2px;
  padding: 4px var(--der) 20px var(--izq);
  border-top: 1px solid var(--cuadro);
  background: var(--hoja);
}
.nav__movil[hidden] { display: none; }
.nav__movil a:not(.btn) {
  padding: 12px 0;
  border-bottom: 1px solid var(--cuadro);
  color: var(--tinta);
  font-weight: 600;
  font-size: 1.125rem;
  text-decoration: none;
}
.nav__movil .btn { margin-top: 14px; }

@media (min-width: 768px) {
  .nav__cta { display: inline-flex; margin-left: auto; }
  .nav__menu { margin-left: 0; }
}

@media (min-width: 1200px) {
  .nav__enlaces { display: flex; }
  .nav__cta { margin-left: 8px; }
  .nav__menu { display: none; }
  .nav__movil { display: none !important; }
}

/* ---------- Primera pantalla ---------- */
.hero { padding: 28px 0 44px; }

.hero__grid { display: grid; gap: 40px; }

.hero__titulo {
  font-family: var(--f-titular);
  font-weight: 800;
  font-stretch: 110%;
  font-size: clamp(2.45rem, 1rem + 4.6vw, 4.75rem);
  line-height: 1.01;
  letter-spacing: -0.028em;
  text-wrap: balance;
}
/* Acento: «lo que se repite» subrayado con lapicero, también si se parte en dos renglones */
.hero__acento {
  padding-bottom: 0.04em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 12' preserveAspectRatio='none'%3E%3Cpath d='M2 7.5 C 40 4.5, 90 9.5, 140 6 S 188 5, 198 6.5' fill='none' stroke='%231F3FBF' stroke-width='3.2' stroke-linecap='round' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E") no-repeat 0 100% / 100% 0.22em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.hero__sub {
  max-width: 36em;
  margin-top: 22px;
  color: var(--tinta-2);
  font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.2rem);
  line-height: 1.6;
}

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 22px;
  margin-top: 28px;
}

@media (max-width: 479px) {
  .hero__ctas .btn { width: 100%; padding-inline: 18px; }
  /* En el celular los tres datos van pegados al botón; «Mira un ejemplo» baja después */
  .hero__copy { display: flex; flex-direction: column; align-items: flex-start; }
  .hero__ctas { display: contents; }
  .hero__ctas .btn { order: 3; margin-top: 26px; }
  .hero__datos { order: 4; }
  .hero__ctas .enlace-mano { order: 5; margin-top: 4px; }
  .hero__lugar { order: 6; margin-top: 4px; }
}

/* Tres datos bajo el botón: anotados a mano, con su visto de lapicero */
.hero__datos {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 20px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
  font-family: var(--f-mano);
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--lapicero);
}
.hero__datos li { display: inline-flex; align-items: center; gap: 7px; }
/* En pantalla ancha se anota en un solo renglón, separado por puntos */
@media (min-width: 1024px) {
  .hero__datos { gap: 0 8px; font-size: 0.98rem; }
  .hero__datos li { gap: 8px; white-space: nowrap; }
  .hero__datos li:first-child::before { width: 15px; height: 14px; }
  .hero__datos li + li::before { content: "·"; width: auto; height: auto; background: none; }
}
.hero__datos li::before {
  content: "";
  flex: none;
  width: 17px;
  height: 15px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 36 34'%3E%3Cpath d='M5 18.5 C 8 20.5, 11 23.5, 13.5 28 C 18 18, 24 10.5, 33 3.5' fill='none' stroke='%231F3FBF' stroke-width='4.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / contain;
}

.hero__lugar {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  color: var(--tinta-3);
  font-size: 0.95rem;
  font-weight: 600;
}
.hero__lugar i { font-size: 1.15rem; color: var(--lapicero); }

@media (min-width: 1024px) {
  .hero { padding: 48px 0 56px; }
  .hero__grid {
    grid-template-columns: minmax(0, 1.16fr) minmax(0, 0.84fr);
    gap: clamp(40px, 5vw, 88px);
    align-items: center;
  }
  .hero__titulo { font-stretch: 116%; }
}

/* La demo: lista manuscrita que se pasa en limpio */
.demo { position: relative; margin: 0; max-width: 580px; }

.demo__cabeza {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 16px;
  margin-bottom: 10px;
}
.demo__titulo {
  font-family: var(--f-mano);
  font-size: clamp(1.45rem, 1.15rem + 1vw, 1.9rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--lapicero);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.2em;
}
.demo__otra {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  margin-top: 6px;
  padding: 0 4px;
  border: 0;
  background: transparent;
  color: var(--lapicero);
  font-family: var(--f-mano);
  font-size: 1.15rem;
  font-weight: 700;
  cursor: pointer;
}
.demo__otra[hidden] { display: none; }
/* Con JS el botón aparece al montar la demo: su lugar queda reservado desde el inicio
   para que la demo no crezca ni se mueva (CLS). La clase «js» la pone el <head>. */
.js .demo__otra[hidden] { display: inline-flex; visibility: hidden; }
.demo__otra span { text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 0.22em; }
.demo__otra:hover span { text-decoration-style: wavy; }

.demo__lista {
  display: grid;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tarea {
  display: grid;
  gap: 2px;
  padding: 8px 0 12px;
  border-bottom: 1px solid var(--renglon);
}

.tarea__mano {
  position: relative;
  justify-self: start;
  font-family: var(--f-mano);
  font-size: clamp(1.15rem, 1rem + 0.95vw, 1.55rem);
  line-height: 1.35;
  color: var(--lapicero);
  text-decoration: none;
  white-space: nowrap;
}

.tarea__tachon {
  position: absolute;
  left: -3%;
  top: calc(50% - 9px);
  width: 106%;
  height: 18px;
  overflow: visible;
  pointer-events: none;
}
.tarea__tachon path {
  fill: none;
  stroke: var(--rojo);
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-dasharray: 1 2;
  stroke-dashoffset: 0;
}

.tarea__limpio {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  text-wrap: pretty;
  font-size: clamp(0.98rem, 0.92rem + 0.25vw, 1.06rem);
  font-weight: 600;
  line-height: 1.5;
  color: var(--tinta);
}
.tarea__limpio > i { flex: none; margin-top: 3px; font-size: 1.1rem; color: var(--tinta-3); }

.tarea__hora {
  white-space: nowrap;
  color: var(--tinta-3);
  font-weight: 500;
}
/* En el celular la hora va antes del texto, como en un registro */
@media (max-width: 559px) {
  .tarea__linea { display: flex; align-items: baseline; gap: 8px; }
  .tarea__hora { order: -1; min-width: 2.4em; }
  .tarea__sep { display: none; }
}

.demo__total {
  margin-top: 18px;
  font-family: var(--f-mano);
  font-size: clamp(1.45rem, 1.15rem + 1.2vw, 2.05rem);
  font-weight: 700;
  line-height: 1.25;
  color: var(--lapicero);
}
.demo__ahorro {
  white-space: nowrap;
  text-decoration: underline double;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.18em;
  font-variant-numeric: tabular-nums;
}

.demo__nota {
  margin-top: 8px;
  font-size: 0.8125rem;
  color: var(--tinta-3);
}

/* Resaltador amarillo: solo para lo que se hizo solo */
.resalte {
  padding: 0 0.18em;
  margin: 0 -0.08em;
  border-radius: 0.25em 0.6em 0.3em 0.5em / 0.5em 0.3em 0.6em 0.35em;
  background-image: linear-gradient(100deg, rgba(255, 225, 77, 0.45) 0, var(--resaltador) 0.35em, var(--resaltador) calc(100% - 0.4em), rgba(255, 225, 77, 0.6) 100%);
  background-repeat: no-repeat;
  background-position: 0 60%;
  background-size: 100% 84%;
}

/* ---------- Se conecta con lo que ya usas ---------- */
.conecta { border-block: 1.5px solid var(--renglon); }
.conecta__fila {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 28px;
  padding-block: 18px;
}
.conecta__titulo {
  font-family: var(--f-mano);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--lapicero);
}
.conecta__lista {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.conecta__lista li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--tinta-2);
  font-size: 0.95rem;
  font-weight: 600;
}
.conecta__lista i { font-size: 1.2rem; color: var(--tinta); }

/* ---------- Secciones sobre la hoja ---------- */
.seccion {
  position: relative;
  padding-top: clamp(56px, 6vw, 80px);
  padding-bottom: clamp(40px, 4.5vw, 60px);
}
/* Más aire solo antes y después de las tapas cobalto */
.pasos,
.faq { padding-bottom: clamp(80px, 10vw, 128px); }
.rubros { padding-top: clamp(80px, 10vw, 128px); }

.seccion__titulo {
  max-width: 20ch;
  margin-bottom: 14px;
  font-family: var(--f-titular);
  font-weight: 800;
  font-stretch: 112%;
  font-size: clamp(2rem, 1.3rem + 2.6vw, 3.35rem);
  line-height: 1.04;
  letter-spacing: -0.024em;
  text-wrap: balance;
}

.seccion__sub {
  max-width: 52ch;
  margin-bottom: 36px;
  color: var(--tinta-2);
  font-size: 1.125rem;
}

/* ---------- Rubros: índice del cuaderno ---------- */
.rubros__grid { display: grid; gap: 8px; }

.indice {
  display: grid;
  column-gap: 44px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.indice__item {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 54px;
  padding-block: 6px;
  border-bottom: 1px solid var(--renglon);
  color: var(--tinta);
  font-size: 1.0625rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 0;
}
.indice__item > i:first-child { flex: none; font-size: 1.4rem; color: var(--lapicero); }
.indice__nombre { flex: 0 1 auto; line-height: 1.3; }
.indice__puntos {
  flex: 1 1 16px;
  min-width: 16px;
  height: 0;
  border-bottom: 2px dotted #9AAAC4;
  transform: translateY(0.35em);
}
.indice__ir { flex: none; font-size: 1.15rem; color: var(--tinta-2); transition: transform 0.25s var(--ease), color 0.2s; }
.indice__item:hover .indice__nombre { color: var(--lapicero); text-decoration: underline; text-decoration-thickness: 2px; }
.indice__item:hover .indice__ir { color: var(--lapicero); transform: translateX(4px); }

@media (min-width: 768px) {
  .indice { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 1024px) {
  .rubros__grid {
    grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
    gap: 64px;
    align-items: start;
  }
  .rubros__intro { position: sticky; top: calc(var(--nav-h) + 32px); }
}

/* ---------- Dolores: renglones con casilla ---------- */
.renglones {
  display: grid;
  column-gap: 48px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pain {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 16px;
  align-items: start;
  width: 100%;
  min-height: 60px;
  padding: 16px 6px 14px;
  border: 0;
  border-bottom: 1px solid var(--renglon);
  border-radius: 0;
  background: transparent;
  color: var(--tinta);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.2s;
}
.pain:hover { background: rgba(31, 63, 191, 0.045); }

.pain__casilla {
  position: relative;
  grid-row: 1 / span 2;
  width: 26px;
  height: 26px;
  border: 2px solid var(--tinta-2);
  border-radius: 4px;
  background: var(--papel);
  transition: border-color 0.2s;
}
.pain:hover .pain__casilla { border-color: var(--lapicero); }
.pain__casilla svg {
  position: absolute;
  left: -2px;
  top: -10px;
  width: 36px;
  height: 34px;
  overflow: visible;
}
.pain__casilla path {
  fill: none;
  stroke: var(--lapicero);
  stroke-width: 3.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1 2;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 0.36s cubic-bezier(0.55, 0, 0.25, 1);
}
.pain[aria-pressed="true"] .pain__casilla path { stroke-dashoffset: 0; }

.pain__text { padding-top: 1px; font-size: 1.0625rem; font-weight: 500; line-height: 1.45; }
.pain[aria-pressed="true"] .pain__text { font-weight: 650; }

.pain__fix {
  display: grid;
  grid-column: 2;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s var(--ease);
}
.pain__fix > span { min-height: 0; overflow: hidden; }
.pain__fix > span > span {
  display: flex;
  gap: 6px;
  padding-top: 4px;
  font-family: var(--f-mano);
  font-size: 1.15rem;
  line-height: 1.35;
  color: var(--lapicero);
}
.pain__fix i { flex: none; margin-top: 3px; font-size: 1rem; }
.pain[aria-pressed="true"] .pain__fix { grid-template-rows: 1fr; }

@media (min-width: 900px) {
  .renglones { grid-template-columns: 1fr 1fr; }
}

.pains-wrap { position: relative; }

.pick {
  position: sticky;
  bottom: 16px;
  z-index: 5;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 20px;
  margin-top: 24px;
  padding: 10px 6px 10px 10px;
  border-top: 1.5px solid var(--renglon);
  border-bottom: 1.5px solid var(--renglon);
  border-radius: 2px;
  background-color: var(--hoja);
  background-image:
    linear-gradient(var(--cuadro) 1px, transparent 1px),
    linear-gradient(90deg, var(--cuadro) 1px, transparent 1px);
  background-size: var(--celda) var(--celda);
  box-shadow: 0 -10px 18px -14px rgba(17, 30, 80, 0.35);
}
.pick__count {
  font-family: var(--f-mano);
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--lapicero);
}
/* Desactivado: lapicero sin tinta todavía, no un gris de sistema */
.pick__btn.is-disabled {
  background: transparent;
  color: #4A5BA8;
  box-shadow: none;
  outline: 1.5px dashed #8C9BD3;
  outline-offset: -1.5px;
}
.pick__btn.is-disabled:focus-visible { outline: 3px solid var(--lapicero); outline-offset: 3px; }
.pick__btn { flex: 1 1 auto; }
.pick__calma {
  flex: 1 0 100%;
  color: var(--tinta-2);
  font-size: 0.8125rem;
  line-height: 1.4;
}

@media (min-width: 640px) {
  .pick__btn { flex: 0 0 auto; }
}

/* ---------- Trabajos: fotos pegadas ---------- */
.trabajos__intro {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 24px;
  margin-bottom: 44px;
}
.trabajos__intro .seccion__titulo { margin-bottom: 0; }
.trabajos__aviso {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--tinta-3);
  font-size: 0.9rem;
}

.caso {
  display: grid;
  gap: 32px;
  align-items: center;
  margin-bottom: clamp(48px, 6vw, 88px);
}
.caso:last-child { margin-bottom: 0; }

.caso__foto {
  position: relative;
  margin: 0;
  padding: 10px 10px 12px;
  border-radius: 3px;
  background: var(--papel);
  box-shadow: 0 20px 34px -22px rgba(17, 25, 60, 0.5), 0 2px 6px rgba(17, 25, 60, 0.12);
}
.caso__foto--a { rotate: -1.4deg; }
.caso__foto--b { rotate: 1.2deg; }
.caso__foto--c { rotate: -0.8deg; }

.caso__media {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #E7EDF6;
}

.caso__control {
  position: absolute;
  right: 20px;
  bottom: 22px;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: var(--papel);
  color: var(--cobalto);
  font-size: 1.25rem;
  box-shadow: 0 4px 12px -4px rgba(17, 30, 80, 0.5);
  cursor: pointer;
}
.caso__control[hidden] { display: none; }
.caso__control:hover { background: #EAF0FF; }

.cinta {
  position: absolute;
  z-index: 2;
  width: 104px;
  height: 28px;
  background: rgba(232, 228, 214, 0.9);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
  clip-path: polygon(3% 0, 97% 5%, 100% 48%, 96% 100%, 2% 95%, 0 52%);
  pointer-events: none;
}
.cinta--izq { top: -8px; left: -26px; rotate: -34deg; }
.cinta--der { top: -8px; right: -26px; rotate: 32deg; }
.cinta--centro { top: -14px; left: calc(50% - 52px); rotate: -3deg; }
@media (max-width: 767px) {
  .cinta { width: 84px; height: 24px; }
  .cinta--izq { left: -14px; }
  .cinta--der { right: -12px; }
}

/* ---------- Fotos pegadas: lugares de trabajo (no son clientes) ---------- */
.foto-pegada {
  position: relative;
  margin: 0;
  padding: 8px 8px 6px;
  border-radius: 3px;
  background: var(--papel);
  box-shadow: 0 20px 34px -22px rgba(17, 25, 60, 0.5), 0 2px 6px rgba(17, 25, 60, 0.12);
}
.foto-pegada__img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #E7EDF6;
}
.foto-pegada__pie {
  padding: 6px 2px 0;
  font-family: var(--f-mano);
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--lapicero);
  text-align: center;
  text-wrap: balance;
}
.foto-pegada .cinta { width: 76px; height: 22px; }
.foto-pegada .cinta--centro { top: -11px; left: calc(50% - 38px); }
.foto-pegada .cinta--izq { top: -4px; left: -20px; }

/* Dolores: la cabecera junta el titular y dos fotos del mostrador */
.dolores__cabeza { display: grid; }
.dolores__cabeza .seccion__sub { margin-bottom: 28px; }
.dolores__fotos {
  display: flex;
  align-items: flex-start;
  max-width: 520px;
  margin-bottom: 36px;
  padding-top: 6px;
}
.foto-pegada--a { flex: 0 0 57%; rotate: -1.4deg; z-index: 1; }
.foto-pegada--b { flex: 0 0 40%; margin-left: -3%; margin-top: 22px; rotate: 1.2deg; z-index: 2; }
.foto-pegada--b .foto-pegada__img { aspect-ratio: 4 / 5; }

@media (min-width: 1024px) {
  .dolores__cabeza {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    column-gap: 64px;
    align-items: center;
  }
  .dolores__fotos { justify-self: end; width: 100%; margin-top: -24px; margin-bottom: 36px; }
}

/* Rubros: tira de fotos pegadas encima del índice */
.rubros__cuerpo { min-width: 0; }
.rubros__fotos {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  gap: 14px;
  max-width: 760px;
  margin: 8px 0 36px;
  padding-top: 8px;
}
.foto-pegada--t1 { rotate: -1.2deg; }
.foto-pegada--t2 { rotate: 1deg; margin-top: 10px; }
.foto-pegada--t3 { rotate: -0.6deg; }

@media (max-width: 767px) {
  .foto-pegada--tira { padding: 5px 5px 4px; }
  .foto-pegada--tira .foto-pegada__pie { padding-top: 4px; font-size: 0.98rem; }
  .foto-pegada--tira .cinta { width: 54px; height: 16px; top: -8px; left: calc(50% - 27px); }
}
@media (min-width: 1024px) {
  .rubros__fotos { gap: 28px; margin-top: 0; margin-bottom: 40px; }
}

.caso__titulo {
  margin-bottom: 18px;
  font-family: var(--f-titular);
  font-weight: 800;
  font-stretch: 110%;
  font-size: clamp(1.45rem, 1.1rem + 1.2vw, 2rem);
  line-height: 1.12;
  letter-spacing: -0.016em;
  text-wrap: balance;
}
.caso__antes {
  max-width: 34em;
  margin-bottom: 14px;
  font-family: var(--f-mano);
  font-size: 1.25rem;
  line-height: 1.45;
  color: var(--lapicero);
}
.caso__ahora { max-width: 40em; font-size: 1.0625rem; line-height: 1.65; }
.caso__antes .caso__rotulo { font-weight: 700; }
.caso__ahora .caso__rotulo {
  font-family: var(--f-titular);
  font-weight: 800;
  font-stretch: 112%;
}

@media (min-width: 900px) {
  .caso { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 64px; }
  .caso--invertido { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
  .caso--invertido .caso__foto { order: 2; }
}

/* ---------- Antes y después ---------- */
/* Medidas compartidas: cada fila del sistema cae a la altura de su fila del Excel */
.compare__frame {
  --xl-barra: 44px;
  --xl-fila: 40px;
  position: relative;
  overflow: hidden;
  border: 1.5px solid var(--renglon);
  border-radius: 14px;
  background: var(--papel);
  box-shadow: 0 20px 40px -28px rgba(17, 25, 60, 0.5);
  isolation: isolate;
}

.compare__capa { min-width: 0; }

.xl {
  height: 100%;
  background-color: #fff;
  background-image:
    linear-gradient(#E1E4E8 1px, transparent 1px),
    linear-gradient(90deg, #E1E4E8 1px, transparent 1px);
  background-size: 92px var(--xl-fila);
  background-position: 0 var(--xl-barra);
  font-size: 0.9rem;
}
.xl__barra {
  display: flex;
  align-items: center;
  gap: 8px;
  height: var(--xl-barra);
  padding: 0 16px;
  border-bottom: 1px solid #D7DBE0;
  background: #ECEEF1;
  color: var(--tinta-2);
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
}
.xl__barra i { font-size: 1.2rem; }
.xl__grid {
  width: auto;
  border-collapse: collapse;
  background: #fff;
  font-size: 0.88rem;
}
.xl__grid tr { height: var(--xl-fila); }
.xl__grid th,
.xl__grid td {
  padding: 0 10px;
  border: 1px solid #DADDE2;
  white-space: nowrap;
  text-align: left;
  font-weight: 400;
  line-height: 1.25;
}
.xl__grid th {
  width: 36px;
  background: #EEF0F3;
  color: var(--tinta-3);
  font-weight: 500;
  text-align: center;
}
.xl__grid td { min-width: 76px; }
.xl__grid .b { font-weight: 700; }
.xl__grid .y { background: #F1EBDA; }
.xl__grid .r { font-weight: 800; }
.xl__grid .err { font-weight: 700; background: #ECEEF1; }
.xl__nota {
  display: inline-block;
  margin: 18px 20px 22px;
  padding: 0 6px;
  background: #fff;
  font-family: var(--f-mano);
  font-size: 1.25rem;
  color: var(--lapicero);
  rotate: -1.5deg;
}

.sys { display: flex; flex-direction: column; height: 100%; background: var(--papel); }
.sys__cabeza {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 2px;
  padding: 14px 20px;
  background: var(--cobalto);
  color: #fff;
  text-align: right;
}
.sys__titulo { font-family: var(--f-titular); font-weight: 800; font-stretch: 112%; font-size: 1.12rem; line-height: 1.2; }
.sys__suma { color: var(--sobre-tapa); font-size: 0.95rem; }
.sys__suma strong { color: #fff; }
.sys__lista { flex: 1; margin: 0; padding: 0 20px; list-style: none; }
.sys__lista li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px 14px;
  padding: 12px 0;
  border-bottom: 1px solid #E3E8F0;
}
.sys__nombre { font-weight: 700; }
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  color: var(--tinta-2);
  font-size: 0.92rem;
  font-weight: 600;
  text-align: right;
}
.tag i { flex: none; font-size: 1.1rem; color: var(--tinta-3); }
.tag--ok i { color: var(--cobalto); }
.tag--debe { color: var(--tinta); }
.tag--debe i { color: var(--tinta); }
.sys__pie {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  padding: 14px 20px 18px;
  color: var(--tinta-2);
  font-size: 0.92rem;
  text-align: right;
}

/* Pantallas angostas: las dos hojas, una debajo de otra (sin JS) o en pestañas (con JS) */
.compare__manija,
.compare__range,
.compare__tag { display: none; }
.compare__despues { border-top: 1.5px solid var(--renglon); }
.solo-ancho { display: none; }

.compare__pestanas {
  display: flex;
  gap: 4px;
  margin-bottom: -1.5px;
  padding-left: 12px;
}
.compare__pestanas[hidden] { display: none; }
.compare__pestanas button {
  position: relative;
  min-height: 48px;
  padding: 8px 20px;
  border: 1.5px solid var(--renglon);
  border-bottom: 0;
  border-radius: 10px 10px 0 0;
  background: var(--hoja);
  color: var(--tinta-2);
  font-family: var(--f-mano);
  font-size: 1.25rem;
  font-weight: 700;
  cursor: pointer;
}
.compare__pestanas button[aria-selected="true"] {
  z-index: 2;
  background: var(--papel);
  color: var(--lapicero);
}
.compare--pestanas { border-top-left-radius: 4px; }
.compare--pestanas .compare__despues { border-top: 0; }
.compare__capa[hidden] { display: none; }

@media (max-width: 599px) {
  .xl__grid { width: 100%; }
  .xl__grid tr > :nth-child(3) { display: none; }
  .xl__grid th,
  .xl__grid td { padding: 0 7px; }
  .xl__grid td { min-width: 0; white-space: normal; }
  .sys__lista,
  .sys__cabeza,
  .sys__pie { padding-inline: 14px; }
  .tag { font-size: 0.86rem; }
}

/* Pantallas anchas: deslizador entre las dos hojas superpuestas */
@media (min-width: 1024px) {
  .compare__frame {
    display: grid;
    user-select: none;
    -webkit-user-select: none;
  }
  .compare__frame:has(.compare__range:focus-visible) { outline: 3px solid var(--lapicero); outline-offset: 4px; }
  .compare__capa { grid-area: 1 / 1; }
  .compare__despues { z-index: 1; border-top: 0; clip-path: inset(0 0 0 var(--pos)); }
  .compare__manija,
  .compare__range,
  .compare__tag { display: block; }
  .compare__pestanas { display: none !important; }
  .solo-ancho { display: inline; }
  .solo-angosto { display: none; }
  .xl__nota { margin-bottom: 64px; }

  /* El sistema se alinea renglón por renglón con el Excel; el nombre va pegado a su estado */
  .sys__cabeza { height: calc(var(--xl-barra) + 2 * var(--xl-fila)); padding-block: 0; }
  .sys__lista li {
    flex-wrap: nowrap;
    justify-content: flex-end;
    height: var(--xl-fila);
    padding: 0;
  }
  .tag { margin-left: 0; }
  .sys__nombre::after { content: "·"; margin-left: 14px; color: var(--tinta-3); font-weight: 400; }
  .sys__pie { padding-bottom: 60px; }
}

.compare__manija {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--pos);
  z-index: 3;
  width: 0;
  pointer-events: none;
}
.compare__manija::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -1.5px;
  width: 3px;
  background: var(--cobalto);
}
.compare__manija span {
  position: absolute;
  top: 50%;
  left: -24px;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-top: -24px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: var(--cobalto);
  color: #fff;
  font-size: 1.3rem;
  box-shadow: 0 6px 14px -6px rgba(17, 30, 80, 0.6);
}
.compare__range {
  position: absolute;
  inset: 0;
  z-index: 4;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
}
.compare__tag {
  position: absolute;
  bottom: 14px;
  z-index: 2;
  padding: 2px 12px;
  border-radius: 6px;
  background: var(--papel);
  box-shadow: 0 2px 8px rgba(17, 30, 80, 0.16);
  font-family: var(--f-mano);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--lapicero);
}
.compare__tag--izq { left: 14px; }
.compare__tag--der { right: 14px; }

/* ---------- Calculadora: la cuenta a mano ---------- */
.calc__grid { display: grid; gap: 12px; }

.cuenta { max-width: 640px; }
.cuenta__fila {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  grid-template-areas:
    "op etiqueta num"
    ".  barra    barra";
  align-items: center;
  column-gap: 10px;
  row-gap: 6px;
  padding: 12px 0;
}
.cuenta__fila--fija { grid-template-areas: "op etiqueta num"; }
.cuenta__op {
  grid-area: op;
  font-family: var(--f-mano);
  font-size: 1.9rem;
  font-weight: 700;
  line-height: 1;
  color: var(--lapicero);
}
.cuenta__etiqueta { grid-area: etiqueta; font-weight: 600; line-height: 1.35; }
.cuenta__fila--fija .cuenta__etiqueta { color: var(--tinta-2); font-weight: 500; }
.cuenta__num {
  grid-area: num;
  min-width: 3.4em;
  font-family: var(--f-mano);
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1.1;
  text-align: right;
  color: var(--lapicero);
}
.cuenta__barra {
  grid-area: barra;
  width: 100%;
  height: 32px;
  margin: 0;
  background: transparent;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  --lleno: 50%;
}
.cuenta__barra::-webkit-slider-runnable-track {
  height: 4px;
  border-radius: 2px;
  background: linear-gradient(var(--lapicero), var(--lapicero)) 0 / var(--lleno) 100% no-repeat, #C5D3E8;
}
.cuenta__barra::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 28px;
  height: 28px;
  margin-top: -12px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: var(--cobalto);
  box-shadow: 0 2px 8px rgba(17, 30, 80, 0.4);
}
.cuenta__barra::-moz-range-track { height: 4px; border-radius: 2px; background: #C5D3E8; }
.cuenta__barra::-moz-range-progress { height: 4px; border-radius: 2px; background: var(--lapicero); }
.cuenta__barra::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: var(--cobalto);
  box-shadow: 0 2px 8px rgba(17, 30, 80, 0.4);
}
.cuenta__barra:focus-visible { outline-offset: 2px; }

.cuenta__raya { width: 100%; height: 14px; margin: 4px 0 14px; overflow: visible; }
.cuenta__raya path { fill: none; stroke: var(--lapicero); stroke-width: 2.2; stroke-linecap: round; }

.calc__result { padding-left: 44px; }
.calc__label { color: var(--tinta-2); font-weight: 600; }
.calc__big {
  margin: 2px 0 10px;
  font-family: var(--f-titular);
  font-weight: 800;
  font-stretch: 112%;
  font-size: clamp(3rem, 2rem + 4vw, 5rem);
  line-height: 1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.calc__year { color: var(--tinta-2); }
.calc__wa { margin-top: 22px; }
@media (max-width: 479px) {
  .calc__wa { width: 100%; }
}
.calc__year strong { color: var(--tinta); }

@media (min-width: 1024px) {
  .calc__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 72px; align-items: start; }
}

/* ---------- Tapas del cuaderno ---------- */
.tapa {
  position: relative;
  z-index: 1;
  padding-block: clamp(80px, 10vw, 136px);
  color: #fff;
  background-color: var(--cobalto);
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"),
    linear-gradient(160deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0) 38%, rgba(0, 0, 0, 0) 62%, rgba(0, 0, 0, 0.14) 100%);
}
/* Lomo del cuaderno, a la altura del margen */
.tapa::before,
.pie::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: calc(var(--m) + 2px);
  background: rgba(0, 0, 20, 0.16);
  box-shadow: inset -1px 0 0 rgba(255, 255, 255, 0.12);
  pointer-events: none;
}
.tapa > * { position: relative; }

/* Por qué hago esto */
.about__grid { display: grid; gap: 48px; }
.about .seccion__titulo { color: #fff; margin-bottom: 20px; }
.about__copy { order: -1; }
.about__lead {
  max-width: 62ch;
  margin-bottom: 32px;
  color: var(--sobre-tapa);
  font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.2rem);
  line-height: 1.65;
}
.about__promesas {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid rgba(255, 255, 255, 0.24);
}
.about__promesas li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.24);
  color: var(--sobre-tapa);
}
.about__promesas i { flex: none; margin-top: 2px; font-size: 1.5rem; color: #fff; }
.about__promesas strong { color: #fff; }

.etiqueta {
  position: relative;
  width: 100%;
  max-width: 440px;
  padding: 26px 26px 28px;
  border-radius: 18px;
  background: var(--papel);
  color: var(--tinta);
  box-shadow: 0 22px 40px -20px rgba(0, 0, 30, 0.6);
  rotate: -1.5deg;
}
.etiqueta::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1.5px solid var(--cobalto);
  border-radius: 12px;
  pointer-events: none;
}
.etiqueta__marca {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 14px;
  margin-bottom: 6px;
  border-bottom: 2px solid var(--cobalto);
}
.etiqueta__marca p { display: grid; gap: 4px; }
.etiqueta__logo { display: block; width: auto; height: 38px; }
.etiqueta__palabra { color: var(--tinta-2); font-size: 0.92rem; }
.etiqueta__campo {
  display: grid;
  grid-template-columns: 6.2rem minmax(0, 1fr);
  align-items: end;
  gap: 8px;
  padding: 12px 0 4px;
  border-bottom: 1.5px solid var(--renglon);
}
.etiqueta__rotulo {
  padding-bottom: 6px;
  color: var(--tinta-3);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.etiqueta__valor {
  font-family: var(--f-mano);
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--lapicero);
}
.etiqueta__wa { width: 100%; margin-top: 22px; }

@media (min-width: 1024px) {
  .about__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 80px; align-items: center; }
  .about__copy { order: 0; }
  .etiqueta { justify-self: center; }
}

/* ---------- Pasos y precio ---------- */
.pasos__grid { display: grid; gap: 48px; }

.turnos { margin: 28px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--renglon); }
.turno {
  position: relative;
  padding: 20px 0 22px 58px;
  border-bottom: 1px solid var(--renglon);
}
.turno__num {
  position: absolute;
  top: 12px;
  left: 0;
  width: 40px;
  font-family: var(--f-mano);
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  color: var(--lapicero);
}
.turno h3 {
  margin-bottom: 4px;
  font-family: var(--f-titular);
  font-weight: 800;
  font-stretch: 108%;
  font-size: clamp(1.2rem, 1.05rem + 0.6vw, 1.5rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.turno p { color: var(--tinta-2); }

/* En pantallas anchas los números se escriben en la columna del margen */
@media (min-width: 1400px) {
  .turno { padding-left: 0; }
  .turno__num { left: auto; right: calc(100% + 66px); width: auto; }
}

.precio {
  position: relative;
  width: 100%;
  max-width: 460px;
  padding: 38px 28px 28px;
  border-radius: 4px;
  background: var(--papel);
  box-shadow: 0 24px 40px -24px rgba(17, 25, 60, 0.55), 0 2px 6px rgba(17, 25, 60, 0.1);
  rotate: 1.2deg;
}
.precio__label { color: var(--tinta-2); font-weight: 700; }
.precio__valor {
  margin: 6px 0 14px;
  font-family: var(--f-titular);
  font-weight: 800;
  font-stretch: 116%;
  font-size: clamp(3.2rem, 2.4rem + 3vw, 4.75rem);
  line-height: 1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.precio__valor span {
  font-family: var(--f-texto);
  font-size: 1.1rem;
  font-weight: 600;
  font-stretch: 100%;
  letter-spacing: 0;
  color: var(--tinta-2);
}
.precio__nota { margin-bottom: 18px; color: var(--tinta-2); }
.precio__sunat {
  display: flex;
  gap: 10px;
  margin-bottom: 22px;
  padding-top: 16px;
  border-top: 1.5px dashed var(--renglon);
  font-size: 0.98rem;
}
.precio__sunat i { flex: none; font-size: 1.4rem; color: var(--lapicero); }
.precio .btn { width: 100%; }

@media (min-width: 1024px) {
  .pasos__grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 80px; align-items: start; }
  .precio { justify-self: end; margin-top: 88px; }
}

/* ---------- Preguntas ---------- */
.faq__grid { display: grid; gap: 12px; }
.faq__lista { border-top: 1px solid var(--renglon); }
.faq__lista details { border-bottom: 1px solid var(--renglon); }
.faq__lista summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 62px;
  padding: 16px 6px;
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.35;
  list-style: none;
  cursor: pointer;
  transition: color 0.2s;
}
.faq__lista summary::-webkit-details-marker { display: none; }
.faq__lista summary:hover { color: var(--lapicero); }
.faq__lista summary i { flex: none; font-size: 1.35rem; color: var(--lapicero); transition: rotate 0.3s var(--ease); }
.faq__lista details[open] summary i { rotate: 45deg; }
.faq__lista details p { max-width: 65ch; padding: 0 44px 22px 6px; color: var(--tinta-2); }

@media (min-width: 1024px) {
  .faq__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 72px; align-items: start; }
}

/* ---------- Cierre ---------- */
.final__fila { display: grid; gap: 32px; }
.final__titulo {
  font-family: var(--f-titular);
  font-weight: 800;
  font-stretch: 116%;
  font-size: clamp(2.3rem, 1.3rem + 3.8vw, 4.6rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.final__sub { max-width: 40ch; margin-bottom: 24px; color: var(--sobre-tapa); font-size: 1.15rem; }

@media (min-width: 1024px) {
  .final__fila { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 72px; align-items: end; }
}

/* ---------- Pie: la contratapa ---------- */
.pie {
  position: relative;
  z-index: 1;
  padding: 52px 0 28px;
  background: var(--cobalto-hondo);
  color: var(--sobre-tapa);
}
.pie > * { position: relative; }
.pie__fila { display: grid; gap: 28px; }
.pie__frase { max-width: 36ch; margin-top: 12px; }
.pie__enlaces { display: grid; gap: 2px; }
.pie__enlaces a,
.pie__contacto a {
  justify-self: start;
  padding: 6px 0;
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}
.pie__enlaces a:hover,
.pie__contacto a:hover { text-decoration: underline; }
.pie__contacto { display: grid; gap: 2px; align-content: start; }
.pie__contacto a { font-weight: 700; font-variant-numeric: tabular-nums; }
.pie__legal {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 0.9rem;
}

@media (min-width: 768px) {
  .pie__fila { grid-template-columns: 2fr 1fr 1fr; }
}

/* ---------- Botón flotante de WhatsApp ---------- */
.fab {
  position: fixed;
  right: 16px;
  bottom: calc(16px + env(safe-area-inset-bottom));
  z-index: 30;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--cobalto);
  color: #fff;
  font-size: 1.8rem;
  text-decoration: none;
  box-shadow: 0 12px 24px -10px rgba(17, 30, 100, 0.65);
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px) scale(0.92);
  transition: opacity 0.3s var(--ease), transform 0.4s var(--ease), visibility 0s linear 0.4s, background-color 0.2s;
}
.fab:hover { background: var(--cobalto-osc); }
.fab.is-on {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition-delay: 0s;
}

/* Desde 768 px el botón de WhatsApp ya vive en el encabezado: el flotante sobra */
@media (min-width: 768px) {
  .fab { display: none; }
}

/* ---------- Movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
  .btn:active { transform: none; }
  .pain__casilla path { stroke-dashoffset: 0; opacity: 0; transition: opacity 0.2s linear; }
  .pain[aria-pressed="true"] .pain__casilla path { opacity: 1; }
  .pain__fix { transition: none; }
  .fab { transform: none; transition: opacity 0.3s linear, visibility 0s linear 0.3s; }
  .indice__ir,
  .faq__lista summary i { transition: none; }
}
