/* ==========================================================================
   TeeHeart design system · tokens
   Dirección B «Cartel» (TEEA-211), con los ajustes de Manuel:
   rojo y amarillo como acentos, no como fondo; tono tranquilo [data-tone="quiet"]
   para información, legales y blog.
   Fuente de verdad: design-system/MASTER.md
   ========================================================================== */

/* --- Fuentes (autoalojadas en /fonts, subconjunto latino, licencia OFL) ---- */
@font-face { font-family: "Anton"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("/fonts/anton-latin.woff2") format("woff2"); }
@font-face { font-family: "Archivo"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("/fonts/archivo-latin.woff2") format("woff2"); }
/* Solo para la vista previa de la camiseta (estilos del producto) y la nota a mano */
@font-face { font-family: "Caveat Brush"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("/fonts/caveat-brush-latin.woff2") format("woff2"); }
@font-face { font-family: "Abril Fatface"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("/fonts/abril-fatface-latin.woff2") format("woff2"); }
@font-face { font-family: "DM Serif Display"; font-style: italic; font-weight: 400; font-display: swap;
  src: url("/fonts/dm-serif-display-italic-latin.woff2") format("woff2"); }

:root {
  /* --- Color: paleta base ------------------------------------------------
     Pares comprobados (WCAG 2.1, texto normal necesita 4,5:1; grande 3:1):
       ink  sobre paper ......... 21,0   ✓
       ink-2 sobre paper ........  8,9   ✓   ink-2 sobre yellow 6,3 ✓   ink-2 sobre surface 7,9 ✓
       ink-3 sobre paper ........  5,3   ✓   ink-3 sobre surface 4,75 ✓ (solo texto meta)
       ink-3 como borde de control (tono tranquilo) 5,3 / 4,75 ✓  (1.4.11 pide 3:1)
       paper sobre red ..........  5,0   ✓   (justo; nunca en texto < 16 px)
       paper sobre red-deep .....  6,6   ✓
       red sobre paper ..........  5,0   ✓   solo display/grande; para texto corrido usar error
       error (#B51F1F) sobre paper 6,6 ✓  sobre surface 5,9 ✓  sobre error-bg 5,6 ✓
       ink sobre yellow ......... 14,9   ✓   ink sobre highlight (#FFF3BF) 18,8 ✓
       ok (#0F5A28) sobre paper .  8,4   ✓   sobre ok-bg 7,4 ✓   paper sobre ok 8,4 ✓
     Pares PROHIBIDOS:
       ink sobre red ............  4,2   ✗  (solo ≥ 24 px, y se evita)
       red sobre yellow .........  3,55  ✗  nunca como texto
       paper sobre yellow .......  1,4   ✗  el amarillo solo lleva tinta oscura
       red (#D62828) sobre surface 4,46  ✗  texto en rojo sobre gris: usar error
       yellow como texto sobre paper     ✗
       line-soft (#D6D6D2) como borde de control 1,46 ✗  solo separadores decorativos
  ------------------------------------------------------------------------ */
  --color-paper: #FFFFFF;
  --color-surface: #F2F2EF;      /* superficie neutra: fondo del hero emotivo, tarjetas en tono tranquilo */
  --color-ink: #000000;
  --color-ink-2: #4A4A4A;        /* texto secundario */
  --color-ink-3: #6B6B6B;        /* meta (fechas, contadores); nunca < 14 px */
  --color-red: #D62828;          /* acento: botón primario, foco, h1 marca */
  --color-red-deep: #B51F1F;     /* hover del primario; texto de error */
  --color-yellow: #FFD60A;       /* acento de bloque: pedestal de la camiseta, hover de tarjeta, subrayado */
  --color-highlight: #FFF3BF;    /* amarillo suave para <mark> y avisos */
  --color-ok: #0F5A28;
  --color-ok-bg: #E6F4EA;
  --color-error: #B51F1F;
  --color-error-bg: #FBE9E9;

  /* --- Color: semánticos (los componentes solo usan estos) --------------- */
  --bg: var(--color-paper);
  --surface: var(--color-surface);
  --text: var(--color-ink);
  --text-2: var(--color-ink-2);
  --text-3: var(--color-ink-3);
  --accent: var(--color-red);
  --accent-hover: var(--color-red-deep);
  --on-accent: var(--color-paper);
  --block: var(--color-yellow);          /* bloque de acento (solo con --text encima) */
  --highlight: var(--color-highlight);
  --line: var(--color-ink);              /* líneas estructurales */
  --line-control: var(--color-ink);      /* borde de controles (campos, radios, botón secundario): ≥ 3:1 siempre */
  --line-soft: #D6D6D2;                  /* separadores suaves; 1,46:1, nunca como borde de un control */
  --focus: var(--color-red);
  --error: var(--color-error);
  --error-bg: var(--color-error-bg);
  --ok: var(--color-ok);
  --ok-bg: var(--color-ok-bg);
  --inverse-bg: var(--color-ink);
  --inverse-text: var(--color-paper);

  /* --- Tipografía ---------------------------------------------------------- */
  --font-display: "Anton", Impact, "Arial Narrow Bold", sans-serif;
  --font-body: "Archivo", Arial, Helvetica, sans-serif;
  --font-hand: "Caveat Brush", "Segoe Print", cursive;   /* solo .note y vistas previas */
  --fs-xs: 0.75rem;     /* 12 · solo letra pequeña legal, nunca interactiva */
  --fs-sm: 0.875rem;    /* 14 */
  --fs-md: 1rem;        /* 16 · base */
  --fs-lg: 1.125rem;    /* 18 · entradilla */
  --fs-xl: 1.25rem;     /* 20 */
  --fs-2xl: 1.5rem;     /* 24 · h3 */
  --fs-3xl: 2rem;       /* 32 · h2 tranquilo, cifras */
  --fs-4xl: clamp(2rem, 5vw, 3.5rem);        /* h2 cartel */
  --fs-display: clamp(3.25rem, 11vw, 8.5rem); /* h1 cartel */
  --fs-h1: var(--fs-display);
  --fs-h2: var(--fs-4xl);
  --lh-display: 0.9;
  --lh-tight: 1.15;
  --lh-base: 1.5;
  --lh-prose: 1.65;
  --tracking-display: 0.005em;
  --tracking-caps: 0.04em;
  /* roles (cambian con el tono) */
  --h1-font: var(--font-display);
  --h1-weight: 400;
  --h1-transform: uppercase;
  --h2-font: var(--font-display);
  --h2-weight: 400;
  --h2-transform: uppercase;
  --h2-lh: 0.95;
  --h3-font: var(--font-display);
  --h3-weight: 400;
  --h3-transform: uppercase;
  --h3-size: var(--fs-2xl);
  --btn-transform: uppercase;
  --btn-tracking: var(--tracking-caps);

  /* --- Espaciado (4 · 8 · 12 · 16 · 24 · 32 · 48 · 64 · 96) ----------------- */
  --s-1: 0.25rem;
  --s-2: 0.5rem;
  --s-3: 0.75rem;
  --s-4: 1rem;
  --s-5: 1.5rem;
  --s-6: 2rem;
  --s-7: 3rem;
  --s-8: 4rem;
  --s-9: 6rem;
  --section-y: var(--s-8);
  --wrap: 80rem;          /* ancho máximo de página */
  --wrap-narrow: 44rem;   /* prosa, legales, blog (≈ 75 caracteres) */
  --wrap-form: 68rem;     /* /send con columna de vista previa */
  --gutter: var(--s-4);

  /* --- Forma: radios, bordes, sombras -------------------------------------- */
  --radius: 0;
  --bw: 3px;              /* línea estructural (cabecera, celdas, tarjetas) */
  --bw-control: 3px;      /* botones, campos */
  --bw-thin: 1px;
  --shadow-hard: 6px 6px 0 var(--line);   /* único "sombreado": desplazamiento sólido */
  --shadow-none: none;

  /* --- Movimiento ------------------------------------------------------------ */
  --dur-1: 120ms;   /* hover, foco */
  --dur-2: 200ms;   /* cambios de estado, aparición de errores */
  --dur-3: 320ms;   /* paneles, vista previa */
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);

  /* --- Capas ------------------------------------------------------------------ */
  --z-header: 10;
  --z-sticky: 20;
  --z-banner: 100;

  /* Altura que reserva body mientras el aviso de cookies fijo está visible (texto a dos líneas + botones en móvil) */
  --cookie-banner-h: 8.5rem;

  /* --- Tamaños de control ----------------------------------------------------- */
  --control-h: 48px;      /* botones y campos; mínimo táctil 44 */
  --control-h-lg: 60px;   /* CTA del hero */
  --control-h-sm: 44px;

  /* --- Puntos de corte (referencia; CSS no admite variables en @media) --------
       sm 480px · md 700px · lg 900px · xl 1200px
  ---------------------------------------------------------------------------- */
}

@media (min-width: 900px) {
  :root { --gutter: var(--s-6); --section-y: var(--s-9); }
}

/* ==========================================================================
   Tono tranquilo · información, legales, blog, confirmación de pedido
   Misma hoja, mismos componentes: solo cambian estas variables.
   Uso: <html data-tone="quiet"> o cualquier contenedor.
   ========================================================================== */
[data-tone="quiet"] {
  --bw: 1px;
  --bw-control: 2px;
  --line: var(--line-soft);
  --line-control: var(--color-ink-3);    /* #6B6B6B: 5,3:1 sobre papel, 4,75:1 sobre superficie (WCAG 1.4.11 pide 3:1) */
  --shadow-hard: none;
  --fs-h1: clamp(2.25rem, 6vw, 3.5rem);
  --fs-h2: var(--fs-2xl);
  --h2-font: var(--font-body);
  --h2-weight: 700;
  --h2-transform: none;
  --h2-lh: var(--lh-tight);
  --h3-font: var(--font-body);
  --h3-weight: 700;
  --h3-transform: none;
  --h3-size: var(--fs-xl);
  --btn-transform: none;
  --btn-tracking: 0;
  --section-y: var(--s-7);
}

/* ==========================================================================
   Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: var(--s-7); }
/* Aviso de cookies fijo visible: body reserva su altura y el desplazamiento por foco o ancla lo respeta.
   Así nunca tapa «Ir al pago» ni el CTA del hero (ver components.css · cookies y MASTER.md §4). */
html:has(> body > .cookie-banner:not([hidden]):not(.cookie-banner--flow)) { scroll-padding-bottom: var(--cookie-banner-h); }
body:has(> .cookie-banner:not([hidden]):not(.cookie-banner--flow)) { padding-bottom: var(--cookie-banner-h); }
@media (min-width: 700px) { :root { --cookie-banner-h: 5rem; } }
body {
  font-family: var(--font-body);
  font-size: var(--fs-md);
  line-height: var(--lh-base);
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
/* El atributo hidden gana siempre a cualquier display de componente (opciones, avisos, grupos de tallas) */
[hidden] { display: none !important; }
a { color: inherit; text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--accent); }
button, input, select, textarea { font: inherit; color: inherit; }
/* fieldset sin el borde ni el hueco del navegador; la leyenda se comporta como un bloque normal */
fieldset { border: 0; min-width: 0; padding: 0; }
legend { display: block; float: left; width: 100%; padding: 0; margin-bottom: var(--s-2); }
legend + * { clear: both; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
::selection { background: var(--block); color: var(--color-ink); }
mark { background: var(--highlight); color: var(--color-ink); padding: 0 0.15em; }
hr { border: 0; border-top: var(--bw) solid var(--line); }
h1, h2, h3, h4, .h1, .h2, .h3 { overflow-wrap: anywhere; text-wrap: balance; }
/* Las rejillas de una columna no deben ensancharse por contenido ancho (tablas, código) */
.grid-3 > *, .steps > *, .examples > *, .cells > *, .form-layout > *, .ds-layout > *, .ds-phrases > *, .hero__grid > * { min-width: 0; }
h1, .h1 { font-family: var(--h1-font); font-weight: var(--h1-weight); text-transform: var(--h1-transform);
     font-size: var(--fs-h1); line-height: var(--lh-display); letter-spacing: var(--tracking-display); }
h2, .h2 { font-family: var(--h2-font); font-weight: var(--h2-weight); text-transform: var(--h2-transform);
     font-size: var(--fs-h2); line-height: var(--h2-lh); }
h3, .h3 { font-family: var(--h3-font); font-weight: var(--h3-weight); text-transform: var(--h3-transform);
     font-size: var(--h3-size); line-height: var(--lh-tight); }
[data-tone="quiet"] h1, [data-tone="quiet"] .h1 { line-height: 1; }
p, li { max-width: 70ch; }
small, .small { font-size: var(--fs-sm); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
}


/* ==========================================================================
   TeeHeart design system · componentes
   Solo usan tokens semánticos de tokens.css. Sin colores ni tamaños sueltos.
   ========================================================================== */

/* --- Layout básico ------------------------------------------------------- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.wrap--narrow { max-width: var(--wrap-narrow); }
.wrap--form { max-width: var(--wrap-form); }
.section { padding-block: var(--section-y); }
.section--tight { padding-block: var(--s-6); }
.stack > * + * { margin-top: var(--s-4); }
.stack--lg > * + * { margin-top: var(--s-6); }
.cluster { display: flex; flex-wrap: wrap; gap: var(--s-3); align-items: center; }
.grid-3 { display: grid; gap: var(--s-5); }
@media (min-width: 700px) { .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* --- Saltar al contenido -------------------------------------------------- */
/* Oculto por recorte (no por posición fuera de pantalla): así no asoma cuando la cabecera no está arriba del todo,
   por ejemplo con el aviso de cookies en el flujo (/send). Visible solo con el foco. */
.skip-link { position: absolute; left: var(--s-4); top: var(--s-4); z-index: calc(var(--z-banner) + 1);
  padding: var(--s-3) var(--s-4); background: var(--inverse-bg); color: var(--inverse-text); font-weight: 700; }
.skip-link:not(:focus) { width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; padding: 0; }

/* --- Cabecera -------------------------------------------------------------- */
.site-header { border-bottom: var(--bw) solid var(--line); background: var(--bg); position: relative; z-index: var(--z-header); }
.site-header__row { display: flex; align-items: stretch; justify-content: space-between; min-height: 4rem; gap: var(--s-3); }
.site-header .cluster { min-width: 0; } /* la marca puede encogerse; el CTA no empuja fuera de la ventana */
.brand { display: inline-flex; align-items: center; gap: var(--s-2); min-height: var(--control-h-sm);
  font-family: var(--font-display); font-size: var(--fs-2xl); text-transform: uppercase; letter-spacing: 0.02em; text-decoration: none; }
.brand:hover { color: var(--accent); }
.version { font-family: var(--font-body); font-size: var(--fs-xs); font-weight: 500; color: var(--text-2);
  text-transform: none; letter-spacing: 0.04em; align-self: flex-end; padding-bottom: 0.45em; }
.site-header .btn { border-top: 0; border-bottom: 0; border-right: 0; min-height: 100%; white-space: nowrap; }
/* por debajo de 400 px el CTA de cabecera estrecha su relleno: a 360 px la marca y el botón caben sin desplazamiento */
@media (max-width: 400px) { .site-header .btn { padding-inline: var(--s-3); } }
.crumbs { display: flex; align-items: center; gap: var(--s-2); font-size: var(--fs-sm); font-weight: 500; color: var(--text-2); list-style: none; }
.crumbs li + li::before { content: "/"; margin-right: var(--s-2); color: var(--text-3); }
.crumbs a { display: inline-flex; align-items: center; min-height: var(--control-h-sm); min-width: var(--control-h-sm); padding: 0 var(--s-2); margin-left: calc(-1 * var(--s-2)); }
.crumbs [aria-current] { color: var(--text); }
.crumbs { min-width: 0; }
.crumbs li { white-space: nowrap; }
.crumbs li:last-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; }

/* --- Botones ----------------------------------------------------------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  min-height: var(--control-h); padding: 0 var(--s-5); border: var(--bw-control) solid var(--line-control); border-radius: var(--radius);
  background: var(--bg); color: var(--text); font-weight: 700; font-size: var(--fs-md); line-height: 1.2;
  text-transform: var(--btn-transform); letter-spacing: var(--btn-tracking); text-decoration: none; cursor: pointer;
  transition: background var(--dur-1) var(--ease), color var(--dur-1) var(--ease), transform var(--dur-1) var(--ease); }
.btn:hover { background: var(--inverse-bg); color: var(--inverse-text); }
.btn:active { transform: translate(1px, 1px); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: 0.45; cursor: not-allowed; transform: none; }
.btn--primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn--primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: var(--on-accent); }
.btn--secondary { background: var(--bg); color: var(--text); }
.btn--ghost { border-color: transparent; background: transparent; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.btn--ghost:hover { background: transparent; color: var(--accent); }
.btn--lg { min-height: var(--control-h-lg); padding: 0 var(--s-6); font-size: var(--fs-lg); }
.btn--sm { min-height: var(--control-h-sm); padding: 0 var(--s-4); font-size: var(--fs-sm); }
.btn--block { width: 100%; }
.btn--inverse { background: transparent; color: var(--inverse-text); border-color: var(--inverse-text); }
.btn--inverse:hover { background: var(--inverse-text); color: var(--inverse-bg); }
/* botón con estado de espera: el texto cambia y aria-busy lo anuncia */
.btn[aria-busy="true"] { cursor: progress; opacity: 0.8; }

/* --- Enlaces de texto ----------------------------------------------------------- */
.link { font-weight: 700; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.link:hover { color: var(--accent); }
.link--block { display: inline-flex; align-items: center; min-height: var(--control-h-sm); }
/* Enlaces dentro de texto corrido (celdas, confianza, prosa, aviso de cookies): la zona táctil crece a 44 px
   con relleno vertical compensado por margen negativo; la línea no cambia de altura. */
.cells a, .trust dd a, .prose p a, .prose li a, .cookie-banner a, .check__text a, .form-facts p a { display: inline-block; padding-block: 0.85rem; margin-block: -0.85rem; }

/* --- Formularios --------------------------------------------------------------- */
.field { display: flex; flex-direction: column; gap: var(--s-2); }
.field + .field { margin-top: var(--s-5); }
.label { font-weight: 700; font-size: var(--fs-md); }
.label .optional { font-weight: 500; color: var(--text-2); }
.hint { font-size: var(--fs-sm); color: var(--text-2); }
/* Enlace suelto en una ayuda (p. ej. «Guía de tallas»): objetivo táctil de 44 px, como .link--block */
.hint > a:only-child { display: inline-flex; align-items: center; min-height: var(--control-h-sm); }
.input, .textarea, .select { width: 100%; min-height: var(--control-h); padding: var(--s-3) var(--s-4);
  border: var(--bw-control) solid var(--line-control); border-radius: var(--radius); background: var(--bg); color: var(--text); font-size: var(--fs-md);
  transition: border-color var(--dur-1) var(--ease), background var(--dur-1) var(--ease); }
.input::placeholder, .textarea::placeholder { color: var(--text-3); }
.input:focus-visible, .textarea:focus-visible, .select:focus-visible { outline-offset: 0; border-color: var(--text); }
.textarea { min-height: 7.5rem; resize: vertical; line-height: var(--lh-base); }
/* el mensaje se escribe tal cual se imprime (Emotivo y Pincel respetan mayúsculas y minúsculas): sin text-transform */
.textarea--message { font-family: var(--font-display); font-size: var(--fs-2xl); line-height: 1.1; min-height: 6rem; }
[data-tone="quiet"] .textarea--message { font-size: var(--fs-xl); }
.select { appearance: none; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'><path d='M2 5l6 6 6-6' fill='none' stroke='black' stroke-width='3'/></svg>");
  background-repeat: no-repeat; background-position: right var(--s-4) center; padding-right: var(--s-7); }
.field__row { display: flex; justify-content: space-between; gap: var(--s-3); align-items: baseline; }
.counter { font-size: var(--fs-sm); color: var(--text-2); font-variant-numeric: tabular-nums; }
.counter[data-state="limit"] { color: var(--error); font-weight: 700; }
/* error de campo: texto, no solo color */
.field[data-invalid="true"] .input, .field[data-invalid="true"] .textarea, .field[data-invalid="true"] .select { border-color: var(--error); }
.field-error { display: flex; gap: var(--s-2); align-items: flex-start; font-size: var(--fs-sm); font-weight: 700; color: var(--error); }
.field-error::before { content: ""; flex: 0 0 auto; width: 0.6em; height: 0.6em; margin-top: 0.45em; background: var(--error); }
.field-error:empty { display: none; }

/* Radios y casillas nativos, visibles y accesibles */
.choice-group { display: grid; gap: var(--s-3); }
.choice-group__legend { font-weight: 700; margin-bottom: var(--s-2); }
.choice { position: relative; display: flex; gap: var(--s-3); align-items: flex-start; min-height: var(--control-h);
  padding: var(--s-3) var(--s-4); border: var(--bw-control) solid var(--line-control); border-radius: var(--radius); background: var(--bg); cursor: pointer;
  transition: background var(--dur-1) var(--ease); }
.choice:hover { background: var(--surface); }
.choice input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.choice__box { flex: 0 0 auto; width: 1.25rem; height: 1.25rem; margin-top: 0.15rem; border: var(--bw-thin) solid var(--text); border-width: 2px; background: var(--bg); position: relative; }
.choice input[type="radio"] + .choice__box { border-radius: 50%; }
.choice input:checked + .choice__box::after { content: ""; position: absolute; inset: 3px; background: var(--accent); }
.choice input[type="radio"]:checked + .choice__box::after { border-radius: 50%; }
.choice input:checked ~ .choice__body { font-weight: 700; }
.choice:has(input:checked) { border-color: var(--text); background: var(--highlight); }
.choice:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 3px; }
.choice__body { display: flex; flex-direction: column; gap: 0.15rem; }
.choice__desc { font-size: var(--fs-sm); font-weight: 400; color: var(--text-2); }
/* radio como tarjeta con muestra (estilo de letra) */
.choice--card { flex-direction: column; align-items: stretch; text-align: center; padding: var(--s-4); }
.choice--card .choice__sample { font-size: var(--fs-3xl); line-height: 1; padding: var(--s-3) 0; }
.choice--card .choice__box { display: none; }
.choice--card .choice__body { align-items: center; }
/* muestras de los cuatro estilos de letra del producto (mismas familias que src/lib/design.ts) */
.choice__sample--classic { font-family: "DejaVu Sans", Verdana, Geneva, sans-serif; font-weight: 700; text-transform: uppercase; }
.choice__sample--emotive { font-family: "Abril Fatface", Georgia, serif; }
.choice__sample--poster { font-family: var(--font-display); text-transform: uppercase; }
.choice__sample--brush { font-family: var(--font-hand); }
.choice-group--cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 700px) { .choice-group--cards { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
/* segmentado (tallas) */
.segmented { display: flex; flex-wrap: wrap; gap: 0; border: var(--bw-control) solid var(--line-control); }
.segmented .choice { flex: 1 1 auto; justify-content: center; min-width: var(--control-h); border: 0; border-right: var(--bw-control) solid var(--line-control); padding: var(--s-3) var(--s-3); }
.segmented .choice:last-child { border-right: 0; }
.segmented .choice__box { display: none; }
.segmented .choice:has(input:checked) { background: var(--inverse-bg); color: var(--inverse-text); }
.segmented .choice:has(input:focus-visible) { outline-offset: -3px; }
.check { display: flex; gap: var(--s-3); align-items: flex-start; min-height: var(--control-h-sm); cursor: pointer; }
.check input { flex: 0 0 auto; width: 1.75rem; height: 1.75rem; margin-top: 0.1rem; accent-color: var(--accent); cursor: pointer; }
.check__text { font-size: var(--fs-sm); }
.field[data-invalid="true"] .check input { outline: 3px solid var(--error); outline-offset: 2px; }

/* --- Avisos y estado ---------------------------------------------------------------- */
.notice { display: grid; grid-template-columns: auto 1fr; gap: var(--s-3); padding: var(--s-4); border: var(--bw-control) solid var(--line); background: var(--bg); }
.notice::before { content: ""; width: 0.6rem; align-self: stretch; background: var(--text); }
.notice--error { background: var(--error-bg); border-color: var(--error); }
.notice--error::before { background: var(--error); }
.notice--ok { background: var(--ok-bg); border-color: var(--ok); }
.notice--ok::before { background: var(--ok); }
.notice--info { background: var(--highlight); }
.notice__title { font-weight: 700; }
.notice p { max-width: none; }
.notice a { font-weight: 700; }
.status { font-weight: 700; min-height: 1.5em; }
.status[data-state="error"] { color: var(--error); }
.status[data-state="ok"] { color: var(--ok); }
.status:empty { display: none; }
/* resumen de errores del formulario: lista de enlaces a los campos, cada uno con zona táctil de 44 px */
.notice ul { list-style: none; display: grid; gap: 0; margin-top: var(--s-1); }
.notice li a { display: inline-flex; align-items: center; min-height: var(--control-h-sm); }

/* --- Celdas de datos (precio, envío, plazo) --------------------------------------- */
.cells { display: grid; border: var(--bw) solid var(--line); list-style: none; }
@media (min-width: 700px) { .cells { grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); } }
.cells > li { padding: var(--s-4); border-bottom: var(--bw) solid var(--line); }
.cells > li:last-child { border-bottom: 0; }
@media (min-width: 700px) {
  .cells > li { border-bottom: 0; border-right: var(--bw) solid var(--line); }
  .cells > li:last-child { border-right: 0; }
}
.cells strong { display: block; font-family: var(--font-display); font-weight: 400; font-size: var(--fs-3xl); line-height: 1; text-transform: uppercase; }
[data-tone="quiet"] .cells strong { font-family: var(--font-body); font-weight: 700; font-size: var(--fs-2xl); text-transform: none; }
.cells span { display: block; margin-top: var(--s-1); color: var(--text-2); font-size: var(--fs-sm); font-weight: 500; }
.cells a { color: var(--text); }

/* --- Pasos (secuencia real) ------------------------------------------------------- */
.steps { counter-reset: step; list-style: none; display: grid; gap: var(--s-5); }
@media (min-width: 700px) { .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.steps > li { counter-increment: step; display: grid; grid-template-columns: auto 1fr; gap: var(--s-4); align-items: start; }
.steps > li::before { content: counter(step); font-family: var(--font-display); font-size: var(--fs-3xl); line-height: 1; padding: var(--s-2) var(--s-3); border: var(--bw) solid var(--line); min-width: 2.75rem; text-align: center; }
.steps h3 { margin-bottom: var(--s-1); }
.steps p { color: var(--text-2); }
/* indicador de pasos del formulario */
.stepper { display: flex; flex-wrap: wrap; gap: var(--s-2); list-style: none; font-size: var(--fs-sm); font-weight: 700; }
.stepper li { display: inline-flex; align-items: center; min-height: var(--control-h-sm); padding: 0 var(--s-3); border: var(--bw-control) solid var(--line); color: var(--text-2); }
.stepper li[aria-current="step"] { background: var(--inverse-bg); color: var(--inverse-text); border-color: var(--inverse-bg); }
.stepper li[data-done="true"] { color: var(--text); background: var(--highlight); }
/* pasos enlazados a secciones de la misma página (/send): el enlace ocupa todo el paso */
.stepper li:has(> a) { padding: 0; }
.stepper a { display: inline-flex; align-items: center; min-height: var(--control-h-sm); padding: 0 var(--s-3); color: inherit; text-decoration: none; }
.stepper li[aria-current="step"] a { color: inherit; }
.stepper a:hover { text-decoration: underline; }

/* --- Camiseta (marco de vista previa) ------------------------------------------------ */
.tee { width: 100%; max-width: 17rem; margin-inline: auto; position: relative; }
.tee > svg { width: 100%; height: auto; }
.tee--sm { max-width: 11rem; }
.tee--lg { max-width: 22rem; }
.tee--xl { max-width: 30rem; }
.tee--pedestal { background: var(--block); padding: var(--s-4); max-width: none; }
.tee--pedestal .tee__inner { max-width: 26rem; margin-inline: auto; }
.tee__img { position: absolute; left: 25%; top: 22%; width: 50%; height: 40%; object-fit: contain; mix-blend-mode: multiply; pointer-events: none; }
.tee__caption { margin-top: var(--s-3); text-align: center; font-size: var(--fs-sm); color: var(--text-2); }
/* vista previa en vivo: mientras se carga el diseño, la camiseta baja de opacidad y el pie lo dice en texto */
.tee[aria-busy="true"] > svg { opacity: 0.6; transition: opacity var(--dur-2) var(--ease); }
.note { font-family: var(--font-hand); font-size: var(--fs-2xl); color: var(--text); transform: rotate(-2deg); display: inline-block; }

/* --- Tarjeta de ejemplo (enlaza a /send prerrellenado) · exampleCard() -----------------------
   <article> con un único enlace («Usar esta frase») que se estira a toda la tarjeta con ::before.
   Así el árbol de accesibilidad y el Markdown tienen un enlace por frase con nombre único. */
.examples { display: grid; border: var(--bw) solid var(--line); }
@media (min-width: 700px) { .examples { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.example { position: relative; display: flex; flex-direction: column; padding: var(--s-5); border-bottom: var(--bw) solid var(--line);
  transition: background var(--dur-1) var(--ease); }
.example:last-child { border-bottom: 0; }
@media (min-width: 700px) {
  .example { border-bottom: 0; border-right: var(--bw) solid var(--line); }
  .example:nth-child(3n) { border-right: 0; }
  .example:nth-child(n+4) { border-top: var(--bw) solid var(--line); }
}
.example:hover, .example:focus-within { background: var(--highlight); }
.example h3 { margin-top: var(--s-3); }
.example p { color: var(--text-2); font-size: var(--fs-sm); font-weight: 500; }
.example p:has(.example__link) { margin-top: auto; padding-top: var(--s-3); }
/* móvil: la camiseta ocupa todo el ancho de la tarjeta (la frase impresa se lee mejor); de 700 px en adelante, 14 rem */
.example .tee { max-width: none; }
@media (min-width: 700px) { .example .tee { max-width: 14rem; } }
.example__link { display: inline-flex; align-items: center; gap: var(--s-1); min-height: var(--control-h-sm); color: var(--text);
  font-weight: 700; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.example__link::before { content: ""; position: absolute; inset: 0; } /* toda la tarjeta es clicable */
.example__link::after { content: "→"; } /* flecha decorativa por CSS: no entra en el nombre accesible ni en el Markdown */
.example__link:focus-visible { outline: none; }
.example:has(.example__link:focus-visible) { outline: 3px solid var(--focus); outline-offset: -3px; }

/* --- Resumen de precio ----------------------------------------------------------------- */
.price-table { width: 100%; border-collapse: collapse; }
.price-table th, .price-table td { padding: var(--s-3) 0; text-align: left; border-bottom: var(--bw-thin) solid var(--line-soft); vertical-align: top; }
.price-table th { font-weight: 500; color: var(--text-2); }
.price-table td { text-align: right; font-variant-numeric: tabular-nums; }
.price-table tfoot th, .price-table tfoot td { border-bottom: 0; border-top: var(--bw) solid var(--line); font-weight: 700; color: var(--text); font-size: var(--fs-lg); padding-top: var(--s-4); }
.price-table .vat { display: block; font-size: var(--fs-sm); color: var(--text-2); font-weight: 500; }

/* --- Tabla (tallas) ---------------------------------------------------------------------- */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; border: var(--bw) solid var(--line); font-size: var(--fs-sm); }
.table th, .table td { padding: var(--s-3) var(--s-4); border: var(--bw-thin) solid var(--line-soft); text-align: left; }
.table thead th { background: var(--surface); font-weight: 700; border-bottom: var(--bw) solid var(--line); }
.table caption { text-align: left; font-weight: 700; padding-bottom: var(--s-3); }

/* --- FAQ con <details> nativo -------------------------------------------------------------- */
.faq { border-top: var(--bw) solid var(--line); }
.faq details { border-bottom: var(--bw) solid var(--line); }
.faq summary { list-style: none; display: flex; justify-content: space-between; gap: var(--s-4); align-items: center;
  min-height: var(--control-h); padding: var(--s-3) 0; font-weight: 700; cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--font-display); font-size: var(--fs-2xl); line-height: 1; flex: 0 0 auto; }
.faq details[open] summary::after { content: "–"; }
.faq details > div { padding: 0 0 var(--s-4); color: var(--text-2); }

/* --- Prosa (blog, legales, información) -------------------------------------------------- */
.prose { line-height: var(--lh-prose); }
.prose > * + * { margin-top: var(--s-4); }
.prose h2 { margin-top: var(--s-7); }
.prose h3 { margin-top: var(--s-6); }
.prose ul, .prose ol { padding-left: 1.25rem; }
.prose li + li { margin-top: var(--s-2); }
.prose a { font-weight: 700; }
.prose a.link { color: var(--accent); }
.prose p a, .prose li a { padding-inline: 0.3rem; margin-inline: -0.3rem; }
.prose blockquote { border-left: var(--bw) solid var(--accent); padding-left: var(--s-4); color: var(--text-2); }
.prose .meta { color: var(--text-3); font-size: var(--fs-sm); }
.lead { font-size: var(--fs-lg); font-weight: 500; line-height: 1.4; max-width: 34ch; }
@media (min-width: 900px) { .lead { font-size: var(--fs-xl); } }

/* --- Pie ---------------------------------------------------------------------------------- */
.site-footer { border-top: var(--bw) solid var(--line); padding-block: var(--s-7) var(--s-6); font-size: var(--fs-sm); color: var(--text-2); }
.site-footer__grid { display: grid; gap: var(--s-6); }
@media (min-width: 700px) { .site-footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.site-footer h2 { font-family: var(--font-body); font-weight: 700; font-size: var(--fs-md); text-transform: none; color: var(--text); margin-bottom: var(--s-3); }
.site-footer ul { list-style: none; display: grid; gap: var(--s-1); }
.site-footer a { display: inline-flex; align-items: center; gap: var(--s-2); min-height: var(--control-h-sm); min-width: var(--control-h-sm); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: var(--text); }
.site-footer__brand { font-family: var(--font-display); font-size: var(--fs-2xl); text-transform: uppercase; color: var(--text); }
.site-footer__legal { margin-top: var(--s-6); padding-top: var(--s-4); border-top: var(--bw-thin) solid var(--line-soft); color: var(--text-3); font-size: var(--fs-xs); }

/* --- Aviso de cookies: compacto, dos botones iguales, nunca sobre un CTA ----------------------
   Fijo al final por defecto; body reserva --cookie-banner-h mientras se ve (tokens.css). En /send y en
   cualquier pantalla con botón de pago al final se usa .cookie-banner--flow (en el flujo, arriba). */
.cookie-banner { position: fixed; left: 0; right: 0; bottom: 0; z-index: var(--z-banner); background: var(--inverse-bg); color: var(--inverse-text);
  padding: var(--s-3) var(--gutter); font-size: var(--fs-sm); font-weight: 500; min-height: 0; }
.cookie-banner--flow { position: static; }
.cookie-banner[hidden] { display: none; }
/* Los bloques con el CTA principal nunca quedan detrás del aviso al desplazarse por ancla o foco */
.hero__actions, .form-actions { scroll-margin-bottom: var(--cookie-banner-h); }
.cookie-banner__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-3); max-width: var(--wrap); margin-inline: auto; }
.cookie-banner p { flex: 1 1 16rem; max-width: none; }
.cookie-banner a { color: inherit; }
.cookie-banner__actions { display: flex; gap: var(--s-2); }
.cookie-banner .btn { min-height: var(--control-h-sm); font-size: var(--fs-sm); padding: 0 var(--s-4); border-width: 2px; text-transform: none; letter-spacing: 0; }

/* El estilo Clásico se imprime con DejaVu Sans; en la web caemos a la familia más parecida */
.tee text[font-family*="DejaVu"] { font-family: "DejaVu Sans", Verdana, Geneva, sans-serif; }


/* ==========================================================================
   TeeHeart design system · patrones de página
   ========================================================================== */

/* --- Hero: la camiseta con el mensaje es el protagonista -------------------------- */
.hero { border-bottom: var(--bw) solid var(--line); overflow: hidden; } /* overflow: recorta el sangrado del pedestal */
.hero__grid { display: grid; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .hero__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.hero__copy { padding: var(--s-5) 0 var(--s-6); display: flex; flex-direction: column; justify-content: center; container-type: inline-size; }
/* El titular se mide con el ancho de su columna (cqi), no con el de la ventana: nunca parte una palabra */
.hero__copy h1, .hero__copy .h1 { font-size: clamp(3rem, 18cqi, 8.5rem); }
@media (min-width: 900px) { .hero__copy { padding: var(--s-8) var(--s-6) var(--s-8) 0; } }
.hero__copy h1 .accent { color: var(--accent); }
.hero__copy .lead { margin-top: var(--s-4); }
.hero__actions { margin-top: var(--s-5); display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3); }
.hero__figure { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--s-3); padding: var(--s-4); }
@media (min-width: 900px) { .hero__figure { padding: var(--s-7); border-left: var(--bw) solid var(--line); } }
.hero__figure .tee { max-width: 20rem; }
@media (min-width: 900px) { .hero__figure .tee { max-width: 30rem; } }
.hero__figure figcaption { font-size: var(--fs-sm); color: var(--text-2); text-align: center; }
/* variante cartel: pedestal amarillo detrás de la camiseta (único bloque de color del hero) */
.hero--poster .hero__figure { background: var(--block); border-top: var(--bw) solid var(--line); position: relative; }
/* el pedestal va a sangre: en móvil ocupa de borde a borde; en escritorio sigue hasta el borde derecho de la ventana */
.hero--poster .hero__figure { margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); }
@media (min-width: 900px) {
  .hero--poster .hero__figure { border-top: 0; margin-inline: 0; padding-inline: var(--s-7); }
  .hero--poster .hero__figure::after { content: ""; position: absolute; top: 0; bottom: 0; left: 100%; width: 50vw; background: var(--block); }
}
.hero--poster .hero__figure figcaption { color: var(--color-ink); }
/* variante serena: fondo neutro, rojo solo en el h1 y el botón; vale para un regalo emotivo */
.hero--calm .hero__figure { background: var(--surface); border-top: var(--bw) solid var(--line); }
@media (min-width: 900px) { .hero--calm .hero__figure { border-top: 0; } }
.hero--calm .hero__copy h1, .hero--calm .hero__copy .h1 { font-size: clamp(2.5rem, 15cqi, 6.5rem); }
.hero--calm .lead { max-width: 38ch; }
.hero--calm .hero__figure figcaption { font-style: normal; }
.hero__cells { border-top: var(--bw) solid var(--line); }
.hero__cells .cells { border: 0; }

/* --- Secciones de la home: título + bloque ------------------------------------------------- */
.examples-section h2, .steps-section h2, .trust-section h2 { margin-bottom: var(--s-6); }
.examples-section__cta { margin-top: var(--s-5); display: flex; flex-wrap: wrap; gap: var(--s-3); align-items: center; }

/* --- Bloque de confianza: hechos reales, sin insignias ------------------------------------ */
.trust { display: grid; gap: var(--s-5); border: var(--bw) solid var(--line); padding: var(--s-5); }
@media (min-width: 700px) { .trust { grid-template-columns: 1fr 1fr; padding: var(--s-6); } }
.trust dl { display: grid; gap: var(--s-3); }
.trust h3 + p { margin-top: var(--s-2); }
.trust p { color: var(--text-2); }
.trust dt { font-weight: 700; }
.trust dd { color: var(--text-2); }

/* --- Formulario /send ----------------------------------------------------------------------
   Orden del DOM = orden visual: cabecera (h1 + pasos) → vista previa → formulario.
   Móvil: vista previa compacta y pegajosa encima del mensaje (< 40 vh), para ver la frase en la camiseta
   mientras se escribe sin tapar los campos de dirección. Se muestra la zona de impresión del mockup ampliada
   al doble (clip-path + scale sobre el mismo SVG; el mockup no cambia), con el pie al lado.
   ≥ 900: columna derecha pegajosa a tamaño completo. */
/* En móvil es una columna flex, no una rejilla: un elemento pegajoso dentro de una rejilla queda confinado a su área */
.form-layout { display: flex; flex-direction: column; gap: var(--s-5); align-items: stretch; }
.form-layout__head { grid-area: head; }
.form-layout__head h1 { font-size: clamp(2.5rem, 7vw, 4.5rem); }
.form-layout__head .lead { margin-top: var(--s-3); max-width: 44ch; }
.form-layout__head .stepper { margin-top: var(--s-4); }
.form-layout__head .notice { margin-top: var(--s-4); }
.form-layout__main { grid-area: main; }
.form-layout__preview { grid-area: preview; position: sticky; top: 0; z-index: var(--z-sticky); background: var(--bg); border: var(--bw) solid var(--line); padding: var(--s-3); max-height: 40vh; }
.form-layout__preview .tee { max-width: none; margin: 0; display: grid; grid-template-columns: 8rem minmax(0, 1fr); gap: var(--s-3); align-items: center; }
.form-layout__preview .tee > svg { width: 8rem; clip-path: inset(17% 22% 37% 22%); transform: scale(1.8); transform-origin: 50% 40%; }
.form-layout__preview .tee__caption { margin-top: 0; text-align: left; }
/* sin mensaje todavía, la camiseta compacta se ve entera; con mensaje se amplía la zona de impresión */
.form-layout__preview .tee--empty > svg { clip-path: none; transform: none; }
@media (min-width: 900px) {
  .form-layout { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(18rem, 0.75fr); grid-template-areas: "head preview" "main preview"; gap: var(--s-6); align-items: start; }
  .form-layout__preview { top: var(--s-4); padding: var(--s-4); max-height: none; }
  .form-layout__preview .tee { display: block; max-width: 100%; margin-inline: auto; }
  .form-layout__preview .tee > svg { width: 100%; clip-path: none; transform: none; }
  .form-layout__preview .tee__caption { margin-top: var(--s-3); text-align: center; }
}
.form-section { padding: var(--s-5) 0; border-top: var(--bw) solid var(--line); }
.form-section > h2 { margin-bottom: var(--s-4); }
.form-section--summary { border: var(--bw) solid var(--line); padding: var(--s-5); }
.field + .form-row, .form-row + .field, .form-row + .form-row { margin-top: var(--s-5); }
@media (min-width: 700px) { .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-4); } .form-row .field + .field { margin-top: 0; } }
.form-actions { display: grid; gap: var(--s-3); margin-top: var(--s-5); }
.form-actions .fine { font-size: var(--fs-sm); color: var(--text-2); }
/* secciones del formulario: cada una es un destino de ancla (#mensaje, #entrega, #pago) por encima de la vista previa pegajosa */
.form-section { scroll-margin-top: 42vh; }
@media (min-width: 900px) { .form-section { scroll-margin-top: var(--s-5); } }
.form-section:first-of-type { border-top: 0; padding-top: 0; }
.form-section .form-section__intro { color: var(--text-2); margin-top: calc(-1 * var(--s-3)); margin-bottom: var(--s-4); }
.form-section > fieldset.field, .form-section > .field, .form-section > .form-row { margin-top: var(--s-5); }
.form-section > h2 + .field, .form-section > h2 + fieldset, .form-section > .form-section__intro + .field, .form-section > .form-section__intro + fieldset { margin-top: 0; }
.form-section .price-table { margin-top: var(--s-5); }
.form-section .summary { padding: var(--s-4); border: var(--bw-control) solid var(--line); background: var(--surface); }
.form-section .notice { margin-top: var(--s-5); }
/* hechos fuera del <form> (precio, envío, plazo): el Markdown para agentes omite los formularios, así que viven aquí */
.form-facts { margin-top: var(--s-7); padding-top: var(--s-5); border-top: var(--bw) solid var(--line); }
.form-facts h2 { margin-bottom: var(--s-4); }
.form-facts p { margin-top: var(--s-4); color: var(--text-2); font-size: var(--fs-sm); }

/* --- Artículo / página de información (tono tranquilo) -------------------------------------- */
.article { padding-block: var(--s-7); }
.article__head { padding-bottom: var(--s-5); margin-bottom: var(--s-6); border-bottom: var(--bw) solid var(--line); }
.article__head .lead { margin-top: var(--s-3); }
.article__cta { margin-top: var(--s-7); padding: var(--s-5); border: var(--bw) solid var(--line); display: flex; flex-wrap: wrap; gap: var(--s-4); align-items: center; justify-content: space-between; }
.article__cta p { max-width: 40ch; }

/* --- Blog: listado, metadatos y frases sugeridas ------------------------------------------------ */
.post-list { list-style: none; padding: 0; border-top: var(--bw) solid var(--line); }
.post-list li { padding-block: var(--s-5); border-bottom: var(--bw) solid var(--line); }
.post-list h2 { margin-block: var(--s-2) var(--s-3); }
.post-list p { color: var(--text-2); }
.post-list .link { margin-top: var(--s-3); display: inline-block; }
.post-meta { font-size: var(--fs-sm); color: var(--text-3); }
.post-phrases { margin-top: var(--s-7); padding: var(--s-5); border: var(--bw) solid var(--line); }
.post-phrases h2 { margin-top: 0; }
.post-phrases ul { list-style: none; padding: 0; margin-top: var(--s-4); display: grid; gap: var(--s-3); }
.post-phrases li { display: flex; flex-wrap: wrap; gap: var(--s-3); align-items: center; justify-content: space-between; }

/* --- Confirmación de pedido: estado en texto ---------------------------------------------------- */
.confirmation { padding-block: var(--s-7); }
.confirmation__status { display: inline-flex; align-items: center; gap: var(--s-2); padding: var(--s-2) var(--s-3); border: var(--bw-control) solid var(--line); font-weight: 700; font-size: var(--fs-sm); }
.confirmation__status[data-state="paid"] { background: var(--ok-bg); border-color: var(--ok); color: var(--ok); }
.confirmation__status[data-state="pending"] { background: var(--highlight); }
.confirmation__status { margin-bottom: var(--s-4); }
.confirmation__status[data-state="cancelled"] { background: var(--error-bg); border-color: var(--error); color: var(--error); }
.confirmation dl { display: grid; grid-template-columns: auto 1fr; gap: var(--s-2) var(--s-5); margin-top: var(--s-5); }
.confirmation dt { font-weight: 700; }
.confirmation .tee { margin-block: var(--s-5); }
.confirmation .confirmation__price { grid-template-columns: 1fr auto; margin-top: var(--s-4); padding-top: var(--s-4); border-top: var(--bw-thin) solid var(--line); }
.confirmation .confirmation__price dd { text-align: right; }
.confirmation__ref { font-size: var(--fs-sm); color: var(--text-3); margin-block: var(--s-4); }
.confirmation .cluster { margin-block: var(--s-5); }
.confirmation section { margin-top: var(--s-6); }
.confirmation section ul { padding-left: var(--s-5); }

/* --- Página /design-system (solo referencia, noindex) ------------------------------------------- */
.ds-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-6); align-items: start; }
@media (min-width: 900px) { .ds-layout { grid-template-columns: 14rem minmax(0, 1fr); } }
.ds-nav { position: sticky; top: var(--s-4); font-size: var(--fs-sm); }
@media (max-width: 899px) { .ds-nav { position: static; } .ds-nav ul { display: flex; flex-wrap: wrap; gap: var(--s-1); border-left: 0; } .ds-nav a { border: var(--bw-thin) solid var(--line-soft); } }
.ds-nav ul { list-style: none; border-left: var(--bw) solid var(--line); }
.ds-nav a { display: block; padding: var(--s-2) var(--s-3); text-decoration: none; font-weight: 500; min-height: var(--control-h-sm); display: flex; align-items: center; }
.ds-nav a:hover { background: var(--highlight); }
.ds-section { padding-block: var(--s-6); border-top: var(--bw) solid var(--line); }
.ds-section > h2 { margin-bottom: var(--s-5); }
.ds-section > h3 { margin-top: var(--s-6); margin-bottom: var(--s-3); }
.ds-demo { border: var(--bw-thin) dashed var(--line-soft); padding: var(--s-5); margin-top: var(--s-4); }
.ds-demo--flush { padding: 0; overflow: hidden; }
.ds-demo--open { overflow: visible; } /* demos con elementos pegajosos: overflow hidden los bloquearía */
.ds-demo__label { font-size: var(--fs-xs); color: var(--text-3); margin-bottom: var(--s-3); font-weight: 500; }
.ds-swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr)); gap: var(--s-3); list-style: none; }
.ds-swatch { border: var(--bw-thin) solid var(--line-soft); }
.ds-swatch__color { height: 4.5rem; border-bottom: var(--bw-thin) solid var(--line-soft); }
.ds-swatch dl { padding: var(--s-3); font-size: var(--fs-sm); }
.ds-swatch dt { font-weight: 700; }
.ds-swatch dd { color: var(--text-2); font-family: ui-monospace, "Courier New", monospace; }
.ds-pair { display: inline-flex; align-items: center; justify-content: center; min-width: 7rem; padding: var(--s-2) var(--s-3); font-weight: 700; border: var(--bw-thin) solid var(--line-soft); }
.ds-type-row { display: grid; grid-template-columns: 7rem 1fr; gap: var(--s-4); align-items: baseline; padding: var(--s-3) 0; border-bottom: var(--bw-thin) solid var(--line-soft); }
.ds-type-row code { font-size: var(--fs-sm); color: var(--text-2); }
.ds-space { display: flex; align-items: center; gap: var(--s-4); padding: var(--s-1) 0; font-size: var(--fs-sm); }
.ds-space i { display: block; height: 1rem; background: var(--accent); }
.ds-table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.ds-table th, .ds-table td { text-align: left; padding: var(--s-2) var(--s-3); border-bottom: var(--bw-thin) solid var(--line-soft); vertical-align: top; }
.ds-table th { font-weight: 700; }
.ds-table .no { color: var(--error); font-weight: 700; }
.ds-table .yes { color: var(--ok); font-weight: 700; }
.ds-table code { overflow-wrap: anywhere; }
.ds-phrases { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-4); list-style: none; }
@media (min-width: 700px) { .ds-phrases { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.ds-phrase { border: var(--bw-thin) solid var(--line-soft); padding: var(--s-4); display: flex; flex-direction: column; gap: var(--s-3); }
.ds-phrase .tee { max-width: 12rem; }
.ds-phrase__meta { font-size: var(--fs-sm); color: var(--text-2); }
.ds-phrase__meta b { color: var(--text); }
.ds-hero-demo { border: var(--bw) solid var(--line); margin-top: var(--s-4); }
.ds-hero-demo .hero { border-bottom: 0; }
code, kbd { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 0.9em; background: var(--surface); padding: 0.1em 0.35em; }
pre { overflow-x: auto; padding: var(--s-4); background: var(--surface); border: var(--bw-thin) solid var(--line-soft); font-size: var(--fs-sm); line-height: 1.5; }
pre code { background: none; padding: 0; }
