/* Asistente público. Tokens tomados del tema de tattooslucy.es */
:root {
  --ink: #12100e;
  --ink-2: #1c1916;
  --ink-3: #2a2521;
  --bone: #ede5d8;
  --bone-2: #e3d9c8;
  --mute: #a99f92;
  --line: rgba(237, 229, 216, .14);
  --accent: #e04a36;
  --accent-deep: #a8281a;
  --f-display: "Instrument Serif", "Times New Roman", serif;
  --f-text: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 2px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100dvh;
  background: var(--ink);
  color: var(--bone);
  font: 400 1.0625rem/1.55 var(--f-text);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }

.sr-only, .hp {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.shell {
  width: min(100%, 640px);
  margin: 0 auto;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  padding: 0 max(1.25rem, env(safe-area-inset-left)) env(safe-area-inset-bottom);
}

.top {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.brand { font-family: var(--f-display); font-size: 1.6rem; text-decoration: none; letter-spacing: -.01em; }
.lang select {
  background: transparent; border: 1px solid var(--line); border-radius: 999px;
  padding: .35rem .9rem; font-size: .8125rem; letter-spacing: .08em; cursor: pointer;
}
.lang option { background: var(--ink-2); }

.progress { height: 2px; background: var(--line); margin-bottom: clamp(1.5rem, 5vw, 2.5rem); }
.progress span { display: block; height: 100%; width: 0; background: var(--accent); transition: width .5s var(--ease); }

.stage { flex: 1; }
.card { padding-bottom: 2rem; }
.enter { animation: enter .45s var(--ease) both; }
@keyframes enter { from { opacity: 0; transform: translateY(12px); } }

.eyebrow { margin: 0 0 .5rem; font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--mute); }
h1, h2 { font-family: var(--f-display); font-weight: 400; line-height: 1.02; letter-spacing: -.015em; margin: 0 0 .75rem; outline: none; }
h1 { font-size: clamp(3rem, 2rem + 6vw, 4.75rem); }
h1 em { color: var(--accent); }
h2 { font-size: clamp(2.1rem, 1.6rem + 2.6vw, 3rem); }
h3 { font-size: .8125rem; letter-spacing: .12em; text-transform: uppercase; margin: 2rem 0 .25rem; font-weight: 600; }
.sub { color: var(--mute); margin: 0 0 1.75rem; max-width: 46ch; }
.hint { color: var(--mute); font-size: .9375rem; margin: 0 0 1rem; }

.card--intro { padding-top: clamp(1rem, 8vh, 5rem); }
.card--intro .sub { font-size: 1.1875rem; }

/* Opciones */
.options { display: flex; flex-wrap: wrap; gap: .6rem; }
.options--stack { flex-direction: column; }
.options--grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; }

.option {
  appearance: none; cursor: pointer; text-align: left;
  background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--radius);
  padding: .85rem 1.1rem; font-size: 1rem;
  transition: border-color .2s, background .2s, transform .2s var(--ease);
}
.option:hover { border-color: rgba(237, 229, 216, .4); }
.option:active { transform: scale(.98); }
.option:focus-visible, .btn:focus-visible, .link:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.option.is-on { border-color: var(--accent); background: rgba(224, 74, 54, .12); }

.option--service { display: grid; gap: .2rem; padding: 1.25rem 1.35rem; }
.option--service strong { font-family: var(--f-display); font-weight: 400; font-size: 1.85rem; line-height: 1; }
.option--service span { color: var(--mute); font-size: .9375rem; }

.option--visual { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.option--visual img, .option__blank { aspect-ratio: 4 / 5; width: 100%; height: auto; object-fit: cover; filter: grayscale(.25); transition: filter .3s, transform .5s var(--ease); }
.option--visual:hover img { filter: none; transform: scale(1.03); }
.option__blank { display: grid; place-items: center; font-family: var(--f-display); font-size: 3rem; color: var(--mute); background: var(--ink-3); }
.option__label { padding: .55rem .7rem .65rem; font-size: .875rem; line-height: 1.25; }

/* Campos */
textarea, .field input {
  width: 100%; background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--radius);
  padding: .85rem 1rem; font-size: 1rem; resize: vertical;
}
textarea:focus, .field input:focus { outline: none; border-color: var(--bone); }
::placeholder { color: rgba(169, 159, 146, .7); }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-size: .875rem; margin-bottom: .35rem; color: var(--mute); }
.check { display: flex; gap: .7rem; align-items: flex-start; margin: .9rem 0; font-size: .9375rem; }
.check input { width: 1.25rem; height: 1.25rem; margin: .15rem 0 0; accent-color: var(--accent); flex: none; }
.check a { text-underline-offset: 3px; }

.thumbs { display: grid; grid-template-columns: repeat(5, 1fr); gap: .5rem; margin-bottom: .75rem; }
.thumbs:empty { display: none; }
.thumb { position: relative; margin: 0; aspect-ratio: 1; }
.thumb img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); }
.thumb__x {
  position: absolute; top: -6px; right: -6px; width: 24px; height: 24px; border-radius: 50%;
  border: 0; background: var(--bone); color: var(--ink); cursor: pointer; line-height: 1; font-size: 1rem;
}

/* Botones */
.btn {
  --bg: transparent; --fg: var(--bone);
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 48px; padding: .75rem 1.5rem; border-radius: 999px;
  background: var(--bg); color: var(--fg); border: 1px solid transparent;
  font-weight: 600; font-size: .9375rem; letter-spacing: .02em; text-decoration: none; cursor: pointer;
  transition: background .25s, color .25s, transform .2s var(--ease);
}
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .6; cursor: progress; }
.btn--accent { --bg: var(--accent); --fg: var(--ink); }
.btn--accent:hover { --bg: var(--bone); }
.btn--ghost { border-color: var(--line); }
.btn--ghost:hover { border-color: var(--bone); }
.btn--big { width: 100%; min-height: 58px; font-size: 1.0625rem; }
.btn--upload { cursor: pointer; }
.btn--back { width: 100%; margin-top: .75rem; }
.btn--wa::before {
  content: ""; width: 20px; height: 20px; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 0 0-8.6 15.1L2 22l5-1.3A10 10 0 1 0 12 2zm5.2 13.9c-.2.6-1.3 1.2-1.8 1.2-.5.1-1 .2-3.3-.7-2.8-1.1-4.5-4-4.7-4.2-.1-.2-1.1-1.5-1.1-2.8s.7-2 1-2.3c.2-.3.5-.3.7-.3h.5c.2 0 .4 0 .6.5l.9 2.1c.1.2.1.3 0 .5l-.3.5-.4.4c-.1.2-.3.3-.1.6.2.3.8 1.3 1.7 2.1 1.2 1 2.1 1.4 2.4 1.5.3.2.5.1.6-.1l.9-1c.2-.3.4-.2.6-.1l2 .9c.3.2.5.2.5.4.1.1.1.7-.1 1.3z'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 0 0-8.6 15.1L2 22l5-1.3A10 10 0 1 0 12 2zm5.2 13.9c-.2.6-1.3 1.2-1.8 1.2-.5.1-1 .2-3.3-.7-2.8-1.1-4.5-4-4.7-4.2-.1-.2-1.1-1.5-1.1-2.8s.7-2 1-2.3c.2-.3.5-.3.7-.3h.5c.2 0 .4 0 .6.5l.9 2.1c.1.2.1.3 0 .5l-.3.5-.4.4c-.1.2-.3.3-.1.6.2.3.8 1.3 1.7 2.1 1.2 1 2.1 1.4 2.4 1.5.3.2.5.1.6-.1l.9-1c.2-.3.4-.2.6-.1l2 .9c.3.2.5.2.5.4.1.1.1.7-.1 1.3z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.link { background: none; border: 0; padding: 0; color: var(--mute); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; font-size: .875rem; }
.link:hover { color: var(--bone); }

.nav { display: flex; justify-content: space-between; gap: .75rem; margin-top: 2rem; }

/* Resumen */
.summary { margin: 0 0 1.5rem; border-top: 1px solid var(--line); }
.summary__row { display: grid; grid-template-columns: 9.5rem 1fr; gap: 1rem; padding: .85rem 0; border-bottom: 1px solid var(--line); }
.summary dt { color: var(--mute); font-size: .875rem; }
.summary dd { margin: 0; display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; word-break: break-word; }

.error { color: #ff8a78; min-height: 1.4em; margin: .75rem 0; font-size: .9375rem; }
.error:empty { min-height: 0; margin: 0; }

.card--done { padding-top: clamp(1rem, 8vh, 4rem); text-align: center; }
.card--done .sub { margin-inline: auto; }
.card--done .link { margin-top: 1.25rem; }

.closed { padding: 2rem 0; font-size: 1.1875rem; color: var(--bone-2); }

.foot { padding: 2rem 0 1.5rem; font-size: .8125rem; color: var(--mute); border-top: 1px solid var(--line); }

@media (max-width: 420px) {
  .options--grid { gap: .45rem; }
  .option--visual img, .option__blank { aspect-ratio: 1; }
  .option__label { padding: .45rem .5rem .5rem; font-size: .8125rem; }
  .summary__row { grid-template-columns: 1fr; gap: .2rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
