/* Papelería El Compàs — «тетрадь в клетку».
   Бумага с клеткой 5 мм и красной линией полей, синяя ручка, жёлтый маркер.
   Lexend — для всего; Caveat — только пометки на полях. Мобильная вёрстка по умолчанию. */

:root {
  --papel: #fffdf8;
  --mesa: #f1ece2;
  --mesa-2: #e9e2d4;
  --cuadro: #e4ebf3;
  --raya: #d5e0f0;
  --margen: #e8a0a0;
  --tinta: #1d2433;
  --tinta-2: #465066;
  --tinta-3: #5f6779;
  --linea: #ddd6c9;
  --linea-2: #c6cedb;
  --azul: #2456c9;
  --azul-osc: #173c98;
  --azul-claro: #e3ebfb;
  --amarillo: #ffe45c;
  --amarillo-osc: #e8c52c;
  --amarillo-claro: #fff5c4;
  --rojo: #e0483e;
  --rojo-texto: #c0392f;
  --rojo-claro: #fbe2df;
  --verde: #1f9d6b;
  --verde-texto: #157a52;
  --verde-claro: #d8f1e5;
  --gris-claro: #e7e9ee;
  --kraft: #dcbd8f;
  --celda: 19px;
  --renglon: 34px;
  --env: 1216px;
  --r: 8px;
  --alto-cab: 107px;
  --sombra-hoja: 0 1px 1px rgba(29, 36, 51, .05), 0 3px 8px -3px rgba(29, 36, 51, .08), 0 24px 46px -28px rgba(29, 36, 51, .42);
  --sombra-foto: 0 1px 2px rgba(29, 36, 51, .16), 0 16px 30px -16px rgba(29, 36, 51, .5);
  --lexend: "Lexend", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --caveat: "Caveat", "Segoe Print", "Bradley Hand", cursive;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--mesa); color: var(--tinta);
  font-family: var(--lexend); font-size: 16px; line-height: 1.6; font-weight: 400;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; line-height: 1.08; letter-spacing: -.025em; text-wrap: balance; }
.nw { white-space: nowrap; }
p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button, input, select, textarea { font-family: inherit; color: inherit; }
.env { width: 100%; max-width: var(--env); margin-inline: auto; padding-inline: 16px; }
.oculto { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
[id] { scroll-margin-top: calc(var(--alto-cab) + 14px); }
:focus-visible { outline: 3px solid var(--azul); outline-offset: 3px; border-radius: 3px; }
::selection { background: var(--amarillo); color: var(--tinta); }

@media (min-width: 768px) {
  .env { padding-inline: 28px; }
}
@media (min-width: 1024px) {
  body { font-size: 17px; }
  :root { --alto-cab: 111px; }
}

/* ── типографика ─────────────────────────────────────────────── */
.rotulo {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--tinta-3);
}
.rotulo::before { content: ""; width: 20px; height: 2px; border-radius: 2px; background: var(--rojo); flex: none; }
.titular { font-size: clamp(38px, 8.2vw, 72px); line-height: 1.01; letter-spacing: -.045em; }
.titulo { font-size: clamp(30px, 5vw, 50px); line-height: 1.04; letter-spacing: -.038em; }
.subtitulo { font-size: clamp(21px, 2.4vw, 27px); line-height: 1.16; letter-spacing: -.022em; }
.entrada { font-size: clamp(17px, 1.7vw, 19.5px); line-height: 1.55; color: var(--tinta-2); max-width: 50ch; }
.texto-2 { color: var(--tinta-2); }
.pequeno { font-size: 14px; line-height: 1.5; color: var(--tinta-3); }
.cifra { font-variant-numeric: tabular-nums; }

/* маркер за словом: неровный мазок, по строке на каждый перенос */
.resalte {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 24' preserveAspectRatio='none'%3E%3Cpath d='M3 9.5C40 5.5 120 6.8 197 4.6l-1.6 14.2C130 20.4 60 21 4.6 21.6z' fill='%23ffe45c'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-size: 100% .52em; background-position: 0 88%;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
  padding-inline: .06em; margin-inline: -.06em;
}
.resalte--bloque { background-size: 100% 100%; background-position: 50% 55%; color: var(--tinta); padding-inline: .14em; margin-inline: -.04em; }
.animar .revelar .resalte, .animar .resalte.revelar { background-size: 0 .52em; transition: background-size .9s cubic-bezier(.3, .7, .2, 1) .25s; }
.animar .revelar.visto .resalte, .animar .resalte.revelar.visto { background-size: 100% .52em; }
.animar .revelar .resalte--bloque { background-size: 0 100%; }
.animar .revelar.visto .resalte--bloque { background-size: 100% 100%; }
.subraya {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 12' preserveAspectRatio='none'%3E%3Cpath d='M2 7c50-4 120-5 196-2' fill='none' stroke='%23e0483e' stroke-width='3' stroke-linecap='round' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-size: 100% .34em; background-position: 0 100%;
  padding-bottom: .1em;
}

/* пометка на полях — только Caveat, слегка повёрнута */
.nota {
  display: inline-flex; align-items: flex-end; gap: 4px;
  font-family: var(--caveat); font-weight: 700; font-size: 25px; line-height: .95;
  color: var(--azul); transform: rotate(-4deg); transform-origin: left bottom; letter-spacing: 0;
}
.nota--roja { color: var(--rojo-texto); }
.nota svg { width: 46px; height: 34px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ── кнопки и ссылки ─────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 12px 22px; border: 2px solid var(--azul); border-radius: var(--r);
  background: var(--azul); color: #fff; font-family: inherit; font-size: 16px; font-weight: 600; line-height: 1.15;
  text-decoration: none; text-align: center; cursor: pointer;
  box-shadow: 0 3px 0 var(--azul-osc);
  transition: transform .14s ease, box-shadow .14s ease, background-color .15s;
}
.btn:hover { background: #2b61da; transform: translateY(-1px); box-shadow: 0 4px 0 var(--azul-osc); }
.btn:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--azul-osc); }
.btn svg { width: 22px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s; flex: none; }
.btn:hover svg { transform: translateX(3px); }
.btn--linea { background: var(--papel); color: var(--tinta); border-color: var(--tinta); box-shadow: 0 3px 0 var(--tinta); }
.btn--linea:hover { background: #fff; box-shadow: 0 4px 0 var(--tinta); }
.btn--linea:active { box-shadow: 0 1px 0 var(--tinta); }
.btn--amarillo { background: var(--amarillo); color: var(--tinta); border-color: var(--tinta); box-shadow: 0 3px 0 var(--tinta); }
.btn--amarillo:hover { background: #ffea7a; box-shadow: 0 4px 0 var(--tinta); }
.btn--amarillo:active { box-shadow: 0 1px 0 var(--tinta); }
.btn--ancho { width: 100%; }
.btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; transform: none; }
.btn-icono svg { width: 20px; height: 20px; }

.enlace {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px;
  font-weight: 600; color: var(--azul); text-decoration: none;
}
.enlace span { background-image: linear-gradient(currentColor, currentColor); background-size: 100% 1.5px; background-repeat: no-repeat; background-position: 0 100%; transition: background-size .25s; }
.enlace:hover span { background-size: 0 1.5px; background-position: 100% 100%; }
.enlace svg { width: 22px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s; flex: none; }
.enlace:hover svg { transform: translateX(4px); }
.enlace-texto { color: var(--azul); font-weight: 600; text-underline-offset: 3px; }

/* ── шапка: логотип с циркулем и закладки-разделители ──────────── */
.cab { position: sticky; top: 0; z-index: 50; background: var(--papel); border-bottom: 1px solid var(--linea); transition: box-shadow .2s; }
.cab--sombra { box-shadow: 0 8px 22px -16px rgba(29, 36, 51, .45); }
.cab__fila { display: flex; align-items: center; gap: 14px; min-height: 58px; }
.logo { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; text-decoration: none; color: var(--tinta); margin-right: auto; }
.logo svg { width: 38px; height: 38px; flex: none; transition: transform .6s cubic-bezier(.3, .7, .2, 1); }
.logo:hover svg { transform: rotate(-18deg); }
.logo__txt { display: flex; flex-direction: column; line-height: 1; }
.logo__txt small { font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--tinta-3); margin-bottom: 5px; }
.logo__txt b { font-size: 22px; font-weight: 700; letter-spacing: -.03em; }
.cab__util { display: none; }
.cab__wa {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-width: 44px; min-height: 44px; padding: 0 10px; border: 2px solid var(--tinta); border-radius: var(--r);
  background: var(--papel); color: var(--tinta); font-weight: 600; font-size: 15px; text-decoration: none;
  box-shadow: 0 2px 0 var(--tinta); transition: transform .14s, box-shadow .14s;
}
.cab__wa:hover { transform: translateY(-1px); box-shadow: 0 3px 0 var(--tinta); }
.cab__wa svg { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.cab__wa-num { display: none; }

.pestanas {
  display: flex; align-items: flex-end; gap: 4px;
  margin-inline: -16px; padding: 6px 16px 0; overflow-x: auto; scrollbar-width: none;
  scroll-padding-inline: 16px;
}
.pestanas::-webkit-scrollbar { display: none; }
.pestana {
  --c: #9aa3b2; --c-fondo: var(--gris-claro);
  position: relative; flex: none; display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 3px 15px 0; margin-bottom: -1px;
  border: 1px solid var(--linea); border-bottom: 0; border-radius: 11px 11px 0 0;
  background: var(--c-fondo); color: var(--tinta); font-size: 15px; font-weight: 600; text-decoration: none; white-space: nowrap;
  box-shadow: inset 0 3px 0 var(--c), inset 0 -1px 0 var(--linea);
  transition: transform .18s ease, background-color .18s;
}
.pestana::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--c); flex: none; }
.pestana:hover { transform: translateY(-3px); }
.pestana[aria-current="page"] {
  background: var(--mesa); z-index: 1; transform: none;
  box-shadow: inset 0 4px 0 var(--c);
}
.pestana--azul { --c: var(--azul); --c-fondo: #e6edfb; }
.pestana--amarillo { --c: var(--amarillo-osc); --c-fondo: #fff6cc; }
.pestana--rojo { --c: var(--rojo); --c-fondo: #fce6e3; }
.pestana--verde { --c: var(--verde); --c-fondo: #ddf3e8; }
.pestana--gris { --c: #7d8698; --c-fondo: #eceef2; }
.pestana--kraft { --c: #b98a52; --c-fondo: #f4eadb; }

@media (min-width: 768px) {
  .pestanas { margin-inline: -28px; padding-inline: 28px; scroll-padding-inline: 28px; }
  .cab__wa { padding: 0 14px; }
  .cab__wa-num { display: inline; }
}
@media (min-width: 1024px) {
  .pestanas { margin-inline: 0; padding-inline: 0; overflow: visible; }
  .cab__fila { min-height: 64px; gap: 26px; }
  .logo svg { width: 42px; height: 42px; }
  .logo__txt b { font-size: 24px; }
  .cab__util { display: flex; align-items: center; gap: 22px; font-size: 14px; color: var(--tinta-2); }
  .cab__util .estado { font-size: 14px; }
  .pestana { padding-inline: 18px; font-size: 15.5px; }
}

/* статус «abierto ahora» */
.estado { display: inline-flex; align-items: center; gap: 9px; font-size: 14.5px; font-weight: 500; color: var(--tinta-2); }
.estado::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: #9aa3b2; flex: none; box-shadow: 0 0 0 3px rgba(154, 163, 178, .22); }
.estado--abierto::before { background: var(--verde); box-shadow: 0 0 0 3px rgba(31, 157, 107, .2); animation: latido 2.4s ease-in-out infinite; }
.estado--cerrado::before { background: var(--rojo); box-shadow: 0 0 0 3px rgba(224, 72, 62, .18); }
@keyframes latido { 50% { box-shadow: 0 0 0 6px rgba(31, 157, 107, .06); } }

/* ── бумага ──────────────────────────────────────────────────── */
.hoja { position: relative; background-color: var(--papel); border-radius: 4px; box-shadow: var(--sombra-hoja); }
.cuadros {
  background-image:
    linear-gradient(var(--cuadro) 1px, transparent 1px),
    linear-gradient(90deg, var(--cuadro) 1px, transparent 1px);
  background-size: var(--celda) var(--celda);
  background-position: -1px -1px;
}
.rayas {
  background-image: linear-gradient(transparent calc(var(--renglon) - 1px), var(--raya) 0);
  background-size: 100% var(--renglon);
}
.margen::before {
  content: ""; position: absolute; top: 0; bottom: 0; left: var(--margen-x, 30px); width: 2px;
  background: var(--margen); opacity: .85; pointer-events: none;
}
/* спираль сверху: дырки цвета стола и проволока */
.espiral { margin-top: 20px; }
.espiral::after {
  content: ""; position: absolute; left: 14px; right: 14px; top: -16px; height: 36px; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='26' height='36' viewBox='0 0 26 36'%3E%3Ccircle cx='13' cy='26' r='4.4' fill='%23f1ece2' stroke='%231d2433' stroke-opacity='.22'/%3E%3Cpath d='M11.4 26.6V9.4a4.6 4.6 0 0 1 9.2 0V17.5' fill='none' stroke='%233a4152' stroke-width='2.3' stroke-linecap='round'/%3E%3Cpath d='M12.6 12a2.9 2.9 0 0 1 4.1-3.2' fill='none' stroke='%23fff' stroke-opacity='.6' stroke-width='1'/%3E%3C/svg%3E") repeat-x 0 0 / 26px 36px;
}
/* скотч */
.cinta {
  position: absolute; z-index: 2; left: 50%; top: -14px; width: 108px; height: 30px;
  transform: translateX(-50%) rotate(-4deg);
  background: rgba(255, 228, 92, .62);
  box-shadow: 0 1px 2px rgba(29, 36, 51, .12);
  clip-path: polygon(0 4%, 4% 0, 8% 6%, 12% 1%, 88% 0, 92% 6%, 96% 0, 100% 5%, 100% 96%, 96% 100%, 92% 94%, 88% 100%, 12% 100%, 8% 95%, 4% 100%, 0 95%);
}
.cinta--azul { background: rgba(126, 170, 240, .5); }
.cinta--roja { background: rgba(240, 140, 130, .55); }
/* полароид */
.polaroid {
  --giro: 2.5deg;
  position: relative; background: #fff; padding: 10px 10px 0; box-shadow: var(--sombra-foto);
  transform: rotate(var(--giro)); transition: transform .5s cubic-bezier(.3, .7, .2, 1);
}
.polaroid img { width: 100%; height: auto; background: var(--mesa-2); }
.polaroid figcaption {
  font-family: var(--caveat); font-weight: 700; font-size: 23px; line-height: 1.05; color: var(--tinta-2);
  padding: 10px 6px 13px; text-align: center;
}
/* стикер */
.pegatina {
  position: relative; display: flex; gap: 14px; align-items: center;
  padding: 14px 16px 15px 14px; border-radius: 14px; background: var(--amarillo);
  transform: rotate(-2.2deg); box-shadow: 0 1px 0 rgba(29, 36, 51, .1), 0 14px 24px -16px rgba(29, 36, 51, .55);
}
.pegatina::after {
  content: ""; position: absolute; right: 0; bottom: 0; width: 26px; height: 26px; border-radius: 0 0 14px 0;
  background: linear-gradient(135deg, transparent 49%, rgba(29, 36, 51, .1) 50%, #fff3a6 62%);
}
.pegatina__sello {
  flex: none; display: grid; place-items: center; width: 66px; height: 66px; border-radius: 50%;
  background: var(--tinta); color: var(--amarillo); font-weight: 700; font-size: 18px; letter-spacing: -.03em;
  transform: rotate(-9deg); box-shadow: inset 0 0 0 3px var(--tinta), inset 0 0 0 5px var(--amarillo);
}
.pegatina__titulo { font-weight: 700; font-size: 17px; letter-spacing: -.01em; line-height: 1.2; }
.pegatina__texto { font-size: 14.5px; line-height: 1.45; margin-top: 3px; }
.pegatina__enlace {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; margin-bottom: -8px;
  font-size: 14.5px; font-weight: 700; color: var(--tinta); text-decoration: none;
}
.pegatina__enlace span { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.pegatina__enlace svg { width: 20px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
/* скрепка */
.clip { position: absolute; top: -20px; left: 30px; width: 22px; height: 58px; z-index: 3; pointer-events: none; }
.clip svg { width: 100%; height: 100%; }

/* ── общие секции ────────────────────────────────────────────── */
.seccion { padding-block: clamp(64px, 9vw, 120px); }
.seccion--corta { padding-block: clamp(44px, 6vw, 72px); }
.cabeza { display: grid; gap: 14px; max-width: 760px; }
.cabeza .titulo { margin-top: 2px; }

/* ── подвал: задняя обложка тетради ───────────────────────────── */
.contra { background: var(--tinta); color: #cfd5e0; margin-top: 0; }
.contra__env { display: grid; gap: 36px; padding-block: 60px 34px; }
.contra .logo { color: #fff; }
.contra .logo__txt small { color: #9aa4b8; }
.contra__marca { display: grid; gap: 14px; align-content: start; }
.contra__marca p { font-size: 15px; line-height: 1.55; }
.contra__marca a { color: #fff; font-weight: 600; display: inline-flex; min-height: 44px; align-items: center; }
.contra__tit { font-size: 12.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: #8e99ae; margin-bottom: 8px; }
.contra__mapa { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.contra__mapa a { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; color: #fff; text-decoration: none; font-size: 15.5px; }
.contra__mapa a:hover { text-decoration: underline; text-underline-offset: 4px; }
.contra__horario ul { display: grid; gap: 6px; font-size: 15px; }
.contra__horario li > span:first-child { color: #fff; font-weight: 600; display: block; }
.formatos { border: 1px solid rgba(255, 255, 255, .22); border-radius: 6px; padding: 14px 16px 12px; }
.formatos table { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
.formatos th, .formatos td { text-align: left; padding: 6px 0; border-bottom: 1px dashed rgba(255, 255, 255, .18); font-weight: 400; white-space: nowrap; }
.formatos td + td { padding-left: 12px; }
.formatos tr:last-child th, .formatos tr:last-child td { border-bottom: 0; }
.formatos th { color: #fff; font-weight: 700; width: 3.2em; }
.formatos td:last-child { text-align: right; color: #9aa4b8; }
.contra__legal { border-top: 1px solid rgba(255, 255, 255, .14); padding-block: 18px 22px; font-size: 13.5px; color: #9aa4b8; }
.nota-demo { background: var(--amarillo-claro); color: #5c4b12; font-size: 13.5px; text-align: center; padding: 12px 16px; line-height: 1.5; }
@media (min-width: 768px) {
  .contra__env { grid-template-columns: 1.1fr 1.3fr 1fr; gap: 40px; }
  .contra__formatos { grid-column: 1 / -1; max-width: 520px; }
}
@media (min-width: 1100px) {
  .contra__env { grid-template-columns: 1fr 1.2fr .95fr 1.15fr; gap: 36px; }
  .contra__formatos { grid-column: auto; }
}

/* ── анимация появления: только со скриптом и без reduce ───────── */
.animar .revelar { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.3, .7, .2, 1); }
.animar .revelar.visto { opacity: 1; transform: none; }
.animar .revelar-2 { transition-delay: .12s; }
.animar .revelar-3 { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ════════════════════ общие элементы форм ════════════════════ */
.contador { display: inline-flex; flex: none; align-items: stretch; border: 1.5px solid var(--linea-2); border-radius: var(--r); background: #fff; overflow: hidden; }
.contador__btn {
  flex: none; width: 44px; min-height: 44px; border: 0; background: transparent; font-family: inherit; font-size: 20px; font-weight: 600; line-height: 1;
  color: var(--tinta); cursor: pointer; transition: background-color .15s;
}
.contador__btn:hover { background: var(--mesa); }
.contador__btn:disabled { color: #b7bdc8; cursor: default; background: transparent; }
.contador__btn:focus-visible { outline-offset: -3px; }
.contador__num {
  width: 50px; min-height: 44px; border: 0; border-inline: 1.5px solid #e3e7ee; text-align: center;
  font-family: inherit; font-size: 16px; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--tinta); background: #fff;
  -moz-appearance: textfield; appearance: textfield;
}
.contador__num::-webkit-outer-spin-button, .contador__num::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.contador__num:focus { outline: none; box-shadow: inset 0 0 0 2px var(--azul); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: var(--r);
  background: #fff; border: 1.5px solid var(--linea-2); font-weight: 600; font-size: 15px; text-decoration: none; color: var(--tinta);
  transition: border-color .15s, transform .15s;
}
.chip:hover { border-color: var(--azul); color: var(--azul); transform: translateY(-2px); }
.campo { display: grid; gap: 6px; }
.campo__rotulo { font-weight: 600; font-size: 15px; }
.campo__ayuda { font-size: 13.5px; color: var(--tinta-3); }
.caja-texto {
  width: 100%; min-height: 48px; padding: 10px 14px; border: 1.5px solid var(--linea-2); border-radius: var(--r); background: #fff;
  font-family: inherit; font-size: 16px; color: var(--tinta); transition: border-color .15s, box-shadow .15s;
}
.caja-texto::placeholder { color: #8c93a1; }
.caja-texto:focus { outline: none; border-color: var(--azul); box-shadow: 0 0 0 3px rgba(36, 86, 201, .18); }
textarea.caja-texto { min-height: 96px; resize: vertical; line-height: 1.5; }


/* ════════════════════ общие компоненты страниц-инструментов ════════════════════ */
.migas { display: flex; flex-wrap: wrap; align-items: center; gap: 0 10px; font-size: 14px; color: var(--tinta-3); }
.migas a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; color: var(--tinta-2); text-underline-offset: 3px; }
.migas [aria-current] { color: var(--tinta); font-weight: 600; }
@keyframes sale { from { opacity: 0; transform: translateY(-10px); } }
.tachable {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 10' preserveAspectRatio='none'%3E%3Cpath d='M1 6.2C22 3.6 46 7.6 66 5.1S91 4 99 5.4' fill='none' stroke='%23e0483e' stroke-width='2.4' stroke-linecap='round' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-size: 0 100%; background-position: 0 55%;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
  transition: background-size .45s cubic-bezier(.4, .6, .2, 1), color .3s;
}
.opcion { position: relative; }
.opcion input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.opcion span {
  display: grid; place-items: center; min-width: 44px; min-height: 44px; padding: 0 11px; border-radius: var(--r);
  border: 1.5px solid var(--linea-2); background: var(--papel); font-weight: 700; font-size: 15px; white-space: nowrap;
  transition: background-color .15s, border-color .15s, color .15s, transform .15s;
}
.opcion:hover span { border-color: var(--azul); }
.opcion input:checked + span { background: var(--azul); border-color: var(--azul); color: #fff; box-shadow: 0 3px 0 var(--azul-osc); transform: translateY(-1px); }
.opcion input:focus-visible + span { outline: 3px solid var(--azul); outline-offset: 2px; }
.tengo {
  display: inline-flex; align-items: center; gap: 7px; min-height: 44px; padding: 0 12px 0 9px; border: 1.5px solid var(--linea-2); border-radius: var(--r);
  background: #fff; font-family: inherit; font-size: 14px; font-weight: 600; color: var(--tinta-2); cursor: pointer; white-space: nowrap;
  transition: background-color .15s, border-color .15s, color .15s;
}
.tengo:hover { border-color: var(--verde); }
.tengo svg { width: 22px; height: 22px; flex: none; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.tengo[aria-pressed="true"] { background: var(--verde-claro); border-color: var(--verde); color: var(--verde-texto); }
.tengo[aria-pressed="true"] .tengo__tick { stroke-dashoffset: 0; }
.quitar {
  display: grid; place-items: center; width: 44px; height: 44px; border: 1.5px solid var(--linea-2); border-radius: var(--r);
  background: #fff; color: var(--rojo-texto); cursor: pointer;
}
.quitar:hover { border-color: var(--rojo); }
.quitar svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
.resumen {
  position: relative; display: grid; gap: 14px; padding: 30px 20px 22px; border-radius: 14px; background: #fff;
  box-shadow: 0 0 0 1px rgba(29, 36, 51, .1), 0 26px 40px -30px rgba(29, 36, 51, .6);
}
.resumen__clip { top: -22px; left: auto; right: 34px; }
.resumen__tit { font-size: 25px; letter-spacing: -.03em; }
.resumen__curso { font-size: 14.5px; color: var(--tinta-3); margin-top: -8px; }
.r-lineas { display: grid; border-top: 1px solid var(--raya); }
.r-lineas > div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--raya); font-size: 15px; }
.r-lineas > div[hidden] { display: none; }
.r-lineas dt { color: var(--tinta-2); }
.r-lineas dd { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.r-lineas__pack dt, .r-lineas__pack dd { color: var(--verde-texto); }
.r-total { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.r-total span { font-weight: 600; font-size: 15px; }
.r-total b { font-size: 34px; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.r-nota { font-size: 14px; line-height: 1.45; padding: 10px 12px; border-radius: 8px; background: var(--amarillo-claro); color: #5c4b12; }
.r-nota--ok { background: var(--verde-claro); color: var(--verde-texto); }
.r-extras { font-size: 13.5px; color: var(--tinta-3); }
.r-extras:empty, .r-vacio:empty, .r-util__aviso:empty { display: none; }
.r-vacio { font-size: 14px; color: var(--rojo-texto); font-weight: 600; }
.r-util { display: flex; flex-wrap: wrap; gap: 4px 6px; margin-top: -2px; }
.util {
  display: inline-flex; align-items: center; gap: 7px; min-height: 44px; padding: 0 10px; border: 0; border-radius: var(--r);
  background: transparent; font-family: inherit; font-size: 14.5px; font-weight: 600; color: var(--azul); cursor: pointer;
}
.util:hover { background: var(--azul-claro); }
.util svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.r-util__aviso { font-size: 14px; color: var(--verde-texto); font-weight: 500; }
.barra-total {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: var(--tinta); color: #fff;
  transform: translateY(110%); transition: transform .3s cubic-bezier(.3, .7, .2, 1); box-shadow: 0 -10px 24px -16px rgba(0, 0, 0, .6);
}
.barra-total--visible { transform: none; }
.barra-total__txt { display: grid; line-height: 1.15; }
.barra-total small { font-size: 12.5px; color: #aab3c5; }
.barra-total b { font-size: 21px; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.barra-total .btn { min-height: 46px; padding: 10px 18px; box-shadow: none; border-color: var(--azul); }
.con-barra { padding-bottom: 72px; background: linear-gradient(to top, var(--amarillo-claro) 72px, var(--mesa) 72px); }
.preguntas__env { display: grid; gap: 30px; }
.preguntas__cab { display: grid; gap: 14px; align-content: start; }
.preguntas__foto { --giro: -2.5deg; width: min(62%, 240px); margin-top: 10px; justify-self: start; }
@media (min-width: 1024px) { .preguntas__foto { width: min(84%, 300px); margin-top: 18px; } }
.preguntas__foto img { aspect-ratio: 4 / 3; object-fit: cover; }
.preguntas__lista { display: grid; border-top: 2px solid var(--tinta); }
.pregunta { border-bottom: 1px dashed rgba(29, 36, 51, .28); }
.pregunta summary {
  position: relative; display: flex; align-items: center; min-height: 64px; padding: 14px 52px 14px 0; cursor: pointer; list-style: none;
  font-weight: 600; font-size: 18px; letter-spacing: -.015em; line-height: 1.3;
}
.pregunta summary::-webkit-details-marker { display: none; }
.pregunta summary::before, .pregunta summary::after {
  content: ""; position: absolute; right: 12px; top: 50%; width: 18px; height: 2.5px; margin-top: -1.25px; border-radius: 2px; background: var(--azul);
  transition: transform .3s cubic-bezier(.3, .7, .2, 1);
}
.pregunta summary::after { transform: rotate(90deg); }
.pregunta[open] summary::after { transform: rotate(0deg); }
.pregunta summary:hover { color: var(--azul); }
.pregunta p { padding: 0 44px 20px 0; color: var(--tinta-2); max-width: 62ch; }
.pregunta[open] p { animation: sale .4s cubic-bezier(.3, .7, .2, 1); }
@media (min-width: 900px) {
  .barra-total { display: none; }
  .con-barra { padding-bottom: 0; }
}
@media (min-width: 1024px) {
  .preguntas__env { grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr); gap: 64px; }
  .preguntas__cab { position: sticky; top: calc(var(--alto-cab) + 32px); }
}
@media (min-width: 1100px) {
  .resumen { position: sticky; top: calc(var(--alto-cab) + 34px); }
}
