/* ============================================================
   The Purple Workshop — Catálogo interactivo
   Layout: mostrador de taller — galería de pruebas arriba, visor
   con prenda + carta de colores tipo muestrario al lado.
   Tema claro único a propósito: el entorno neutro y constante
   ayuda a juzgar los colores de prenda sin interferencia.
   ============================================================ */
:root {
  color-scheme: light;
  --paper: #F7F5FA;        /* fondo, neutro con sesgo lavanda */
  --card: #FFFFFF;
  --ink: #1D1530;          /* texto, negro violáceo */
  --muted: #6B6380;
  --line: #E3DDEC;
  --stage: #ECE9F1;        /* fondo del visor */
  --purple: #5B2D8E;       /* acento de marca (config.js lo sobreescribe) */
  --purple-ink: #FFFFFF;
  --purple-soft: #EFE7F8;
  --ok: #1E7F55;  --ok-soft: #E3F3EA;
  --warn: #A86605; --warn-soft: #FCF0DA;
  --bad: #BF2B3A;  --bad-soft: #FBE5E7;
  --wa: #1A9E52;
  --garment: #FFFFFF;
  --f-display: "Archivo", "Arial Narrow", system-ui, sans-serif;
  --f-body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --r: 14px;
  --shadow: 0 1px 2px rgba(29,21,48,.06), 0 8px 24px -12px rgba(29,21,48,.18);
  --ease: cubic-bezier(.2,.7,.2,1);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 15px/1.5 var(--f-body);
  -webkit-font-smoothing: antialiased;
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 30; background: var(--paper); }
img { max-width: 100%; }
[hidden] { display: none !important; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2.5px solid var(--purple); outline-offset: 2px; border-radius: 6px; }
svg { stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.wrap {
  width: 100%; max-width: 1240px; margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
@media (min-width: 720px) { .wrap { padding-left: max(32px, env(safe-area-inset-left, 0px)); padding-right: max(32px, env(safe-area-inset-right, 0px)); } }
.mono { font-family: var(--f-mono); font-size: .8em; letter-spacing: 0; }
.eyebrow { margin: 0; font: 600 12px/1.2 var(--f-body); letter-spacing: .12em; text-transform: uppercase; color: var(--purple); }
.eyebrow.mono { font-family: var(--f-mono); letter-spacing: .04em; font-weight: 500; }

/* ---------- barra superior ---------- */
.topbar { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.topbar__in { max-width: 1240px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-block: 10px; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
@media (min-width: 720px) { .topbar__in { padding-left: max(32px, env(safe-area-inset-left, 0px)); padding-right: max(32px, env(safe-area-inset-right, 0px)); } }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); min-width: 0; }
.brand__mark { width: 26px; height: 26px; border-radius: 7px; background: var(--purple); position: relative; flex: none; }
.brand__mark::after { content: ""; position: absolute; inset: 7px; border-radius: 50%; border: 2px solid var(--purple-ink); }
.brand__mark img { width: 100%; height: 100%; object-fit: contain; }
.brand__name { font: 800 17px/1 var(--f-display); font-stretch: 112%; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand--logo .brand__mark { background: none; width: auto; height: 32px; }
.brand--logo .brand__mark::after { display: none; }
.cartbtn { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: var(--card); border-radius: 999px; padding: 8px 10px 8px 14px; font-weight: 600; font-size: 14px; transition: border-color .2s; flex: none; }
.cartbtn:hover { border-color: var(--purple); }
.cartbtn svg { width: 19px; height: 19px; }
.cartbtn__count { min-width: 24px; height: 24px; padding: 0 7px; border-radius: 999px; background: var(--purple); color: var(--purple-ink); display: grid; place-items: center; font: 700 12px/1 var(--f-body); font-variant-numeric: tabular-nums; }
.cartbtn.bump .cartbtn__count { animation: bump .45s var(--ease); }
@keyframes bump { 40% { transform: scale(1.35); } }
@media (max-width: 420px) { .cartbtn > span { display: none; } }

/* ---------- intro ---------- */
.intro { padding-block: 40px 28px; display: grid; gap: 14px; }
.intro__title { margin: 0; font: 850 clamp(40px, 8vw, 84px)/.92 var(--f-display); font-stretch: 122%; letter-spacing: -.03em; text-wrap: balance; }
.intro__text { margin: 0; max-width: 58ch; color: var(--muted); font-size: 17px; }
.steps { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; color: var(--ink); font-weight: 600; font-size: 14px; }
.steps li { display: flex; align-items: center; gap: 8px; }
.steps span { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--purple-soft); color: var(--purple); font-size: 12px; font-weight: 700; }

/* ---------- galería ---------- */
.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); padding-bottom: 24px; }
.card { display: flex; flex-direction: column; background: var(--card); border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); text-decoration: none; color: inherit; cursor: pointer; transition: transform .35s var(--ease), box-shadow .35s var(--ease); text-align: left; padding: 0; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card__art { position: relative; aspect-ratio: 1 / 1; max-width: 100%; transition: background-color .45s var(--ease); }
.card__art img { position: absolute; inset: 11%; width: 78%; height: 78%; object-fit: contain; filter: drop-shadow(0 1px 0 rgba(0,0,0,.02)); transition: transform .5s var(--ease); }
.card:hover .card__art img { transform: scale(1.035); }
.card__colorname { position: absolute; left: 10px; bottom: 10px; font: 600 11px/1 var(--f-body); padding: 5px 8px; border-radius: 999px; background: rgba(255,255,255,.86); color: var(--ink); letter-spacing: .02em; }
.card__body { display: grid; gap: 6px; padding: 14px 16px 16px; border-top: 1px solid var(--line); }
.card__ref { font: 500 11px/1 var(--f-mono); color: var(--muted); }
.card__name { margin: 0; font: 750 18px/1.15 var(--f-display); font-stretch: 105%; }
.card__strip { display: flex; align-items: center; gap: 4px; margin-top: 4px; }
.card__strip i { width: 14px; height: 14px; border-radius: 4px; box-shadow: inset 0 0 0 1px rgba(29,21,48,.12); }
.card__strip span { margin-left: 6px; font-size: 12px; color: var(--muted); font-weight: 500; }

.foot { padding-block: 24px 40px; color: var(--muted); font-size: 13px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }
.foot p { margin: 0; max-width: 70ch; }

/* ---------- detalle ---------- */
.detail { padding-bottom: 48px; }
.detail__nav { display: flex; justify-content: space-between; align-items: center; padding-block: 14px; }
.linkbtn { display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; padding: 6px 4px; font-weight: 600; color: var(--ink); font-size: 14px; }
.linkbtn:hover { color: var(--purple); }
.linkbtn svg { width: 18px; height: 18px; }
.linkbtn--small { font-size: 13px; color: var(--muted); justify-self: center; }
.pager { display: flex; align-items: center; gap: 6px; }
.pager__pos { font: 500 12px/1 var(--f-mono); color: var(--muted); min-width: 44px; text-align: center; font-variant-numeric: tabular-nums; }
.iconbtn { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: var(--card); display: grid; place-items: center; padding: 0; }
.iconbtn:hover { border-color: var(--purple); color: var(--purple); }
.iconbtn svg { width: 18px; height: 18px; }
.iconbtn--light { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.25); color: #fff; }

.detail__grid { display: grid; gap: 28px; align-items: start; }
@media (max-width: 899px) {
  /* en celular el visor queda fijo arriba mientras se recorren los colores */
  .stage { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 57px); z-index: 5; background: var(--paper); padding-bottom: 8px; margin-inline: -4px; padding-inline: 4px; }
  .stage__frame { padding: 3% 6%; border-radius: 16px; }
  .garment { width: min(100%, calc(36vh * 600 / 640)); }
  .garment[data-view="plano"] { width: min(100%, 36vh); }
  .reg { display: none; }
}
@media (min-width: 900px) { .detail__grid { grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); gap: 40px; } .stage { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 74px); } }

.stage { display: grid; gap: 12px; min-width: 0; }
.stage__frame { position: relative; background: var(--stage); border-radius: 20px; padding: 6% 8%; display: grid; place-items: center; overflow: hidden; }
.reg { position: absolute; width: 18px; height: 18px; opacity: .45; }
.reg::before, .reg::after { content: ""; position: absolute; background: var(--muted); }
.reg::before { left: 50%; top: 0; bottom: 0; width: 1px; }
.reg::after { top: 50%; left: 0; right: 0; height: 1px; }
.reg { border-radius: 50%; box-shadow: inset 0 0 0 1px var(--muted); }
.reg--tl { top: 14px; left: 14px; } .reg--tr { top: 14px; right: 14px; } .reg--bl { bottom: 14px; left: 14px; } .reg--br { bottom: 14px; right: 14px; }

.garment { position: relative; width: 100%; max-width: 560px; aspect-ratio: 600 / 640; }
.tee { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 18px 22px rgba(29,21,48,.18)); }
.tee__body { fill: var(--garment); stroke: none; transition: fill .35s var(--ease); }
.tee__outline { fill: none; stroke: rgba(29,21,48,.16); stroke-width: 1.5; }
.tee__seam { stroke: rgba(0,0,0,.10); stroke-width: 1.2; stroke-dasharray: 3 4; fill: none; }
.tee__collar { fill: rgba(0,0,0,.09); stroke: rgba(0,0,0,.08); stroke-width: 1; }
.print { position: absolute; left: 28.5%; width: 43%; top: 18.5%; height: 47%; display: grid; place-items: start center; }
.print img { width: 100%; height: 100%; object-fit: contain; object-position: center top; transition: opacity .25s; }
.garment[data-view="plano"] { aspect-ratio: 1 / 1; background: var(--garment); border-radius: 10px; box-shadow: inset 0 0 0 1px rgba(29,21,48,.10); transition: background-color .35s var(--ease); }
.garment[data-view="plano"] .tee { display: none; }
.garment[data-view="plano"] .print { left: 9%; width: 82%; top: 9%; height: 82%; place-items: center; }
.garment[data-view="plano"] .print img { object-position: center; }

.stage__bar { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.seg { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); }
.seg button { border: 0; background: none; padding: 7px 14px; border-radius: 999px; font-weight: 600; font-size: 13px; color: var(--muted); }
.seg button[aria-checked="true"] { background: var(--ink); color: #fff; }

.panel { display: grid; gap: 18px; min-width: 0; }
.panel__title { margin: -8px 0 0; font: 850 clamp(30px, 4.6vw, 46px)/1 var(--f-display); font-stretch: 112%; letter-spacing: -.02em; text-wrap: balance; }
.picked { display: flex; align-items: center; gap: 14px; }
.picked__chip { width: 52px; height: 52px; border-radius: 12px; flex: none; box-shadow: inset 0 0 0 1px rgba(29,21,48,.14); transition: background-color .3s; }
.picked__info { display: grid; gap: 1px; min-width: 0; }
.picked__label { font-size: 12px; color: var(--muted); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.picked__info strong { font: 750 20px/1.15 var(--f-display); font-stretch: 105%; }
.picked__codes { color: var(--muted); font-size: 12.5px; }

.verdict { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; background: var(--ok-soft); color: var(--ink); border: 1px solid color-mix(in srgb, var(--ok) 25%, transparent); transition: background-color .25s, border-color .25s; }
.verdict__icon { width: 26px; height: 26px; border-radius: 50%; flex: none; display: grid; place-items: center; background: var(--ok); margin-top: 1px; }
.verdict__icon::before { content: ""; width: 9px; height: 5px; border: 2.4px solid #fff; border-top: 0; border-right: 0; transform: translateY(-1px) rotate(-45deg); }
.verdict__title { display: block; font-size: 14.5px; color: var(--ok); }
.verdict__text { margin: 2px 0 0; font-size: 14px; color: var(--ink); }
.verdict[data-s="precaucion"] { background: var(--warn-soft); border-color: color-mix(in srgb, var(--warn) 30%, transparent); }
.verdict[data-s="precaucion"] .verdict__icon { background: var(--warn); }
.verdict[data-s="precaucion"] .verdict__title { color: var(--warn); }
.verdict[data-s="no_recomendado"] { background: var(--bad-soft); border-color: color-mix(in srgb, var(--bad) 30%, transparent); }
.verdict[data-s="no_recomendado"] .verdict__icon { background: var(--bad); }
.verdict[data-s="no_recomendado"] .verdict__title { color: var(--bad); }
.verdict[data-s="precaucion"] .verdict__icon::before, .verdict[data-s="no_recomendado"] .verdict__icon::before { content: "!"; border: 0; width: auto; height: auto; transform: none; color: #fff; font: 800 15px/1 var(--f-body); }
.verdict.flash { animation: flash .5s var(--ease); }
@keyframes flash { 30% { transform: translateX(-4px); } 60% { transform: translateX(3px); } }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; border: 0; border-radius: 12px; padding: 14px 18px; font-weight: 700; font-size: 15px; text-decoration: none; transition: transform .15s, background-color .2s, opacity .2s; }
.btn:active { transform: scale(.98); }
.btn svg { width: 20px; height: 20px; }
.btn--primary { background: var(--purple); color: var(--purple-ink); width: 100%; }
.btn--primary:hover { background: color-mix(in srgb, var(--purple) 86%, #000); }
.btn--ghost { background: var(--card); color: var(--ink); border: 1px solid var(--line); }
.btn--danger { background: var(--bad); color: #fff; }
.btn--wa { background: var(--wa); color: #fff; width: 100%; }
.btn--wa:hover { background: color-mix(in srgb, var(--wa) 88%, #000); }
.btn--wa .fill { fill: #fff; stroke: none; }
.btn[aria-disabled="true"] { opacity: .45; pointer-events: none; }
.confirm { padding: 12px 14px; border-radius: 12px; background: var(--bad-soft); display: grid; gap: 10px; font-size: 14px; }
.confirm p { margin: 0; }
.confirm__row { display: flex; gap: 8px; flex-wrap: wrap; }
.confirm__row .btn { flex: 1 1 140px; padding: 10px 14px; font-size: 14px; }

/* ---------- carta de colores ---------- */
.swatchsec { display: grid; gap: 10px; border-top: 1px solid var(--line); padding-top: 16px; }
.swatchsec__head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; list-style: none; cursor: default; }
.swatchsec__head::-webkit-details-marker { display: none; }
.swatchsec__head h2 { margin: 0; font: 750 15px/1.2 var(--f-body); }
.swatchsec--all summary { cursor: pointer; }
.swatchsec--all summary h2::after { content: "+"; display: inline-block; margin-left: 8px; color: var(--purple); font-weight: 700; transition: transform .2s; }
.swatchsec--all[open] summary h2::after { transform: rotate(45deg); }
.count { font: 500 12px/1 var(--f-mono); color: var(--muted); }
.legend { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: 12px; color: var(--muted); }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 4px; vertical-align: middle; }
.dot--ok { background: var(--ok); } .dot--warn { background: var(--warn); } .dot--bad { background: var(--bad); }

.swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(68px, 1fr)); gap: 10px 8px; }
.sw { position: relative; display: grid; gap: 5px; background: none; border: 0; padding: 0; text-align: left; }
.sw__chip { aspect-ratio: 1 / 1; border-radius: 10px; box-shadow: inset 0 0 0 1px rgba(29,21,48,.14); transition: transform .2s var(--ease), box-shadow .2s; }
.sw:hover .sw__chip { transform: translateY(-2px); }
.sw[aria-checked="true"] .sw__chip { box-shadow: 0 0 0 2px var(--paper), 0 0 0 4.5px var(--purple), inset 0 0 0 1px rgba(29,21,48,.14); }
.sw__name { font-size: 11.5px; line-height: 1.15; font-weight: 600; color: var(--ink); }
.sw__st { position: absolute; top: 5px; right: 5px; width: 11px; height: 11px; border-radius: 50%; box-shadow: 0 0 0 2px rgba(255,255,255,.95); }
.sw__st[data-s="recomendado"] { background: var(--ok); }
.sw__st[data-s="precaucion"] { background: var(--warn); }
.sw__st[data-s="no_recomendado"] { background: var(--bad); }
.sw__st[data-s="no_recomendado"]::after { content: ""; position: absolute; left: 2px; right: 2px; top: 4.5px; height: 2px; background: #fff; border-radius: 1px; }
.sw[data-s="no_recomendado"] .sw__chip { background-image: linear-gradient(135deg, transparent 47%, rgba(255,255,255,.55) 47% 53%, transparent 53%); }

.features { display: grid; gap: 8px; padding: 14px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); font-size: 13px; }
.features h3 { margin: 0; font: 700 12px/1.2 var(--f-body); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.features__inks { display: flex; flex-wrap: wrap; gap: 6px; }
.features__inks i { width: 22px; height: 22px; border-radius: 6px; box-shadow: inset 0 0 0 1px rgba(29,21,48,.14); }
.features p { margin: 0; color: var(--muted); }
.disclaimer { margin: 0; font-size: 12.5px; color: var(--muted); }

/* ---------- zoom ---------- */
.zoom { position: fixed; inset: 0; z-index: 60; display: grid; grid-template-rows: auto 1fr auto; background: #120D1D; color: #fff; padding: env(safe-area-inset-top, 0px) env(safe-area-inset-right, 0px) env(safe-area-inset-bottom, 0px) env(safe-area-inset-left, 0px); }
.zoom__top { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; }
.zoom__body { overflow: auto; display: grid; place-items: center; padding: 16px; transition: background-color .3s; }
.zoom__body img { max-width: min(100%, 1200px); max-height: 100%; object-fit: contain; }
.zoom__swatches { display: flex; gap: 8px; overflow-x: auto; padding: 12px 16px 16px; scrollbar-width: thin; }
.zoom__swatches button { flex: none; width: 38px; height: 38px; border-radius: 10px; border: 0; box-shadow: inset 0 0 0 1px rgba(255,255,255,.25); position: relative; }
.zoom__swatches button[aria-checked="true"] { box-shadow: 0 0 0 2px #120D1D, 0 0 0 4px #fff; }

/* ---------- selección ---------- */
.scrim { position: fixed; inset: 0; z-index: 40; background: rgba(18,13,29,.42); backdrop-filter: blur(2px); }
.cart { position: fixed; z-index: 50; top: 0; right: 0; bottom: 0; width: min(440px, 100%); background: var(--paper); display: grid; grid-template-rows: auto 1fr auto; transform: translateX(104%); transition: transform .38s var(--ease); box-shadow: -20px 0 50px -20px rgba(29,21,48,.35); padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px); padding-right: env(safe-area-inset-right, 0px); }
.cart.open { transform: none; }
.cart__head { display: flex; justify-content: space-between; align-items: center; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.cart__head h2 { margin: 0; font: 800 22px/1 var(--f-display); font-stretch: 112%; }
.cart__body { overflow-y: auto; padding: 14px 18px; display: grid; gap: 12px; align-content: start; }
.cart__foot { padding: 14px 18px 18px; border-top: 1px solid var(--line); display: grid; gap: 10px; background: var(--card); }
.empty { text-align: center; padding: 40px 10px; color: var(--muted); display: grid; gap: 10px; justify-items: center; }
.empty strong { color: var(--ink); font: 750 18px/1.2 var(--f-display); }
.item { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 12px; padding: 10px; background: var(--card); border-radius: 12px; border: 1px solid var(--line); }
.item__art { width: 76px; height: 76px; border-radius: 9px; display: grid; place-items: center; padding: 8px; box-shadow: inset 0 0 0 1px rgba(29,21,48,.1); }
.item__art img { width: 100%; height: 100%; object-fit: contain; }
.item__info { display: grid; gap: 3px; min-width: 0; }
.item__name { font-weight: 700; font-size: 14.5px; line-height: 1.2; }
.item__meta { font: 500 11.5px/1.35 var(--f-mono); color: var(--muted); overflow-wrap: anywhere; }
.pill { justify-self: start; display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 700; padding: 3px 8px; border-radius: 999px; }
.pill[data-s="recomendado"] { background: var(--ok-soft); color: var(--ok); }
.pill[data-s="precaucion"] { background: var(--warn-soft); color: var(--warn); }
.pill[data-s="no_recomendado"] { background: var(--bad-soft); color: var(--bad); }
.item__row { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 4px; flex-wrap: wrap; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; }
.qty button { width: 30px; height: 30px; border: 0; background: none; font-size: 16px; font-weight: 700; }
.qty input { width: 38px; border: 0; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; background: none; -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.item__actions { display: flex; gap: 2px; }
.item__actions button { background: none; border: 0; font-size: 12.5px; font-weight: 600; color: var(--purple); padding: 6px; }
.item__actions button.rm { color: var(--muted); }
.field { display: grid; gap: 4px; font-size: 12.5px; font-weight: 600; color: var(--muted); }
.field input, .field textarea { border: 1px solid var(--line); background: var(--paper); border-radius: 10px; padding: 9px 11px; color: var(--ink); font-weight: 500; font-size: 14px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--purple); }
.msgfallback { width: 100%; min-height: 120px; font: 12px/1.4 var(--f-mono); border: 1px solid var(--line); border-radius: 10px; padding: 8px; }

/* ---------- aviso ---------- */
.toast { position: fixed; z-index: 70; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); background: var(--ink); color: #fff; padding: 11px 16px; border-radius: 12px; font-weight: 600; font-size: 14px; box-shadow: var(--shadow); max-width: calc(100% - 32px); animation: toastIn .3s var(--ease); }
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, 8px); } }

.view { animation: viewIn .35s var(--ease); }
@keyframes viewIn { from { opacity: .4; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
