/* jepyso.com: the app's look, «the plaster studio» — graphite on plaster, hairlines and square corners, registration
   marks on the corners of what matters, Red Hat Display for titles and Text for the rest. Light and dark from the same
   tokens, from 320 px up. Paragraphs take the width of their box. */
@font-face { font-family: 'Red Hat Display'; src: url('/fuentes/red-hat-display.woff2') format('woff2'); font-weight: 300 900; font-display: swap; }
@font-face { font-family: 'Red Hat Text'; src: url('/fuentes/red-hat-text.woff2') format('woff2'); font-weight: 300 700; font-display: swap; }
:root {
  --letra: 'Red Hat Text', system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --letra-titulo: 'Red Hat Display', 'Red Hat Text', system-ui, sans-serif;
  --fondo: #e4e6e3;
  --superficie: #f2f3f1;
  --tinta: #1d2225;
  --tinta-suave: #596165;
  --linea: #bcc2c2;
  --grafito-fino: rgb(29 34 37 / 0.38);
  --vivo-texto: #a5432b;
  --vivo: #c9553a;
  --barrote: #c6cbc9;
  --barrote-luz: #f7f8f6;
  --barrote-sombra: #a3aaa9;
  --figura-fondo: radial-gradient(120% 95% at 18% 0%, #f7f8f6 0%, #dfe2df 55%, #cfd3d0 100%);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --fondo: #121517;
    --superficie: #191d20;
    --tinta: #e3e6e4;
    --tinta-suave: #a2aaae;
    --linea: #353b3f;
    --grafito-fino: rgb(227 230 228 / 0.34);
    --vivo-texto: #ef8a70;
    --vivo: #e06a4c;
    --barrote: #3b4246;
    --barrote-luz: #555e63;
    --barrote-sombra: #22272a;
    --figura-fondo: radial-gradient(120% 95% at 18% 0%, #2c3236 0%, #1a1e21 60%, #131618 100%);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
    --fondo: #121517;
    --superficie: #191d20;
    --tinta: #e3e6e4;
    --tinta-suave: #a2aaae;
    --linea: #353b3f;
    --grafito-fino: rgb(227 230 228 / 0.34);
    --vivo-texto: #ef8a70;
    --vivo: #e06a4c;
    --barrote: #3b4246;
    --barrote-luz: #555e63;
    --barrote-sombra: #22272a;
    --figura-fondo: radial-gradient(120% 95% at 18% 0%, #2c3236 0%, #1a1e21 60%, #131618 100%);
    color-scheme: dark;
  }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scrollbar-color: var(--tinta-suave) var(--fondo); }
body { margin: 0; background: var(--fondo); color: var(--tinta); font-family: var(--letra); font-size: 18px; line-height: 1.55; }
a { color: inherit; text-underline-offset: 4px; text-decoration-thickness: 1px; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--tinta); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--letra-titulo); line-height: 1.12; letter-spacing: -0.01em; margin: 0; }
p { margin: 0; }
img { max-width: 100%; height: auto; display: block; }

.cabecera, main, .pie { width: 100%; max-width: 1120px; margin: 0 auto; padding-left: 20px; padding-right: 20px; }
.cabecera { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 18px; padding-bottom: 18px; }
.marca { font-family: var(--letra-titulo); font-size: 28px; font-weight: 500; letter-spacing: -0.035em; line-height: 1; text-decoration: none; }
.marca span { font-weight: 300; }
.cabecera-nav { display: flex; align-items: center; gap: 18px; font-size: 16px; font-weight: 600; }
.enlace-app { text-decoration: none; border: 1px solid var(--tinta); border-radius: 2px; padding: 9px 14px; min-height: 44px; display: inline-flex; align-items: center; }
.otra-lengua { color: var(--tinta-suave); min-height: 44px; display: inline-flex; align-items: center; }

.portada { display: grid; gap: 28px; padding: 24px 0 40px; align-items: center; }
@media (min-width: 860px) { .portada { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 48px; padding: 48px 0 64px; } }
.antetitulo { font-size: 14px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--tinta-suave); margin-bottom: 14px; }
.portada h1 { font-size: clamp(34px, 6vw, 58px); font-weight: 600; }
.entradilla { margin-top: 18px; font-size: 20px; color: var(--tinta); }
.nota-lengua { margin-top: 14px; font-size: 15px; color: var(--tinta-suave); }
.portada-figura { margin: 0; position: relative; background: var(--figura-fondo); border: 1px solid var(--linea); }
.portada-figura img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }

/* Registration marks on the corners, as on the professional's screens of the app. */
.portada-figura::before, .portada-figura::after, .tarjeta::before, .tarjeta::after {
  content: ''; position: absolute; width: 14px; height: 14px; border-color: var(--grafito-fino); border-style: solid; pointer-events: none;
}
.portada-figura::before, .tarjeta::before { top: 6px; left: 6px; border-width: 1px 0 0 1px; }
.portada-figura::after, .tarjeta::after { bottom: 6px; right: 6px; border-width: 0 1px 1px 0; }

.botones { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.boton {
  display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 24px; border-radius: 2px;
  background: var(--tinta); color: var(--fondo); font-weight: 650; font-size: 18px; text-decoration: none; border: 1px solid var(--tinta);
}
.boton.secundario { background: transparent; color: var(--tinta); }

.bloque { padding: 40px 0; border-top: 1px solid var(--linea); display: grid; gap: 18px; }
.bloque h2 { font-size: clamp(26px, 3.6vw, 36px); font-weight: 600; }
.bloque > p { font-size: 19px; }
.pasos { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; counter-reset: paso; }
@media (min-width: 860px) { .pasos { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; } }
.pasos li { counter-increment: paso; display: grid; gap: 8px; align-content: start; }
.pasos li::before { content: counter(paso); font-family: var(--letra-titulo); font-size: 15px; font-weight: 700; width: 32px; height: 32px; border: 1px solid var(--tinta); display: grid; place-items: center; }
.pasos h3 { font-size: 21px; }
.dos { display: grid; gap: 16px; }
@media (min-width: 760px) { .dos { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* The plans (precios): three cards side by side on a wide screen, one under another on a phone. */
.tres { display: grid; gap: 16px; }
@media (min-width: 900px) { .tres { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.plan .precio { font-family: var(--letra-titulo); font-size: 40px; font-weight: 500; letter-spacing: -0.02em; margin: 0; }
.plan ul { margin: 0; padding-left: 1.1em; display: grid; gap: 6px; }
.plan .boton { justify-self: start; margin-top: 6px; }

.tarjeta { position: relative; background: var(--superficie); border: 1px solid var(--linea); border-radius: 3px; padding: 24px; display: grid; gap: 10px; align-content: start; }
.tarjeta h3 { font-size: 22px; }
.cierre { justify-items: start; }

.legal { padding: 32px 0 48px; display: grid; gap: 16px; }
.legal h1 { font-size: clamp(32px, 5vw, 46px); font-weight: 600; }
.legal h2 { font-size: 24px; font-weight: 600; margin-top: 14px; }
.legal .fecha { color: var(--tinta-suave); }
.legal ul { margin: 0; padding-left: 22px; display: grid; gap: 10px; }
.legal code { font-size: 15px; overflow-wrap: anywhere; }
.datos-empresa { margin: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px 20px; }
@media (min-width: 680px) { .datos-empresa { grid-template-columns: max-content minmax(0, 1fr); } }
.datos-empresa dt { font-weight: 650; }
.datos-empresa dd { margin: 0 0 8px; }

.pie { border-top: 1px solid var(--linea); padding-top: 22px; padding-bottom: 40px; display: grid; gap: 12px; font-size: 16px; }
.pie-enlaces { display: flex; flex-wrap: wrap; gap: 6px 22px; align-items: center; }
.pie-enlaces a, .enlace-acceso { min-height: 44px; display: inline-flex; align-items: center; }
.enlace-acceso { font: inherit; color: inherit; background: none; border: 0; padding: 0; text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; cursor: pointer; }
.firma { color: var(--tinta-suave); margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 0 10px; }
.firma a { color: inherit; min-height: 44px; display: inline-flex; align-items: center; }
/* Oksigenia's space: its mark as on oksigenia.com, the signature and its contact, and its accounts as 44 px marks. */
.pie-oksigenia { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 24px; border-top: 1px solid var(--linea); padding-top: 12px; }
.oksigenia { display: flex; flex-wrap: wrap; align-items: center; gap: 0 22px; }
.oksigenia-marca { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: var(--tinta); text-decoration: none; font-family: var(--letra-titulo); font-weight: 800; font-size: 19px; letter-spacing: 0.01em; }
.logo-oksigenia { width: 28px; height: 28px; flex: none; }
.redes { list-style: none; margin: 0 -10px; padding: 0; display: flex; flex-wrap: wrap; gap: 2px; }
.redes a { width: 44px; height: 44px; display: inline-grid; place-items: center; border-radius: 50%; color: var(--tinta-suave); }
.redes svg { width: 20px; height: 20px; fill: currentColor; }
.redes a:focus-visible { color: var(--tinta); outline: 2px solid currentColor; outline-offset: 2px; }
@media (hover: hover) { .redes a:hover { color: var(--tinta); background: var(--superficie); } }
@media (max-width: 520px) { .firma .separa { display: none; } .firma { flex-direction: column; align-items: flex-start; } .firma a { min-height: 36px; } }

@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }

/* ---------------------------------------------------------------------------------------------------------------
   The home, «the room» (Jujol, 16-11-2026, portada.js): the app's figure stays in its plaster room on the right while
   the story goes down on the left, and each step changes what it does and what lies over it. Full width, under a
   header that stays. The rest of the site keeps the column above. */
@font-face { font-family: 'Red Hat Mono'; src: url('/fuentes/red-hat-mono.woff2') format('woff2'); font-weight: 300 700; font-display: swap; }
:root {
  --letra-mono: 'Red Hat Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --superficie-2: #d9dcd9; --linea-fuerte: #737c7e; --vivo: #c9553a;
  --sombra: 0 30px 60px -36px rgb(29 34 37 / 0.45);
  --lado: clamp(16px, 4vw, 56px); --cab: 72px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --superficie-2: #22272a; --linea-fuerte: #6b7478; --vivo: #e06a4c; --sombra: 0 30px 60px -30px rgb(0 0 0 / 0.8); }
}
:root[data-theme="dark"] { --superficie-2: #22272a; --linea-fuerte: #6b7478; --vivo: #e06a4c; --sombra: 0 30px 60px -30px rgb(0 0 0 / 0.8); }
.enlace-precios { text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
@media (max-width: 560px) { .enlace-precios { display: none; } }

.inicio .cabecera { position: sticky; top: 0; z-index: 20; max-width: none; height: var(--cab); padding: 0 var(--lado);
  background: color-mix(in srgb, var(--fondo) 88%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid color-mix(in srgb, var(--linea) 60%, transparent); }
.inicio main { max-width: none; padding: 0; }
.etiqueta { margin: 0; font-family: var(--letra-mono); font-size: 13px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--tinta-suave); }

.sala { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); }
.relato { position: relative; z-index: 2; padding: 0 clamp(20px, 4vw, 64px) 0 var(--lado); }
.paso { min-height: 82vh; display: flex; flex-direction: column; justify-content: center; gap: 18px; padding: 48px 0; }
.paso h2 { font-size: clamp(32px, 3.6vw, 52px); line-height: 1.05; font-weight: 500; letter-spacing: -0.02em; }
.paso p:not(.etiqueta) { font-size: 19px; color: var(--tinta-suave); }
.paso:last-child { min-height: calc(100vh - var(--cab)); }
.paso .paso-nota { padding-left: 14px; border-left: 2px solid var(--tinta); color: var(--tinta) !important; font-size: 17px !important; }
/* The title stays in its column at any width (Enrique, 16-11: crossing into the room read as a fault): its size follows
   the column's width (cqi), with the window's as the fallback. */
.paso-portada { min-height: calc(100vh - var(--cab)); justify-content: center; padding: 48px 0 clamp(48px, 10vh, 120px); container-type: inline-size; }
.paso-portada h1 { font-size: clamp(38px, 3.6vw, 76px); font-size: clamp(38px, 10.6cqi, 84px); font-weight: 500; line-height: 0.98; letter-spacing: -0.035em;
  overflow-wrap: break-word; text-wrap: balance; }
.paso-portada .entradilla { margin-top: 10px; font-size: 20px; line-height: 1.5; color: var(--tinta-suave); }
.paso-portada .botones { margin-top: 8px; }

.escenario { position: sticky; top: var(--cab); height: calc(100vh - var(--cab)); overflow: hidden; background: var(--figura-fondo);
  border-left: 1px solid var(--linea); }
.escenario-figura { position: absolute; inset: 24% 0 150px 0; background: url('/imagenes/yeso-puente.webp') center / contain no-repeat; }
.con-figura .escenario-figura { background: none; }
/* Each step frames the figure in the room its layer leaves free: beside the routine and the summary, above the chat
   and the voice. The figure re-frames itself to its new box (Figura.ajustar). */
.escenario[data-paso="1"] .escenario-figura { inset: 6% 0 40px min(390px, 50%); }
.escenario[data-paso="2"] .escenario-figura { inset: 6% 0 200px 0; }
.escenario[data-paso="3"] .escenario-figura { inset: 15% 0 120px 0; }
.escenario[data-paso="4"] .escenario-figura { inset: 6% min(390px, 50%) 40px 0; }
.escenario-figura canvas { width: 100% !important; height: 100% !important; opacity: 0; transition: opacity 0.8s ease; }
.con-figura .escenario-figura canvas { opacity: 1; }
/* The right corners a little further in: a scrollbar laid over the page (or a capture without it) takes up to 16 px. */
.escenario .registro { position: absolute; z-index: 4; inset: 14px 26px 14px 14px; pointer-events: none; }
.registro::before, .registro::after, .registro i::before, .registro i::after { content: ''; position: absolute; width: 18px; height: 18px;
  border: 0 solid var(--linea-fuerte); }
.registro::before { left: 0; top: 0; border-left-width: 1.5px; border-top-width: 1.5px; }
.registro::after { right: 0; bottom: 0; border-right-width: 1.5px; border-bottom-width: 1.5px; }
.registro i::before { right: 0; top: 0; border-right-width: 1.5px; border-top-width: 1.5px; }
.registro i::after { left: 0; bottom: 0; border-left-width: 1.5px; border-bottom-width: 1.5px; }

/* What lies over the figure, one layer per step; only the step's own shows. */
.capa { position: absolute; margin: 0; opacity: 0; transform: translateY(10px); transition: opacity 0.5s ease, transform 0.5s ease; pointer-events: none; }
.escenario[data-paso="0"] [data-en="0"], .escenario[data-paso="1"] [data-en="1"], .escenario[data-paso="2"] [data-en="2"],
.escenario[data-paso="3"] [data-en="3"], .escenario[data-paso="4"] [data-en="4"] { opacity: 1; transform: none; }

/* 0: your prescription as the figure plays it: the phase in big, the tempo as a ruler with its cursor, the count. */
.pauta { left: 40px; right: 40px; bottom: 30px; display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 6px 20px; }
.pauta-nombre { grid-column: 1 / -1; }
.fase { margin: 0; font: 500 clamp(40px, 4.6vw, 68px)/1 var(--letra-titulo); letter-spacing: -0.03em; }
.fase[data-fase="mantener"] { color: var(--vivo-texto); }
.cuenta { justify-self: end; font-size: 14px; }
.cuenta b { font: 500 34px/1 var(--letra-titulo); color: var(--tinta); letter-spacing: -0.02em; }
.tempo { grid-column: 1 / -1; position: relative; display: flex; height: 34px; margin-top: 8px; border-top: 1.5px solid var(--tinta); }
.tempo span { padding: 6px 0 0 8px; font: 400 12px/1.2 var(--letra-mono); color: var(--tinta-suave); border-left: 1px solid var(--linea-fuerte); }
.tempo span b { font-weight: 600; color: var(--tinta); text-transform: uppercase; }
.tempo .t2 { flex: 2; }
.tempo .t1 { flex: 1; }
.tempo .reposo { border-left-style: dashed; }
.tempo-cursor { position: absolute; top: -7px; left: 0; width: 2px; height: 22px; background: var(--vivo); }
.tempo-cursor::before { content: ''; position: absolute; top: -4px; left: -4px; width: 10px; height: 10px; border-radius: 50%; background: var(--vivo); }
.tempo-texto { display: none; }
.girar { top: 34px; right: 50px; }
/* Turned with a finger on a touch screen, with the mouse where there is one. */
.girar-raton { display: none; }
@media (hover: hover) and (pointer: fine) { .girar-dedo { display: none; } .girar-raton { display: inline; } }

/* 1: the routine being built, as the app lists it. */
.rutina, .serie, .resumen { padding: 18px 20px; background: var(--superficie); border: 1px solid var(--linea); box-shadow: var(--sombra); }
.rutina { top: 40px; left: 40px; width: min(330px, calc(100% - 80px)); }
.rutina ol { margin: 12px 0 0; padding: 0; list-style: none; counter-reset: n; }
.rutina li { display: grid; grid-template-columns: 26px 1fr; padding: 10px 0; border-top: 1px solid var(--linea); counter-increment: n; }
.rutina li::before { content: counter(n); grid-row: span 2; font: 500 15px/1.3 var(--letra-mono); color: var(--tinta-suave); }
.rutina li b { font-size: 16px; line-height: 1.3; }
.rutina li span { font: 400 13px/1.4 var(--letra-mono); color: var(--tinta-suave); }
.rutina li.activa { box-shadow: inset 3px 0 0 var(--tinta); padding-left: 10px; margin-left: -10px; }
.molestia-aceptable { margin-top: 8px; padding-top: 10px; border-top: 1px solid var(--linea); font-size: 14px; color: var(--tinta-suave); }
.molestia-aceptable b { color: var(--tinta); }

/* 2: the link, in a chat bubble, and the QR for the practice. */
.mensaje { left: 40px; right: 40px; bottom: 40px; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.burbuja { position: relative; width: min(360px, 100%); padding: 14px 16px 22px; background: var(--superficie); border: 1px solid var(--linea);
  border-radius: 14px 14px 14px 2px; box-shadow: var(--sombra); font-size: 16px; }
.burbuja-enlace { display: block; margin-top: 6px; font: 500 15px/1.3 var(--letra-mono); text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
.burbuja small { position: absolute; right: 12px; bottom: 6px; font-size: 11px; color: var(--tinta-suave); }
.qr { display: grid; justify-items: center; gap: 8px; }
.qr canvas { width: 132px; height: 132px; border: 10px solid #f2f3f1; image-rendering: pixelated; }

/* 3: the set and the voice that guides, its words as the figure moves. */
.serie { top: 40px; left: 40px; padding: 14px 18px; }
.serie-cifras { margin-top: 6px; font-size: 18px; color: var(--tinta-suave); }
.serie-cifras b { color: var(--tinta); }
.voz { left: 40px; right: 40px; bottom: 40px; display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.voz-quien { display: flex; align-items: center; gap: 14px; margin: 0; font: 500 clamp(26px, 2.7vw, 40px)/1.08 var(--letra-titulo); letter-spacing: -0.02em; }
.voz-quien svg { width: 34px; height: 34px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.voces { display: flex; margin: 0; border: 1px solid var(--linea-fuerte); font-size: 14px; font-weight: 600; }
.voces span { padding: 10px 14px; }
.voces .activa { background: var(--tinta); color: var(--superficie); }

/* 4: what comes back, as the professional reads it. */
.resumen { top: 40px; right: 40px; width: min(330px, calc(100% - 80px)); padding-bottom: 14px; }
.resumen h3 { margin-top: 8px; font-size: 26px; line-height: 1.1; font-weight: 500; }
.resumen .baja { margin-top: 6px; font-weight: 700; }
.resumen ul { margin: 12px 0 0; padding: 0; list-style: none; }
.resumen li { display: grid; grid-template-columns: 96px 1fr 22px; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--linea); font-size: 14px; }
.resumen li i { height: 8px; background: var(--superficie-2); }
.resumen li i.m2 { background: linear-gradient(90deg, var(--tinta) 20%, var(--superficie-2) 0); }
.resumen li i.m4 { background: linear-gradient(90deg, var(--tinta) 40%, var(--superficie-2) 0); }
.resumen li i.m5 { background: linear-gradient(90deg, var(--tinta) 50%, var(--superficie-2) 0); }
.resumen li b { font: 600 15px/1 var(--letra-mono); text-align: right; }

/* The sections after the room. */
.bloque-sala { padding: clamp(64px, 9vw, 128px) var(--lado); border-top: 1px solid var(--linea); }
.bloque-sala h2 { margin-top: 12px; font-size: clamp(32px, 3.8vw, 56px); line-height: 1.04; font-weight: 500; letter-spacing: -0.02em; }
.bloque-sala p:not(.etiqueta):not(.precio) { margin-top: 18px; font-size: 19px; color: var(--tinta-suave); }
/* The catalogue's sample: per area, how many and three of its stills, as the app's library shows them. */
.zonas { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin-top: 40px; border-top: 1px solid var(--linea-fuerte); border-left: 1px solid var(--linea-fuerte); }
.zona { padding: 20px 18px 18px; border-right: 1px solid var(--linea-fuerte); border-bottom: 1px solid var(--linea-fuerte); }
.zona h3 { font-size: 22px; font-weight: 500; letter-spacing: -0.01em; }
.zona .etiqueta { margin-top: 4px; }
.zona ul { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 14px 0 0; padding: 0; list-style: none; }
.zona li { display: grid; gap: 6px; align-content: start; font-size: 13px; line-height: 1.3; color: var(--tinta-suave); }
.zona img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--figura-fondo); }
.programas { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 28px; }
.programa { padding: 22px 24px; background: var(--superficie); border: 1px solid var(--linea); }
.programa h3 { font-size: 26px; font-weight: 500; }
.programa p { margin-top: 6px !important; font-size: 17px !important; }

.metodo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
/* The scale, on a card of the routine, as the professional sets it in the app. */
.regla-tarjeta { padding: 22px 28px 18px; background: var(--superficie); border: 1px solid var(--linea); box-shadow: var(--sombra); }
.regla-pie { margin: 6px 0 0 !important; padding-top: 12px; border-top: 1px solid var(--linea); font-size: 15px !important; }
.regla { position: relative; height: 190px; margin-top: 18px; }
.regla-zona { position: absolute; left: 0; top: 70px; width: 50%; height: 46px; border-left: 1.5px solid var(--tinta); border-right: 1.5px solid var(--tinta);
  background: repeating-linear-gradient(135deg, color-mix(in srgb, var(--tinta) 14%, transparent) 0 2px, transparent 2px 9px); }
.regla-zona span { position: absolute; left: 10px; top: -26px; }
.regla-marcas { position: absolute; left: 0; right: 0; top: 116px; display: flex; justify-content: space-between; margin: 0; padding: 0; list-style: none; border-top: 1.5px solid var(--tinta); }
.regla-marcas li { position: relative; width: 0; }
.regla-marcas li::before { content: ''; position: absolute; top: 0; left: 0; width: 1.5px; height: 14px; background: var(--tinta); }
.regla-marcas li span { position: absolute; top: 20px; left: 0; transform: translateX(-50%); font: 500 15px/1 var(--letra-mono); }
.regla-dia { position: absolute; top: 0; transform: translateX(-50%); display: grid; justify-items: center; gap: 2px; }
.regla-dia.en3 { left: 30%; }
.regla-dia.en7 { left: 70%; }
.regla-dia b { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--tinta); color: var(--superficie); font: 600 20px/1 var(--letra-titulo); }
.regla-dia span { font: 400 12px/1.2 var(--letra-mono); color: var(--tinta-suave); white-space: nowrap; }
.regla-dia.marcado b { background: var(--vivo); color: #fff; }
.regla-dia.marcado span { color: var(--vivo-texto); }

.viaje { display: grid; grid-template-columns: 1fr 1.1fr 1fr; gap: 0 24px; margin-top: 44px; align-items: center; }
.objeto { grid-row: span 2; display: grid; gap: 6px; align-content: end; min-height: 160px; padding: 24px; border: 1px solid var(--linea-fuerte); background: var(--superficie); }
.objeto b { font: 500 26px/1.1 var(--letra-titulo); }
.objeto span { color: var(--tinta-suave); }
.flecha { position: relative; height: 56px; display: flex; align-items: flex-end; padding-bottom: 8px; border-bottom: 1.5px solid var(--tinta); }
.flecha::after { content: ''; position: absolute; right: -1px; bottom: -6px; border: 6px solid transparent; border-left: 10px solid var(--tinta); border-right: 0; }
.flecha.vuelta { grid-column: 2; align-items: flex-start; justify-content: flex-end; padding: 8px 0 0; border-bottom: 0; border-top: 1.5px dashed var(--tinta); }
.flecha.vuelta::after { right: auto; left: -1px; top: -6.5px; bottom: auto; border-left: 0; border-right: 10px solid var(--tinta); }
/* What weighs most when choosing, said as a title. */
.datos h2 { font-size: clamp(40px, 5.4vw, 84px); line-height: 0.98; letter-spacing: -0.035em; }
.datos .datos-entrada { font-size: 21px !important; color: var(--tinta) !important; }
.nada { padding-top: 18px; border-top: 1px solid var(--linea); }

.planes-tres { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 44px; border: 1px solid var(--linea-fuerte); }
.planes-tres .plan { display: flex; flex-direction: column; gap: 14px; padding: 28px; background: var(--superficie); }
.planes-tres .plan + .plan { border-left: 1px solid var(--linea-fuerte); }
.planes-tres .plan h3 { font-size: 22px; font-weight: 600; }
.planes-tres .precio { margin: 0; font: 400 clamp(56px, 6vw, 88px)/1 var(--letra-titulo); letter-spacing: -0.04em; }
.planes-tres .precio small { margin-left: 12px; font: 500 14px/1 var(--letra-mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--tinta-suave); vertical-align: 0.9em; }
.planes-tres .plan p:not(.precio) { flex: 1; margin-top: 0; }
.planes-tres .boton { align-self: flex-start; }
/* The people of each plan, one mark each, like the ticks of a ruler. */
.gente { display: flex; flex-wrap: wrap; gap: 4px 3px; min-height: 64px; align-content: flex-start; }
.gente i { width: 3px; height: 14px; background: var(--tinta); }
.gente-5 i { width: 4px; height: 26px; margin-right: 6px; }
.planes-nota { font-size: 16px !important; }

.donde { display: grid; grid-template-columns: minmax(0, 1fr); }
.tesela { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 32px; border: 1px solid var(--linea-fuerte); }
.tesela h3 { font-size: 30px; line-height: 1.1; font-weight: 500; }
.tesela p:not(.etiqueta) { margin: 0 0 8px !important; }

.sala-cierre { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; padding: clamp(64px, 9vw, 120px) var(--lado);
  background: var(--tinta); color: var(--fondo); }
.sala-cierre h2 { font-size: clamp(36px, 5vw, 72px); line-height: 1; font-weight: 500; letter-spacing: -0.03em; }
.sala-cierre .boton { background: var(--fondo); color: var(--tinta); border-color: var(--fondo); }

@media (prefers-reduced-motion: reduce) { .capa, .escenario-figura canvas { transition: none; } }

/* On a phone: the room on top, smaller, and the story under it. */
@media (max-width: 960px) {
  :root { --cab: 64px; }
  /* The title and the promise first, the room after them (Kimi, 16-11): the steps go on under the room. */
  .sala { grid-template-columns: minmax(0, 1fr); }
  .relato { display: contents; }
  .paso-portada { order: 1; padding-left: var(--lado) !important; padding-right: var(--lado) !important; }
  .escenario { order: 2; height: 46vh; z-index: 3; border-left: 0; border-top: 1px solid var(--linea); border-bottom: 1px solid var(--linea); }
  .paso:not(.paso-portada) { order: 3; padding-left: var(--lado); padding-right: var(--lado); }
  .escenario-figura { inset: 0 0 118px 0; }
  /* On a phone the cards go under the figure, which keeps the top of the room. */
  .escenario[data-paso="1"] .escenario-figura, .escenario[data-paso="4"] .escenario-figura { inset: 6px 0 150px 0; }
  .escenario[data-paso="2"] .escenario-figura { inset: 6px 0 128px 0; }
  .escenario[data-paso="3"] .escenario-figura { inset: 64px 0 74px 0; }
  .escenario .rutina, .escenario .resumen { top: auto; bottom: 14px; }
  .relato { padding: 0 var(--lado); }
  .paso { min-height: 62vh; padding: 36px 0; }
  .paso-portada { min-height: 0; padding-top: 28px; }
  .paso:last-child { min-height: 62vh; }
  .paso-portada h1 { font-size: clamp(38px, 10.5vw, 56px); }
  .paso p:not(.etiqueta), .paso-portada .entradilla { font-size: 17px; }
  .pauta { left: 18px; right: 18px; bottom: 14px; }
  .fase { font-size: 34px; }
  .cuenta b { font-size: 24px; }
  .tempo { height: 14px; }
  .tempo span { font-size: 0; padding: 0; }
  .tempo-texto { display: block; grid-column: 1 / -1; font-size: 11px; }
  .girar, .qr { display: none; }
  .rutina, .resumen, .serie { top: 14px; left: 14px; right: auto; width: calc(100% - 28px); padding: 10px 12px; }
  .rutina li:nth-child(n+3), .molestia-aceptable, .resumen li:nth-child(n+3) { display: none; }
  .resumen h3 { font-size: 20px; }
  .mensaje, .voz { left: 14px; right: 14px; bottom: 14px; }
  .voz-quien { font-size: 26px; }
  .metodo { grid-template-columns: minmax(0, 1fr); }
  .zonas { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .zona { padding: 14px 12px; }
  .zona h3 { font-size: 18px; }
  .zona ul { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .zona li:nth-child(n+2) { display: none; }
  .programas { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .regla-tarjeta { padding: 16px 14px 14px; }
  .regla-zona span { top: 50%; left: 8px; transform: translateY(-50%); padding: 2px 4px; background: var(--fondo); }
  .viaje { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .objeto { grid-row: auto; min-height: 0; }
  .flecha, .flecha.vuelta { grid-column: auto; height: 64px; margin-left: 24px; padding: 0 0 0 14px; align-items: center; justify-content: flex-start;
    border: 0; border-left: 1.5px solid var(--tinta); }
  .flecha.vuelta { border-left-style: dashed; }
  .flecha::after, .flecha.vuelta::after { display: none; }
  .planes-tres { grid-template-columns: minmax(0, 1fr); }
  .planes-tres .plan + .plan { border-left: 0; border-top: 1px solid var(--linea-fuerte); }
  .bloque-sala p:not(.etiqueta):not(.precio) { font-size: 17px; }
}

/* The scrollbar is a wall-bar ladder, drawn like the rest of the site, graphite on plaster: the band wrapped round its
   rungs is where you are, and the darker rungs are the sections. With a mouse on wide screens only (espaldera.js);
   elsewhere the browser's own bar stays, in the site's colours (html, above). Rung pitch and offset, as in the script. */
html.con-espaldera { scrollbar-width: none; }
html.con-espaldera::-webkit-scrollbar { display: none; }
html.con-espaldera body { margin-right: 30px; }
.espaldera { position: fixed; top: 0; right: 0; bottom: 0; width: 30px; z-index: 40; background: var(--fondo);
  border-left: 1px solid var(--linea); cursor: pointer; touch-action: none; user-select: none; -webkit-user-select: none; }
.espaldera::before { content: ''; position: absolute; inset: 0 5px 0 6px;
  background:
    linear-gradient(to right, var(--grafito-fino) 0 2px, transparent 2px calc(100% - 2px), var(--grafito-fino) calc(100% - 2px)),
    repeating-linear-gradient(to bottom, transparent 0 19px, var(--barrote-luz) 19px 20px, var(--barrote) 20px 22px,
      var(--barrote-sombra) 22px 23px, transparent 23px 24px); }
.espaldera-marca { position: absolute; left: 2px; right: 1px; height: 14px; margin-top: -7px; }
.espaldera-marca::before { content: ''; position: absolute; left: 0; right: 0; top: 5px; height: 4px; background: var(--tinta-suave); }
.espaldera-marca span, .espaldera-banda span { position: absolute; right: calc(100% + 10px); top: 50%; transform: translateY(-50%); padding: 3px 9px;
  background: var(--superficie); border: 1px solid var(--linea); color: var(--tinta); font-size: 14px; line-height: 1.3;
  white-space: nowrap; pointer-events: none; opacity: 0; transition: opacity .15s; }
.espaldera-marca:hover span, .espaldera.sobre-banda .espaldera-banda span { opacity: 1; }
.espaldera-marca:hover::before { background: var(--tinta); }
.espaldera-banda { position: absolute; top: 0; left: 1px; right: 0; cursor: grab;
  background: repeating-linear-gradient(to bottom, transparent 0 19px, rgb(0 0 0 / 0.2) 19px 23px, transparent 23px 24px) fixed, var(--vivo);
  box-shadow: inset 0 2px 0 rgb(255 255 255 / 0.28), inset 0 -2px 0 rgb(0 0 0 / 0.22); will-change: transform; }
.espaldera-banda:hover, .espaldera.arrastrando .espaldera-banda { filter: brightness(1.08); }
.espaldera.arrastrando, .espaldera.arrastrando .espaldera-banda { cursor: grabbing; }
@media print { .espaldera { display: none; } html.con-espaldera body { margin-right: 0; } }

/* Light or dark, with a goniometer: the arm sweeps the protractor and the range it covers fills with graphite, as on
   the builder's goniometer. Light, a short range (45°); dark, most of the arc (135°). A touch swings it from one to the
   other; data-modo comes from tema.js before the page paints. */
.tema-gonio { width: 32px; height: 24px; flex: none; overflow: visible; }
.tema-gonio path, .tema-gonio circle { fill: none; stroke: currentColor; stroke-linecap: round; }
.tema-gonio .tg-arco, .tema-gonio .tg-base { stroke-width: 1.4; }
.tema-gonio .tg-marcas { stroke-width: 1.1; }
.tema-gonio .tg-sector { stroke-width: 12; stroke-linecap: butt; stroke-dasharray: 4.712 40; opacity: 0.85;
  transform-box: view-box; transform-origin: 16px 20px; transform: scaleY(-1); }
.tema-gonio .tg-brazo { stroke-width: 2.2; transform-box: view-box; transform-origin: 16px 20px; transform: rotate(-45deg); }
.tema-gonio .tg-eje { fill: var(--fondo); stroke-width: 1.5; }
.tema-gonio .tg-sector, .tema-gonio .tg-brazo { transition: transform .6s cubic-bezier(.3, .7, .25, 1), stroke-dasharray .6s cubic-bezier(.3, .7, .25, 1); }
:root[data-modo="oscuro"] .tema-gonio .tg-sector { stroke-dasharray: 14.137 40; }
:root[data-modo="oscuro"] .tema-gonio .tg-brazo { transform: rotate(-135deg); }
@media (prefers-reduced-motion: reduce) { .tema-gonio .tg-sector, .tema-gonio .tg-brazo { transition: none; } }
.tema { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; margin-right: -10px;
  border: 0; background: none; color: var(--tinta); cursor: pointer; }
.tema:focus-visible { outline: 2px solid var(--tinta); outline-offset: -2px; }
.enlace-app { white-space: nowrap; }
@media (max-width: 400px) { .cabecera-nav { gap: 10px; } .enlace-app { padding: 9px 10px; } }
@media (max-width: 350px) { .marca { font-size: 24px; } .cabecera-nav { font-size: 15px; gap: 8px; } .enlace-app { padding: 9px 8px; } .tema { width: 40px; } }
