/* Inolvidia · «Hazla tú» (/crear) y edición sencilla (/crear/editar). Dueño: crear. Contrato §17.4 y §20.
   Identidad v2 (marca/logo/tokens-v2.css): marfil y arena de papel, noche para el texto, hilo oro rosa como acento y
   botón oro rosa profundo · Jost en titulares (300) y en la interfaz (400/600).
   Los colores salen de los roles de /brand/tokens.css (--color-*), con respaldo por si esa hoja no llega; así el modo
   oscuro automático de los tokens (prefers-color-scheme) también vale aquí.
   Móvil primero (390×844). En ≥ 1024 px el asistente va a la izquierda y el teléfono con la vista previa a la derecha. */

:root {
  --bg: var(--color-fondo, #FBF6F2);
  --bg-calido: var(--color-fondo-calido, #F3EAE3);
  --sup: var(--color-superficie, #FFFFFF);
  --ink: var(--color-texto, #1B1630);
  --soft: var(--color-texto-suave, #5C5370);
  --line: var(--color-borde, #E4D9D1);
  --hilo: var(--color-hilo, #B06E66);
  --acento: var(--color-acento-texto, #94524C);
  --acento-sup: var(--color-acento-texto-superficie, #94524C);
  --btn: var(--color-boton, #94524C);
  --btn-hover: var(--color-boton-hover, #7E443F);
  --btn-ink: var(--color-boton-texto, #FFFFFF);
  --foco: var(--color-foco, #B06E66);
  --ok: var(--color-exito, #3F6E45);
  --bad: var(--color-error, #A3392E);
  --wa: #1F7A4D;
  --wa-hover: #186640;
  --punto: var(--ink);
  --ff-display: var(--font-display, 'Jost', 'Segoe UI', system-ui, sans-serif);
  --ff-body: var(--font-texto, 'Jost', 'Segoe UI', system-ui, sans-serif);
  --fv: normal;
  --sh1: var(--sombra-1, 0 1px 2px rgba(27, 22, 48, .06), 0 1px 1px rgba(27, 22, 48, .04));
  --sh2: var(--sombra-2, 0 4px 12px -2px rgba(27, 22, 48, .10), 0 2px 4px rgba(27, 22, 48, .05));
  --sh3: var(--sombra-3, 0 14px 32px -8px rgba(27, 22, 48, .18), 0 4px 10px -2px rgba(27, 22, 48, .07));
  --sh-btn: var(--sombra-boton, 0 6px 16px -6px rgba(148, 82, 76, .55));
  /* Derivados (se adaptan solos al modo oscuro) */
  --velo: color-mix(in srgb, var(--ink) 4%, transparent);
  --velo-2: color-mix(in srgb, var(--ink) 8%, transparent);
  --borde-campo: color-mix(in srgb, var(--ink) 20%, var(--line));
  --borde-fuerte: color-mix(in srgb, var(--ink) 38%, var(--line));
  --tinte: color-mix(in srgb, var(--hilo) 9%, var(--sup));
  --tinte-borde: color-mix(in srgb, var(--hilo) 42%, var(--line));
  --ok-fondo: color-mix(in srgb, var(--ok) 12%, var(--sup));
  --bad-fondo: color-mix(in srgb, var(--bad) 9%, var(--sup));
  --bad-borde: color-mix(in srgb, var(--bad) 40%, var(--line));
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-spring: cubic-bezier(.3, 1.4, .5, 1);
  --ease-hilo: cubic-bezier(.65, 0, .25, 1);
  --gutter: 16px;
  --radius: 24px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --ok: #8CC488; --bad: #F4A497; --punto: var(--ink); }
}
:root[data-theme="dark"] { --ok: #8CC488; --bad: #F4A497; }
@media (min-width: 900px) { :root { --gutter: 24px; } }

/* Mientras el módulo traduce (en/pt), el cuerpo no se ve; si el módulo no llega, se muestra solo (idioma.js) */
html.ino-traduciendo body { visibility: hidden; animation: cr-mostrar 0s 2.5s forwards; }
@keyframes cr-mostrar { to { visibility: visible; } }

/* ───────── base ───────── */

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; background: var(--bg); scroll-behavior: smooth; }
body.cr {
  margin: 0; min-height: 100vh; min-height: 100dvh;
  background: var(--bg); color: var(--ink);
  font: 400 16px/1.6 var(--ff-body);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { -webkit-tap-highlight-color: transparent; }
h1, h2, h3, p, fieldset, legend, figure { margin: 0; }
fieldset { padding: 0; border: 0; min-width: 0; }
legend { padding: 0; }
strong, b { font-weight: 600; }
::selection { background: color-mix(in srgb, var(--hilo) 28%, transparent); color: var(--ink); }
:focus-visible { outline: 3px solid var(--foco); outline-offset: 3px; border-radius: 10px; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.i { width: 1.2em; height: 1.2em; flex: none; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
/* kit v2: i-hilo es el trazo corto del hilo (36×20, sin corazón); i-letra, la I sola */
.i--hilo { color: var(--hilo); }
.i--letra { stroke: none; color: var(--ink); }
.i-punto { fill: var(--punto); }
.skip { position: fixed; left: 12px; top: -80px; z-index: 200; padding: 12px 18px; border-radius: 12px; background: var(--ink); color: var(--bg); font-weight: 600; text-decoration: none; transition: top .25s var(--ease-out); }
.skip:focus { top: 12px; }
.cr-wrap { width: min(100% - var(--gutter) * 2, 1200px); margin-inline: auto; }
.cr-sr, .cr-offscreen { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.cr-noscript { padding: 24px; text-align: center; color: var(--soft); }
.cr-noscript a { color: var(--acento); }
.cr-only-narrow { display: none; }
@media (max-width: 640px) { .cr-only-wide { display: none; } .cr-only-narrow { display: inline; } }

/* Luz cálida de fondo: arena arriba a la izquierda, un velo terracota muy suave a la derecha */
.cr-bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.cr-glow { position: absolute; border-radius: 50%; filter: blur(60px); }
.cr-glow--a { left: -180px; top: -200px; width: 620px; height: 520px; background: radial-gradient(closest-side, color-mix(in srgb, var(--bg-calido) 95%, transparent), transparent 72%); }
.cr-glow--b { right: -220px; top: 30vh; width: 560px; height: 560px; background: radial-gradient(closest-side, color-mix(in srgb, var(--hilo) 9%, transparent), transparent 70%); }

/* ───────── botones ───────── */

.cr-btn {
  --h: 46px;
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: var(--h); padding: 0 20px; border: 1px solid transparent; border-radius: 999px;
  background: transparent; font: 600 15px/1.15 var(--ff-body); text-decoration: none; white-space: nowrap; cursor: pointer;
  -webkit-user-select: none; user-select: none;
  transition: transform .35s var(--ease-spring), background-color .2s, border-color .2s, color .2s, box-shadow .25s, opacity .2s;
}
.cr-btn:active:not(:disabled) { transform: scale(.97); }
.cr-btn:disabled { cursor: not-allowed; opacity: .55; }
.cr-btn--sm { --h: 40px; padding: 0 15px; font-size: 13.5px; gap: 7px; }
.cr-btn--sm .i { width: 16px; height: 16px; }
.cr-btn--lg { --h: 54px; padding: 0 26px; font-size: 16px; }
.cr-btn--block { width: 100%; }
.cr-btn--primary { background: var(--btn); color: var(--btn-ink); box-shadow: var(--sh-btn); }
.cr-btn--primary:hover:not(:disabled) { background: var(--btn-hover); }
.cr-btn--primary .i { width: 18px; height: 18px; }
.cr-btn--glass { background: var(--sup); border-color: var(--borde-campo); color: var(--ink); box-shadow: var(--sh1); }
.cr-btn--glass:hover:not(:disabled) { border-color: var(--borde-fuerte); background: color-mix(in srgb, var(--sup) 92%, var(--bg-calido)); }
.cr-btn--glass.is-done { border-color: var(--ok); color: var(--ok); }
.cr-btn--glass .i { color: var(--acento-sup); }
.cr-btn--ghost { color: var(--ink); border-color: var(--borde-campo); }
.cr-btn--ghost:hover:not(:disabled) { border-color: var(--borde-fuerte); background: var(--velo); }
.cr-btn--wa { background: var(--wa); color: #fff; box-shadow: 0 8px 18px -10px rgba(31, 122, 77, .9); }
.cr-btn--wa:hover:not(:disabled) { background: var(--wa-hover); }
.cr-link {
  padding: 8px 4px; border: 0; background: none; color: var(--acento); font-weight: 600; font-size: 14.5px; cursor: pointer;
  text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--acento) 40%, transparent); text-decoration-thickness: 1.5px; text-underline-offset: 4px;
}
.cr-link:hover { text-decoration-color: var(--acento); }
.cr-icon-btn { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--sup); color: var(--ink); cursor: pointer; }
.cr-icon-btn:hover { border-color: var(--borde-fuerte); }

.cr-spinner { display: none; width: 18px; height: 18px; border: 2.5px solid color-mix(in srgb, currentColor 30%, transparent); border-top-color: currentColor; border-radius: 50%; animation: cr-spin .8s linear infinite; }
.is-busy > .cr-spinner { display: inline-block; }
.is-busy > .cr-btn__arrow { display: none; }
.cr-spinner--lg { display: inline-block; width: 34px; height: 34px; border-width: 3px; color: var(--hilo); }

/* ───────── selector de idioma (§20.9) ───────── */

.ino-idiomas { display: inline-flex; align-items: center; padding: 3px; border-radius: 999px; border: 1px solid var(--line); background: color-mix(in srgb, var(--sup) 70%, transparent); }
.ino-idiomas a {
  display: grid; place-items: center; min-width: 36px; min-height: 32px; padding: 0 8px; border-radius: 999px;
  font-size: 12.5px; font-weight: 600; letter-spacing: .06em; color: var(--soft); text-decoration: none; transition: background-color .15s, color .15s;
}
.ino-idiomas a:hover { color: var(--ink); background: var(--velo); }
.ino-idiomas a[aria-current='true'] { background: var(--ink); color: var(--bg); }

/* ───────── cabecera y portada ───────── */

.cr-top { padding: 14px 0; }
.cr-top__wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.cr-top__acts { display: flex; align-items: center; gap: 8px; min-width: 0; }
.cr-brand { display: inline-block; flex: none; border-radius: 8px; }
.cr-brand img { width: 130px; height: auto; }
@media (max-width: 380px) { .cr-brand img { width: 120px; } .ino-idiomas a { min-width: 32px; padding: 0 6px; } }
/* Teléfonos de 320–360 px: logo, idiomas y ayuda (solo el ícono; el nombre accesible sigue siendo «Ayuda») */
@media (max-width: 360px) {
  .cr-top__wrap { gap: 8px; }
  .cr-top .cr-brand img { width: 108px; }
  .cr-top .ino-idiomas a { min-width: 28px; min-height: 30px; padding: 0 4px; font-size: 11.5px; }
  .cr-top .cr-btn--sm { width: 40px; padding: 0; }
  .cr-top .cr-only-narrow { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
.cr-hero { padding: 22px 0 24px; }
.cr-eyebrow { display: inline-flex; align-items: center; gap: 9px; font-size: 12.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--acento); }
.cr-eyebrow .i--hilo { width: 24px; height: 14px; }
.cr-h1 {
  margin-top: 14px; font-family: var(--ff-display); font-weight: 300; font-size: clamp(2.35rem, 1.55rem + 3.3vw, 4.15rem); line-height: 1.04; letter-spacing: -.02em;
  font-variation-settings: var(--fv); text-wrap: balance;
}
/* «en 5 minutos.» en cursiva con el hilo terracota por debajo (el recurso gráfico de la marca) */
.cr-h1 em {
  position: relative; display: inline-block; font-weight: 300; color: var(--acento); padding-right: .04em;
}
.cr-h1 em::after {
  content: ''; position: absolute; left: -.04em; right: -.1em; bottom: -.12em; height: .3em; background: var(--hilo);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 24' preserveAspectRatio='none'%3E%3Cpath d='M3 15C48 8 96 6 150 9s104 7 132 1c8-2 13-5 15-8' fill='none' stroke='%23000' stroke-width='3.2' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat 0 0 / 100% 100%;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 24' preserveAspectRatio='none'%3E%3Cpath d='M3 15C48 8 96 6 150 9s104 7 132 1c8-2 13-5 15-8' fill='none' stroke='%23000' stroke-width='3.2' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat 0 0 / 100% 100%;
  clip-path: inset(0 100% 0 0); animation: cr-hilo 1.2s .25s var(--ease-hilo) forwards;
}
@keyframes cr-hilo { to { clip-path: inset(0 0 0 0); } }
.cr-lead { margin-top: 16px; max-width: 58ch; font-size: 16.5px; line-height: 1.6; color: var(--soft); text-wrap: pretty; }

/* ───────── disposición ───────── */

.cr-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; align-items: start; }
.cr-flow { display: grid; gap: 14px; min-width: 0; }
.cr-aside { display: none; }
@media (min-width: 1024px) {
  .cr-layout { grid-template-columns: minmax(0, 1fr) 360px; gap: 48px; }
  .cr-aside { display: block; position: sticky; top: 16px; }
  .cr-hero { padding-bottom: 32px; }
}
@media (min-width: 1280px) { .cr-layout { grid-template-columns: minmax(0, 1fr) 380px; gap: 64px; } }
.cr-aside__in { display: grid; gap: 12px; justify-items: center; text-align: center; }
.cr-aside__k { font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--acento); }
.cr-aside__cap { max-width: 34ch; font-size: 13.5px; color: var(--soft); text-wrap: balance; }
.cr-aside #cr-phone-side, .cr-aside #ed-phone { width: 100%; }
/* El teléfono del costado cabe entero en la ventana (alto disponible − rótulos) */
@media (min-width: 1024px) { .cr-aside .cr-phone__frame { width: min(100%, calc((100vh - 150px) * .4621 + 20px)); } }
.is-off { opacity: .5; pointer-events: none; }

/* ───────── pasos (un hilo que avanza) ───────── */

.cr-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin: 0; padding: 0; list-style: none; }
.cr-steps__btn {
  display: flex; flex-direction: column; align-items: flex-start; gap: 7px; width: 100%; padding: 0; border: 0; background: none; text-align: left; cursor: pointer; color: var(--soft);
}
.cr-steps__btn:disabled { cursor: default; }
.cr-steps__btn::before { content: ''; display: block; width: 100%; height: 3px; border-radius: 3px; background: var(--line); transition: background-color .3s; }
.cr-steps__n { display: none; }
.cr-steps__t { font-size: 12.5px; font-weight: 600; line-height: 1.25; }
.cr-steps__item.is-done .cr-steps__btn::before { background: color-mix(in srgb, var(--hilo) 55%, var(--line)); }
.cr-steps__item.is-done .cr-steps__btn { color: var(--ink); }
.cr-steps__item.is-current .cr-steps__btn::before { background: var(--hilo); height: 4px; margin-top: -1px; }
.cr-steps__item.is-current .cr-steps__btn { color: var(--acento); }
.cr-steps__item.is-done .cr-steps__btn:hover .cr-steps__t { color: var(--acento); }
@media (max-width: 480px) {
  .cr-steps__item:not(.is-current) .cr-steps__t { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .cr-steps__item.is-current .cr-steps__t { white-space: nowrap; }
}

/* ───────── tarjeta del paso ───────── */

.cr-card {
  padding: 22px 16px 20px; border-radius: var(--radius);
  background: var(--sup); border: 1px solid var(--line);
  box-shadow: var(--sh2);
}
@media (min-width: 600px) { .cr-card { padding: 30px 28px 26px; } }
.cr-step { display: grid; gap: 20px; animation: cr-in .45s var(--ease-out) both; }
.cr-step__head { display: grid; gap: 6px; }
.cr-step__k { font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--acento-sup); }
.cr-step__t { font-family: var(--ff-display); font-weight: 400; font-size: clamp(1.65rem, 1.3rem + 1.2vw, 2.2rem); line-height: 1.1; letter-spacing: -.015em; font-variation-settings: var(--fv); }
.cr-step__t:focus { outline: none; }
.cr-step__d { color: var(--soft); font-size: 15px; text-wrap: pretty; }

.cr-nav { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding-top: 4px; }
.cr-nav--col { flex-direction: column; align-items: stretch; }
.cr-nav--col .cr-link { align-self: center; }
.cr-nav--center { justify-content: center; }
@media (max-width: 480px) {
  .cr-nav:not(.cr-nav--col):not(.cr-nav--center) .cr-btn--primary { flex: 1 1 auto; }
}
.cr-acts { display: flex; flex-wrap: wrap; gap: 8px; }
.cr-acts--center { justify-content: center; }
.cr-fine { font-size: 12.5px; color: var(--soft); text-align: center; text-wrap: balance; }

.cr-notice { display: flex; gap: 12px; padding: 14px 16px; border-radius: 16px; background: var(--tinte); border: 1px solid var(--tinte-borde); font-size: 14.5px; line-height: 1.5; }
.cr-notice > .i { margin-top: 2px; color: var(--acento-sup); }
.cr-notice p { color: var(--soft); }
.cr-notice strong { color: var(--ink); }

/* ───────── campos ───────── */

.cr-form { display: grid; gap: 16px; }
.cr-row { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 560px) { .cr-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.cr-field { display: grid; gap: 7px; min-width: 0; align-content: start; }
.cr-fieldset { display: grid; gap: 10px; }
.cr-label { font-size: 13.5px; font-weight: 600; letter-spacing: .01em; color: var(--ink); }
.cr-opt { font-weight: 500; color: var(--soft); }
.cr-help { font-size: 13px; line-height: 1.5; color: var(--soft); }
.cr-help a { color: var(--acento-sup); font-weight: 600; text-underline-offset: 3px; }
.cr-help--note { display: flex; gap: 10px; padding: 11px 13px; border-radius: 14px; background: color-mix(in srgb, var(--bg-calido) 55%, var(--sup)); color: var(--ink); }
.cr-help--note > .i { margin-top: 2px; color: var(--acento-sup); }
.cr-err { font-size: 13px; line-height: 1.4; color: var(--bad); font-weight: 600; }
.cr-err:empty { display: none; }
.cr-err--box a, .cr-err--box .cr-link { color: var(--ink); font-weight: 600; text-underline-offset: 3px; padding: 0; font-size: inherit; }
/* La barra fija de abajo no debe tapar lo que se enfoca o se muestra con scrollIntoView */
.cr-input, .cr-select, .cr-err--box, .cr-tpl__in, .cr-pal__in, .cr-plan__in { scroll-margin: 90px 0 110px; }
.cr-err--box { display: flex; gap: 10px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--bad-borde); background: var(--bad-fondo); color: var(--bad); font-weight: 600; }
.cr-err--box > .i { margin-top: 2px; }

.cr-input, .cr-select {
  width: 100%; min-height: 48px; padding: 10px 14px; border-radius: 12px;
  border: 1px solid var(--borde-campo); background: var(--sup); color: var(--ink); font-size: 16px; font-weight: 500;
  transition: border-color .15s, box-shadow .2s, background-color .15s;
}
.cr-input::placeholder { color: color-mix(in srgb, var(--soft) 75%, transparent); }
.cr-input:hover, .cr-select:hover { border-color: var(--borde-fuerte); }
.cr-input:focus, .cr-select:focus { outline: none; border-color: var(--foco); box-shadow: 0 0 0 4px color-mix(in srgb, var(--foco) 18%, transparent); }
.cr-input[aria-invalid='true'], .cr-select[aria-invalid='true'] { border-color: var(--bad); box-shadow: 0 0 0 3px color-mix(in srgb, var(--bad) 14%, transparent); }
.cr-input[type='date'], .cr-input[type='time'] { min-width: 0; -webkit-appearance: none; appearance: none; }
.cr-input::-webkit-calendar-picker-indicator { opacity: .75; cursor: pointer; }
.cr-input:disabled, .cr-select:disabled { opacity: .6; cursor: not-allowed; background: var(--velo); }
.cr-textarea { resize: vertical; min-height: 72px; line-height: 1.45; }
.cr-select {
  padding-right: 40px; appearance: none; -webkit-appearance: none; cursor: pointer; font-weight: 600;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394524C' stroke-width='2' stroke-linecap='butt' stroke-linejoin='round'%3E%3Cpath d='M6.5 9.5l5.5 5.5 5.5-5.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 13px center; background-size: 15px;
}
.cr-select option { color: var(--ino-noche, #1B1630); background: #fff; }
.cr-tel { display: flex; align-items: stretch; min-width: 0; }
.cr-tel__dial { display: grid; place-items: center; padding: 0 12px; border: 1px solid var(--borde-campo); border-right: 0; border-radius: 12px 0 0 12px; background: color-mix(in srgb, var(--bg-calido) 60%, var(--sup)); font-weight: 600; font-size: 15px; color: var(--ink); font-variant-numeric: tabular-nums; }
.cr-tel .cr-input { border-radius: 0 12px 12px 0; }

.cr-more { border-radius: 16px; border: 1px dashed var(--borde-campo); padding: 0 14px; }
.cr-more[open] { padding-bottom: 14px; }
.cr-more__s { padding: 13px 0; font-weight: 600; font-size: 14.5px; cursor: pointer; color: var(--acento-sup); list-style: none; }
.cr-more__s::-webkit-details-marker { display: none; }
.cr-more__s::before { content: '+ '; font-weight: 600; }
.cr-more[open] .cr-more__s::before { content: '− '; }

/* ───────── chips de tipo ───────── */

.cr-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.cr-chip { position: relative; display: inline-flex; }
.cr-chip__in { position: absolute; opacity: 0; width: 1px; height: 1px; }
.cr-chip__t {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 15px; border-radius: 999px; border: 1px solid var(--borde-campo);
  background: var(--sup); font-size: 14px; font-weight: 600; color: var(--ink); cursor: pointer; white-space: nowrap; transition: background-color .15s, color .15s, border-color .15s;
}
.cr-chip__t:hover { border-color: var(--borde-fuerte); }
.cr-chip__in:checked + .cr-chip__t { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.cr-chip__in:focus-visible + .cr-chip__t { outline: 3px solid var(--foco); outline-offset: 2px; }
.cr-chip__in:disabled + .cr-chip__t { opacity: .4; cursor: not-allowed; }

/* ───────── plantillas (miniaturas con los colores del tema) ───────── */

.cr-tpls { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 720px) { .cr-tpls { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; } }
.cr-tpls__empty { grid-column: 1 / -1; padding: 22px; text-align: center; color: var(--soft); font-size: 14px; border: 1.5px dashed var(--line); border-radius: 18px; }
.cr-tpl { position: relative; display: grid; gap: 8px; min-width: 0; animation: cr-in .4s var(--ease-out) both; }
.cr-tpl__label { position: relative; display: grid; gap: 9px; cursor: pointer; }
.cr-tpl__in { position: absolute; opacity: 0; width: 1px; height: 1px; }
.cr-tpl__thumb {
  --t-bg: #FBF6F2; --t-bg2: #F3EAE3; --t-ink: #1B1630; --t-soft: #5C5370; --t-accent: #1B1630; --t-accent2: #B06E66; --t-accent-ink: #FBF6F2;
  position: relative; display: grid; align-content: center; justify-items: center; gap: 6px; aspect-ratio: 4 / 5; padding: 14px 10px; overflow: hidden;
  border-radius: 18px; text-align: center; color: var(--t-ink);
  background: radial-gradient(120% 70% at 50% 0%, var(--t-bg2), transparent 70%), var(--t-bg);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--ink) 10%, transparent), var(--sh2);
  transition: transform .35s var(--ease-spring), box-shadow .2s;
}
.cr-tpl__thumb::before { content: ''; position: absolute; inset: 8px; border: 1px solid var(--t-accent2); border-radius: 12px; opacity: .55; pointer-events: none; }
.cr-tpl__thumb::after {
  content: ''; position: absolute; right: -26px; top: -26px; width: 86px; height: 86px; border-radius: 50%; opacity: .45; pointer-events: none;
  background: radial-gradient(closest-side, var(--t-accent2), transparent 72%);
}
/* Adorno de la miniatura: línea · punto · línea en el acento del tema */
.cr-tpl__orn { display: flex; align-items: center; gap: 5px; color: var(--t-accent2); }
.cr-tpl__orn i { width: 14px; height: 1px; background: currentColor; }
.cr-tpl__orn b { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.cr-tpl__eye { max-width: 100%; font-size: 8.5px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--t-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cr-tpl__title { max-width: 100%; font-family: var(--ff-display); font-weight: 400; font-variation-settings: var(--fv); font-size: clamp(1.02rem, .9rem + .5vw, 1.32rem); line-height: 1.08; letter-spacing: -.01em; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cr-tpl__rule { width: 34px; height: 1.5px; background: var(--t-accent2); }
.cr-tpl__date { font-size: 9.5px; font-weight: 600; letter-spacing: .08em; color: var(--t-soft); }
.cr-tpl__cta { margin-top: 4px; padding: 5px 11px; border-radius: 999px; background: var(--t-accent); color: var(--t-accent-ink); font-size: 9.5px; font-weight: 600; letter-spacing: .02em; white-space: nowrap; }
.cr-tpl__dots { position: absolute; left: 50%; bottom: 14px; display: flex; gap: 4px; transform: translateX(-50%); }
.cr-tpl__dots i { width: 9px; height: 9px; border-radius: 50%; box-shadow: 0 0 0 1px rgba(0, 0, 0, .12); }
.cr-tpl__meta { display: grid; gap: 1px; padding: 0 2px; }
.cr-tpl__name { font-weight: 600; font-size: 14.5px; line-height: 1.25; }
.cr-tpl__desc { font-size: 12.5px; line-height: 1.35; color: var(--soft); }
.cr-tpl__check {
  position: absolute; right: 8px; top: 8px; z-index: 2; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%;
  background: var(--btn); color: var(--btn-ink); box-shadow: 0 0 0 2px var(--sup); opacity: 0; transform: scale(.6); transition: opacity .2s, transform .3s var(--ease-spring);
}
.cr-tpl__check .i { width: 16px; height: 16px; stroke-width: 2.4; }
.cr-tpl__label:hover .cr-tpl__thumb { transform: translateY(-3px); }
.cr-tpl__in:checked ~ .cr-tpl__thumb { box-shadow: 0 0 0 2.5px var(--hilo), 0 0 0 6px color-mix(in srgb, var(--hilo) 16%, transparent), var(--sh3); }
.cr-tpl__in:checked ~ .cr-tpl__check { opacity: 1; transform: none; }
.cr-tpl__in:checked ~ .cr-tpl__meta .cr-tpl__name { color: var(--acento-sup); }
.cr-tpl__in:focus-visible ~ .cr-tpl__thumb { outline: 3px solid var(--foco); outline-offset: 4px; }
.cr-tpl__in:disabled ~ .cr-tpl__thumb { opacity: .4; }
.cr-tpl__in:disabled ~ * { cursor: not-allowed; }
.cr-tpl__demo { justify-self: start; display: inline-flex; align-items: center; gap: 5px; padding: 2px; font-size: 12.5px; font-weight: 600; color: var(--acento-sup); text-decoration: none; }
.cr-tpl__demo:hover { text-decoration: underline; text-underline-offset: 3px; }
.cr-tpl__demo .i { width: 13px; height: 13px; }
.cr-tpl--sk .cr-tpl__thumb { background: var(--velo-2); box-shadow: none; animation: cr-pulse 1.4s ease-in-out infinite; }
.cr-tpl--sk .cr-tpl__thumb::before, .cr-tpl--sk .cr-tpl__thumb::after { display: none; }

/* ───────── foto ───────── */

.cr-block { display: grid; gap: 12px; padding-top: 18px; border-top: 1px solid var(--line); }
.cr-step__head + .cr-block { padding-top: 0; border-top: 0; }
.cr-block__t { display: flex; align-items: center; gap: 9px; font-size: 15.5px; font-weight: 600; }
.cr-block__t .i { color: var(--acento-sup); }
.cr-block__t--lg { display: block; font-family: var(--ff-display); font-weight: 400; font-size: 1.6rem; line-height: 1.15; font-variation-settings: var(--fv); }
.cr-block__t--lg em { color: var(--acento-sup); }
.cr-file { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.cr-drop {
  display: grid; justify-items: center; gap: 4px; padding: 26px 16px; border-radius: 18px; text-align: center; cursor: pointer;
  border: 1.5px dashed var(--borde-fuerte); background: color-mix(in srgb, var(--bg-calido) 35%, var(--sup)); transition: border-color .15s, background-color .15s;
}
.cr-drop:hover, .cr-drop.is-over { border-color: var(--hilo); background: var(--tinte); }
.cr-file:focus-visible + .cr-drop, .cr-photo:focus-within .cr-drop { outline: 3px solid var(--foco); outline-offset: 3px; }
.cr-drop__i { width: 30px; height: 30px; color: var(--hilo); }
.cr-drop__t { font-weight: 600; }
.cr-drop__d { font-size: 13px; color: var(--soft); }
.cr-photo__ok { display: flex; gap: 14px; align-items: center; padding: 12px; border-radius: 18px; background: color-mix(in srgb, var(--bg-calido) 35%, var(--sup)); border: 1px solid var(--line); }
.cr-photo__img { width: 92px; height: 116px; object-fit: cover; border-radius: 12px; background: var(--velo-2); }
.cr-photo__info { display: grid; gap: 4px; min-width: 0; }
.cr-photo__t { font-weight: 600; }
.cr-photo__acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.cr-photo.has-photo .cr-drop { display: none; }

/* ───────── paletas ───────── */

.cr-pals { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.cr-pal { position: relative; }
.cr-pal__in { position: absolute; opacity: 0; width: 1px; height: 1px; }
.cr-pal__box {
  display: grid; gap: 8px; padding: 12px; border-radius: 16px; border: 1px solid var(--borde-campo); cursor: pointer;
  background: var(--sup); transition: border-color .15s, background-color .15s;
}
.cr-pal__box:hover { border-color: var(--borde-fuerte); }
.cr-pal__sw { display: flex; }
.cr-pal__sw i { width: 26px; height: 26px; margin-right: -6px; border-radius: 50%; box-shadow: 0 0 0 2px var(--sup); }
.cr-pal__n { font-size: 13.5px; font-weight: 600; line-height: 1.25; }
.cr-pal__k { font-size: 11.5px; font-weight: 600; color: var(--acento-sup); }
.cr-pal__in:checked + .cr-pal__box { border-color: var(--hilo); background: var(--tinte); box-shadow: 0 0 0 1.5px var(--hilo) inset; }
.cr-pal__in:focus-visible + .cr-pal__box { outline: 3px solid var(--foco); outline-offset: 2px; }
.cr-pal__in:disabled + .cr-pal__box { opacity: .5; cursor: not-allowed; }

.cr-tsbox {
  position: fixed; z-index: 60; left: 0; right: 0; bottom: calc(92px + env(safe-area-inset-bottom)); width: max-content; max-width: calc(100% - 32px); margin: 0 auto;
  display: grid; justify-items: center; gap: 10px; pointer-events: none;
}
.cr-tsbox__t { display: none; font-size: 14px; font-weight: 600; text-align: center; }
.cr-tsbox__w { display: flex; justify-content: center; max-width: 100%; overflow: hidden; }
.cr-tsbox.is-on { padding: 16px; border-radius: 22px; background: var(--sup); border: 1px solid var(--tinte-borde); box-shadow: var(--sh3); pointer-events: auto; }
.cr-tsbox.is-on .cr-tsbox__t { display: block; }
@media (min-width: 1024px) { .cr-tsbox { bottom: 28px; } }

.cr-progress { display: grid; gap: 8px; }
.cr-progress__bar { height: 5px; border-radius: 5px; background: var(--line); overflow: hidden; }
.cr-progress__bar span { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--hilo); transition: width .3s var(--ease-out); }
.cr-progress__t { font-size: 13.5px; color: var(--acento-sup); font-weight: 600; text-align: center; }

/* ───────── paso 4: planes ───────── */

.cr-inline-phone { display: grid; justify-items: center; }
@media (min-width: 1024px) { .cr-inline-phone { display: none; } }
.cr-inline-phone .cr-phone { width: min(100%, 300px); }

.cr-block--plans { gap: 14px; }
.cr-plans { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); padding-top: 6px; }
@media (min-width: 760px) { .cr-plans { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.cr-plan { position: relative; display: flex; }
.cr-plan__in { position: absolute; opacity: 0; width: 1px; height: 1px; }
.cr-plan__box {
  position: relative; display: grid; align-content: start; gap: 8px; width: 100%; padding: 20px 16px 16px; border-radius: 20px; cursor: pointer;
  border: 1px solid var(--borde-campo); background: var(--sup); transition: border-color .15s, background-color .15s, box-shadow .2s;
}
.cr-plan__box:hover { border-color: var(--borde-fuerte); }
.cr-plan__in:checked + .cr-plan__box { border-color: var(--hilo); background: var(--tinte); box-shadow: 0 0 0 1.5px var(--hilo) inset, var(--sh2); }
.cr-plan__in:focus-visible + .cr-plan__box { outline: 3px solid var(--foco); outline-offset: 3px; }
.cr-plan__badge { position: absolute; top: -11px; left: 16px; padding: 3px 10px; border-radius: 999px; background: var(--btn); color: var(--btn-ink); font-size: 10.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.cr-plan__head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; flex-wrap: wrap; padding-right: 26px; }
.cr-plan__n { font-family: var(--ff-display); font-weight: 400; font-size: 1.45rem; line-height: 1.1; font-variation-settings: var(--fv); }
.cr-plan__p { font-family: var(--ff-display); font-weight: 400; font-size: 1.5rem; line-height: 1; color: var(--acento-sup); white-space: nowrap; font-variant-numeric: lining-nums; font-variation-settings: var(--fv); }
.cr-plan__p small { margin-left: 4px; font-family: var(--ff-body); font-size: 11px; font-weight: 600; color: var(--soft); letter-spacing: .04em; }
.cr-plan__tag { font-size: 13px; color: var(--soft); }
.cr-plan__list { display: grid; gap: 5px; margin: 4px 0 0; padding: 0; list-style: none; font-size: 13px; line-height: 1.4; color: var(--ink); }
.cr-plan__list li { display: flex; gap: 7px; }
.cr-plan__list li:first-child:not(:only-child) { color: var(--soft); }
.cr-plan__list .i { width: 14px; height: 14px; margin-top: 2px; color: var(--hilo); stroke-width: 2.2; }
.cr-plan__radio { position: absolute; right: 14px; top: 18px; width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--borde-fuerte); background: var(--sup); }
.cr-plan__in:checked + .cr-plan__box .cr-plan__radio { border-color: var(--hilo); background: radial-gradient(circle, var(--hilo) 45%, var(--sup) 50%); }
.cr-ref { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 14px; background: var(--tinte); border: 1px solid var(--tinte-borde); font-size: 14px; color: var(--ink); }
.cr-ref .i--hilo { width: 22px; height: 13px; }

/* ───────── final ───────── */

.cr-done { justify-items: center; text-align: center; }
.cr-done__mark { display: grid; place-items: center; width: 72px; height: 72px; border-radius: 50%; background: var(--bg-calido); box-shadow: inset 0 0 0 1px var(--line); }
.cr-done__mark .i { width: 40px; height: 40px; animation: cr-nudo .9s .1s var(--ease-spring) both; }
@keyframes cr-nudo { from { transform: translateY(6px) scale(.7) rotate(-10deg); } to { transform: none; } }
.cr-done__d { max-width: 52ch; color: var(--soft); text-wrap: pretty; }
/* §18.4: pago con Mercado Pago en el final (assets/pagos.js arma .dst-pay) */
.cr-pay { display: grid; justify-items: center; gap: 8px; }
.cr-pay__t { font-size: 14px; color: var(--soft); }
.cr-pay .dst-pay { display: grid; justify-items: center; gap: 6px; }
.cr-pay .dst-pay__turnstile:empty { display: none; }
.cr-pay .dst-pay__error { font-size: 13.5px; color: var(--bad); font-weight: 600; max-width: 46ch; }
.cr-pay .dst-pay__error:empty { display: none; }
.cr-keys { display: grid; gap: 12px; width: 100%; margin-top: 6px; padding: 18px 14px; border-radius: 22px; text-align: left; background: color-mix(in srgb, var(--bg-calido) 40%, var(--sup)); border: 1px solid var(--line); }
@media (min-width: 600px) { .cr-keys { padding: 22px 20px; } }
.cr-keys__t { display: flex; align-items: center; gap: 9px; font-size: 16px; font-weight: 600; }
.cr-keys__t .i { color: var(--acento-sup); }
.cr-keys__list { display: grid; gap: 10px; }
.cr-key { display: grid; gap: 6px; padding: 12px; border-radius: 16px; background: var(--sup); border: 1px solid var(--line); }
.cr-key__n { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14.5px; }
.cr-key__n .i { color: var(--acento-sup); width: 18px; height: 18px; }
.cr-key__d { font-size: 12.5px; color: var(--soft); }
.cr-key__url { width: 100%; min-height: 40px; padding: 8px 12px; border-radius: 10px; border: 1px solid var(--borde-campo); background: var(--velo); color: var(--ink); font: 500 13px/1.3 ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace; text-overflow: ellipsis; }
.cr-key__acts { display: flex; gap: 8px; flex-wrap: wrap; }
.cr-warn { display: flex; gap: 10px; padding: 12px 14px; border-radius: 14px; background: var(--tinte); border: 1px solid var(--tinte-borde); font-size: 13.5px; line-height: 1.5; color: var(--ink); }
.cr-warn > .i { margin-top: 2px; color: var(--acento-sup); }

/* ───────── teléfono ───────── */

.cr-phone { display: grid; gap: 10px; justify-items: center; width: 100%; }
.cr-phone__frame {
  position: relative; width: 100%; max-width: 340px; padding: 10px; border-radius: 46px;
  background: linear-gradient(150deg, var(--ino-noche-2, #2A2342), var(--ino-noche, #1B1630) 62%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08), 0 0 0 1px color-mix(in srgb, var(--ink) 16%, transparent), 0 40px 70px -36px rgba(27, 22, 48, .55), 0 14px 30px -16px rgba(27, 22, 48, .3);
}
.cr-phone__screen {
  --s: .79;
  position: relative; aspect-ratio: 390 / 844; overflow: hidden; border-radius: 36px; isolation: isolate;
  background: radial-gradient(90% 60% at 50% 30%, var(--ino-arena, #F3EAE3), var(--ino-marfil, #FBF6F2) 70%);
}
.cr-phone__iframe { position: absolute; left: 0; top: 0; width: 390px; height: 844px; border: 0; transform: scale(var(--s)); transform-origin: 0 0; background: transparent; }
.cr-phone__notch { position: absolute; z-index: 3; left: 50%; top: 16px; width: 84px; height: 22px; border-radius: 20px; background: var(--ino-noche, #1B1630); transform: translateX(-50%); }
.cr-phone__loading { position: absolute; inset: 0; z-index: 2; display: grid; place-items: center; background: rgba(251, 246, 242, .6); opacity: 0; pointer-events: none; transition: opacity .3s; }
.cr-phone__loading .cr-spinner--lg { color: var(--ino-oro-rosa, #B06E66); }
.cr-phone.is-loading .cr-phone__loading { opacity: 1; }
.cr-phone__empty { position: absolute; inset: 0; z-index: 1; display: none; place-content: center; justify-items: center; gap: 14px; padding: 28px; text-align: center; color: var(--ino-texto-suave, #5C5370); font-family: var(--ff-display); font-variation-settings: var(--fv); font-size: 1.15rem; line-height: 1.3; }
.cr-phone__empty .i { width: 48px; height: 28px; color: var(--ino-oro-rosa, #B06E66); }
.cr-phone.is-empty .cr-phone__empty { display: grid; }
.cr-phone.is-empty .cr-phone__iframe { visibility: hidden; }
.cr-phone__cap { font-size: 13px; color: var(--soft); text-align: center; }

/* Barra del paso: en pantallas angostas queda fija abajo mientras se recorre la tarjeta */
.cr-peek .i { color: var(--acento-sup); }
.cr-back__t, .cr-peek__t { white-space: nowrap; }
@media (max-width: 1023px) {
  .cr-nav--dock {
    position: sticky; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 20; flex-wrap: nowrap;
    margin: 0 -8px; padding: 8px; border-radius: 999px;
    background: color-mix(in srgb, var(--sup) 90%, transparent); border: 1px solid var(--line);
    box-shadow: var(--sh3); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  }
  .cr-nav--dock .cr-btn--primary { flex: 1 1 auto; min-width: 0; }
  .cr-nav--dock .cr-btn--lg { --h: 50px; padding: 0 18px; }
  .cr-nav--dock .cr-btn--glass { box-shadow: none; }
}
@media (min-width: 1024px) { .cr-peek { display: none !important; } }
@media (max-width: 520px) {
  .cr-nav--dock .cr-back, .cr-nav--dock .cr-peek { width: 50px; min-height: 50px; padding: 0; flex: none; }
  .cr-nav--dock .cr-back__t, .cr-nav--dock .cr-peek__t { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  /* Paso 1: solo «Vista previa» y «Continuar»: cabe el texto */
  #paso-1 .cr-nav--dock .cr-peek { width: auto; padding: 0 16px; }
  #paso-1 .cr-nav--dock .cr-peek__t { position: static; width: auto; height: auto; overflow: visible; clip: auto; }
}

.cr-sheet {
  width: 100%; max-width: 480px; max-height: 100dvh; margin: auto; padding: 14px 16px 18px; border: 0; border-radius: 26px;
  background: var(--bg); color: var(--ink); box-shadow: var(--sh3);
}
.cr-sheet::backdrop { background: rgba(27, 22, 48, .55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.cr-sheet[open] { display: grid; gap: 10px; animation: cr-in .35s var(--ease-out) both; }
.cr-sheet__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.cr-sheet__t { font-family: var(--ff-display); font-weight: 400; font-size: 1.35rem; font-variation-settings: var(--fv); }
.cr-sheet .cr-phone__frame { width: min(100%, calc((100dvh - 150px) * .4621 + 20px)); }

/* ───────── preguntas y pie ───────── */

.cr-faq { margin-top: 56px; display: grid; gap: 10px; }
.cr-faq > * { width: 100%; max-width: 760px; }
.cr-faq__t { margin-bottom: 6px; font-family: var(--ff-display); font-weight: 400; font-size: 1.7rem; line-height: 1.15; font-variation-settings: var(--fv); }
.cr-qa { border-radius: 18px; border: 1px solid var(--line); background: var(--sup); }
.cr-qa__q { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; font-weight: 600; font-size: 15.5px; line-height: 1.35; cursor: pointer; list-style: none; border-radius: 18px; }
.cr-qa__q::-webkit-details-marker { display: none; }
.cr-qa__q .i { color: var(--acento-sup); transition: transform .3s var(--ease-out); }
.cr-qa[open] .cr-qa__q .i { transform: rotate(180deg); }
.cr-qa__a { padding: 0 18px 18px; font-size: 15px; line-height: 1.6; color: var(--soft); }

.cr-foot { margin-top: 64px; padding: 28px 0 calc(28px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: color-mix(in srgb, var(--bg-calido) 45%, var(--bg)); }
.cr-foot__wrap { display: grid; gap: 16px; justify-items: start; }
.cr-foot .cr-brand img { width: 120px; }
.cr-foot__nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.cr-foot__nav a { font-size: 14px; color: var(--soft); text-decoration: none; }
.cr-foot__nav a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--hilo); }
.cr-foot__end { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.cr-foot__copy { font-size: 13px; color: var(--soft); }
@media (min-width: 900px) {
  .cr-foot__wrap { grid-template-columns: auto 1fr auto; align-items: center; }
  .cr-foot__nav { justify-content: center; }
}

/* ───────── /crear/editar ───────── */

.ed-main { padding-bottom: 20px; }
.ed-head { display: grid; gap: 8px; padding: 10px 0 20px; }
.ed-head__k { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--acento); }
.ed-head__k .i--hilo { width: 24px; height: 14px; }
.ed-head__t { font-family: var(--ff-display); font-weight: 300; font-size: clamp(2rem, 1.4rem + 2vw, 2.9rem); line-height: 1.05; letter-spacing: -.02em; font-variation-settings: var(--fv); overflow-wrap: anywhere; }
.ed-head__d { color: var(--soft); font-size: 15px; max-width: 60ch; }
.ed-badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; background: var(--tinte); color: var(--acento-sup); border: 1px solid var(--tinte-borde); }
.ed-badge--on { background: var(--ok-fondo); color: var(--ok); border-color: color-mix(in srgb, var(--ok) 40%, var(--line)); }
.ed-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; margin-bottom: 14px; border-radius: 999px; background: var(--sup); border: 1px solid var(--line); }
@media (min-width: 1024px) { .ed-tabs { display: none; } }
.ed-tab { min-height: 42px; border: 0; border-radius: 999px; background: none; color: var(--soft); font-weight: 600; font-size: 14.5px; cursor: pointer; }
.ed-tab[aria-selected='true'] { background: var(--ink); color: var(--bg); }
@media (max-width: 1023px) {
  .ed-layout[data-tab='preview'] .cr-flow { display: none; }
  .ed-layout[data-tab='edit'] .cr-aside { display: none; }
  .ed-layout[data-tab='preview'] .cr-aside { display: block; }
}
.ed-sec { display: grid; gap: 16px; }
.ed-sec + .ed-sec { padding-top: 20px; border-top: 1px solid var(--line); }
.ed-sec__t { display: flex; align-items: center; gap: 9px; font-family: var(--ff-display); font-weight: 400; font-size: 1.4rem; line-height: 1.2; font-variation-settings: var(--fv); }
.ed-sec__t .i { color: var(--acento-sup); width: 20px; height: 20px; }
.ed-places { display: grid; gap: 12px; }
.ed-place { display: grid; gap: 12px; padding: 14px; border-radius: 18px; background: color-mix(in srgb, var(--bg-calido) 30%, var(--sup)); border: 1px solid var(--line); }
.ed-place__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.ed-place__n { font-weight: 600; font-size: 14px; color: var(--acento-sup); }
.ed-gallery { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); }
.ed-thumb { position: relative; display: grid; gap: 6px; }
.ed-thumb img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 12px; background: var(--velo-2); }
.ed-thumb.is-current img { box-shadow: 0 0 0 2.5px var(--hilo); }
.ed-thumb__acts { display: flex; gap: 4px; }
.ed-thumb__acts .cr-btn { --h: 32px; flex: 1; padding: 0 6px; font-size: 12px; box-shadow: none; }
.ed-cover { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.ed-cover__img { width: 110px; height: 138px; object-fit: cover; border-radius: 14px; background: var(--velo-2); }
.ed-cover__none { display: grid; place-items: center; width: 110px; height: 138px; border-radius: 14px; border: 1.5px dashed var(--borde-fuerte); color: var(--soft); font-size: 12px; text-align: center; padding: 8px; }
.ed-bar {
  position: sticky; bottom: 0; z-index: 30; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  margin: 0 calc(var(--gutter) * -1); padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom));
  background: color-mix(in srgb, var(--sup) 92%, transparent); border-top: 1px solid var(--line); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
@media (min-width: 600px) { .ed-bar { margin: 0; border-radius: 20px; border: 1px solid var(--line); bottom: 12px; box-shadow: var(--sh3); } }
@media (max-width: 599px) { .ed-bar { gap: 8px; } .ed-bar .cr-btn { flex: 1 1 100%; } }
.ed-status { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 600; color: var(--soft); }
.ed-status::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.ed-status[data-s='dirty'] { color: var(--acento-sup); }
.ed-status[data-s='saving'] { color: var(--soft); }
.ed-status[data-s='saved'] { color: var(--ok); }
.ed-status[data-s='error'] { color: var(--bad); }
.ed-side { display: grid; gap: 10px; width: 100%; margin-top: 8px; }
.ed-side .cr-btn { width: 100%; }
.ed-empty { display: grid; justify-items: center; gap: 14px; max-width: 560px; margin: 30px auto; text-align: center; }
.ed-empty .cr-done__mark { margin-bottom: 4px; }
.ed-empty p { color: var(--soft); }
.ed-loading { display: grid; place-items: center; min-height: 40vh; }

/* ───────── movimiento ───────── */

@keyframes cr-spin { to { transform: rotate(360deg); } }
@keyframes cr-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes cr-pulse { 50% { opacity: .55; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .cr-h1 em::after { clip-path: none; }
  html.ino-traduciendo body { animation-duration: 0s !important; animation-delay: 2.5s !important; }
}

/* Kit v2: el énfasis de los titulares va recto (Jost no se inclina) y en color */
.cr-h1 em, .cr-block__t--lg em { font-style: normal; }
