/* Encuesta de Catemos: misma identidad que la landing (azul tinta, acento tan, Outfit + DM Sans).
   Una pregunta por pantalla, pensada para el celular. */
:root {
  --bg: #0b1822; --bg-2: #0e1f2c; --flow: #12384a; --flow-2: #0f2c3b;
  --text: #edf1f2; --muted: #a2b3bc; --line: rgb(255 255 255 / .12);
  --accent: #d4a373; --accent-hover: #e3ba8f; --on-accent: #1b130b; --err: #ffb4a8;
  --r: 20px; --ease: cubic-bezier(.16, 1, .3, 1);
  --display: "Outfit", system-ui, sans-serif; --body: "DM Sans", system-ui, sans-serif;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100dvh; background: var(--bg); color: var(--text); font: 400 17px/1.55 var(--body); overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
button, input, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; text-align: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
h1, h2 { font-family: var(--display); font-weight: 300; letter-spacing: -.02em; margin: 0; outline: none; }

.flow { position: fixed; z-index: 0; pointer-events: none; border-radius: 58% 42% 55% 45% / 46% 58% 42% 54%; background: radial-gradient(120% 90% at 30% 20%, var(--flow), var(--flow-2) 70%); }
.f1 { width: 720px; height: 620px; right: -320px; top: -220px; opacity: .9; }
.f2 { width: 560px; height: 480px; left: -300px; bottom: -260px; opacity: .6; }

/* Barra superior con progreso */
.top { position: sticky; top: 0; z-index: 5; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px; padding: 12px 16px; background: rgb(11 24 34 / .78); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 10px; font: 400 16px var(--display); letter-spacing: .2em; text-transform: uppercase; }
.brand img { width: 36px; }
.brand span { display: none; }
.progress { height: 4px; border-radius: 4px; background: rgb(255 255 255 / .08); overflow: hidden; }
.progress i { display: block; height: 100%; width: 0; background: var(--accent); border-radius: inherit; transition: width .5s var(--ease); }
.count { font-size: 13px; color: var(--muted); min-width: 52px; text-align: right; font-variant-numeric: tabular-nums; }

.stage { position: relative; z-index: 1; width: min(640px, 100% - 32px); margin: 0 auto; padding: 32px 0 64px; transition: width .3s var(--ease); }
body.wide .stage { width: min(880px, 100% - 32px); }
.screen.in > * { animation: qin .45s var(--ease) both; }
.screen.in .opt, .screen.in .sc { animation: qin .45s var(--ease) both; animation-delay: var(--d); }
.screen.in > *:nth-child(2) { animation-delay: .04s; } .screen.in > *:nth-child(3) { animation-delay: .08s; } .screen.in > *:nth-child(4) { animation-delay: .12s; }
@keyframes qin { from { opacity: 0; transform: translateY(10px); } }

.screen h2 { font-size: clamp(26px, 5.4vw, 38px); line-height: 1.15; margin-bottom: 10px; }
.hint { color: var(--muted); margin: 0 0 20px; font-size: 15px; }
.back { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; margin-bottom: 8px; color: var(--muted); font-size: 14px; font-weight: 500; }
.back:hover { color: var(--text); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 28px; border-radius: 999px; background: var(--accent); color: var(--on-accent); font-weight: 700; font-size: 16px; text-decoration: none; white-space: nowrap; transition: background .25s, transform .25s var(--ease), opacity .25s; }
.btn:hover { background: var(--accent-hover); }
.btn:active { transform: scale(.98); }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.btn.outline { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1.5px rgb(212 163 115 / .6); }
.btn.outline:hover { box-shadow: inset 0 0 0 1.5px var(--accent); color: var(--accent); }

/* Portada y cierre */
.intro { display: grid; justify-items: start; gap: 18px; padding-top: 8vh; }
.emblem { width: 110px; }
.intro h1 { font-size: clamp(38px, 8vw, 60px); line-height: 1.05; }
.intro .lead { color: var(--muted); font-size: 18px; max-width: 46ch; margin: 0; }
.facts { list-style: none; padding: 0; margin: 4px 0 8px; display: grid; gap: 8px; }
.facts li { display: flex; align-items: center; gap: 10px; font-size: 15px; }
.facts i { font-size: 20px; color: var(--accent); }

/* Opciones */
.opts { display: grid; gap: 10px; margin-top: 12px; }
.opt { display: grid; grid-template-columns: 28px 1fr auto; align-items: center; gap: 12px; min-height: 58px; padding: 12px 18px 12px 14px; border-radius: 16px; background: rgb(255 255 255 / .04); box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow .2s, background .2s, transform .2s var(--ease); }
.opt:hover { box-shadow: inset 0 0 0 1.5px rgb(212 163 115 / .6); }
.opt:active { transform: scale(.99); }
.opt .key { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; font-size: 13px; font-weight: 700; color: var(--muted); box-shadow: inset 0 0 0 1px var(--line); }
.o-check { font-size: 22px; color: var(--accent); opacity: 0; transform: scale(.6); transition: .2s var(--ease); }
.opt .o-media.ic { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px rgb(212 163 115 / .45); color: var(--accent); font-size: 21px; transition: .2s; }
.opts:not(.tiles) .opt:has(.o-media) { grid-template-columns: 40px 1fr auto; min-height: 64px; padding-block: 10px; }
.opt.sel .o-media.ic { background: var(--accent); color: var(--on-accent); box-shadow: none; }
.opt.sel { background: rgb(212 163 115 / .12); box-shadow: inset 0 0 0 2px var(--accent); }
.opt.sel .key { background: var(--accent); color: var(--on-accent); box-shadow: none; }
.opt.sel .o-check { opacity: 1; transform: none; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 24px; }
.note { color: var(--accent); font-size: 14px; margin: 0; }

/* Escala 1 a 5 */
.scale { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-top: 24px; }
.sc { aspect-ratio: 1; max-height: 84px; border-radius: 16px; font: 300 30px var(--display); background: rgb(255 255 255 / .04); box-shadow: inset 0 0 0 1px var(--line); transition: .2s var(--ease); }
.sc:hover { box-shadow: inset 0 0 0 1.5px rgb(212 163 115 / .6); }
.sc.sel { background: var(--accent); color: var(--on-accent); box-shadow: none; }
.scale-lbl { display: flex; justify-content: space-between; margin-top: 10px; font-size: 14px; color: var(--muted); }

/* La idea */
.concept { display: grid; gap: 22px; }
.concept img { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: var(--r); box-shadow: inset 0 0 0 1px var(--line); }
.concept p { color: var(--muted); margin: 0 0 12px; }
.concept .btn { margin-top: 8px; }
.tag { color: var(--accent) !important; font-weight: 700; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 8px !important; }

/* Campos */
.fields { display: grid; gap: 10px; margin-top: 16px; }
.fields label, .fields legend { font-weight: 700; font-size: 15px; margin-top: 8px; }
.fields small { font-weight: 400; color: var(--muted); }
.fields fieldset { border: 0; padding: 0; margin: 0; }
.fields input:not([type]), .fields input[type=email], .fields textarea, .money input { width: 100%; min-height: 52px; padding: 12px 18px; border-radius: 14px; border: 1.5px solid rgb(255 255 255 / .28); background: rgb(5 12 18 / .55); font-size: 17px; }
.fields textarea { resize: vertical; min-height: 96px; }
.fields input:focus, .fields textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgb(212 163 115 / .25); }
.money { position: relative; }
.money span { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 17px; }
.money input { padding-left: 34px; font-variant-numeric: tabular-nums; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line); background: rgb(255 255 255 / .04); font-weight: 500; font-size: 15px; cursor: pointer; transition: .2s; }
.chip input:checked + span { background: var(--accent); color: var(--on-accent); box-shadow: none; }
.chip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 3px; }
.check { display: grid; grid-template-columns: 24px 1fr; gap: 12px; align-items: start; font-weight: 500 !important; margin-top: 12px !important; }
.check input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--accent); }
.help { color: var(--muted); font-size: 14px; margin: 0; }
.err { color: var(--err); font-size: 14px; margin: 0; min-height: 1em; }
.fields .btn { justify-self: start; margin-top: 12px; }
.nojs { position: relative; z-index: 1; text-align: center; padding: 40px 16px; }

@media (min-width: 640px) {
  .top { padding: 14px 32px; }
  .brand span { display: inline; }
  .stage { padding-top: 56px; }
  .opts.wide { grid-template-columns: 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* Mosaicos con foto */
.opts.tiles { grid-template-columns: repeat(2, 1fr); gap: 12px; }
.tiles .opt { position: relative; grid-template-columns: 1fr; align-content: start; gap: 10px; padding: 8px 8px 14px; min-height: 0; border-radius: 18px; }
.tiles .o-media { display: block; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: #070d12; }
.tiles .o-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.tiles .opt:hover .o-media img { transform: scale(1.06); }
.tiles .o-media.ic { display: grid; place-items: center; width: auto; height: auto; border-radius: 12px; box-shadow: none; background: radial-gradient(80% 90% at 50% 20%, rgb(212 163 115 / .18), rgb(212 163 115 / .03) 70%), #0c1822; font-size: 46px; color: var(--accent); }
.tiles .opt.sel .o-media.ic { background: rgb(212 163 115 / .25); color: var(--accent); }
.tiles .o-txt { padding-inline: 6px; font-weight: 500; font-size: 15px; line-height: 1.3; }
.tiles .o-check { position: absolute; top: 14px; right: 14px; font-size: 28px; background: var(--on-accent); border-radius: 50%; }
.tiles .opt.sel { box-shadow: inset 0 0 0 2px var(--accent); }

/* Escala con caritas */
.sc { display: grid; place-items: center; align-content: center; gap: 4px; max-height: none; aspect-ratio: auto; padding: 14px 0 10px; }
.sc i { font-size: 34px; color: var(--accent); transition: transform .3s var(--ease); }
.sc span { font: 400 15px var(--body); color: var(--muted); }
.sc:hover i { transform: scale(1.12); }
.sc.sel i, .sc.sel span { color: var(--on-accent); }

/* Portada y cierre con foto */
.intro-cup { margin: 0 0 4px; width: min(300px, 70vw); aspect-ratio: 1; border-radius: 50%; overflow: hidden; justify-self: center; box-shadow: 0 40px 70px -30px rgb(0 0 0 / .9); }
.intro-cup img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.4); }
.intro:has(.intro-cup) { padding-top: 2vh; }
.intro:has(.intro-cup) .emblem { width: 84px; margin-top: -58px; position: relative; background: var(--bg); border-radius: 50%; padding: 6px; justify-self: center; }
.price-card { display: grid; grid-template-columns: 104px 1fr; gap: 18px; align-items: center; margin-bottom: 6px; }
.price-card img { width: 104px; aspect-ratio: 1; object-fit: cover; border-radius: 16px; box-shadow: inset 0 0 0 1px var(--line); }
.price-card h2 { font-size: clamp(22px, 4.6vw, 32px); }
.price-card .hint { margin: 6px 0 0; }
.band { margin: 0 0 18px; border-radius: var(--r); overflow: hidden; }
.band img { width: 100%; aspect-ratio: 16/5; object-fit: cover; opacity: .9; }

@media (min-width: 640px) {
  .opts.tiles { grid-template-columns: repeat(3, 1fr); }
  .opts.tiles.n4 { grid-template-columns: repeat(4, 1fr); }
  .intro { grid-template-columns: 1fr; }
  .price-card { grid-template-columns: 150px 1fr; gap: 24px; } .price-card img { width: 150px; }
}
@media (min-width: 900px) {
  .intro:has(.intro-cup) { grid-template-columns: 1fr 300px; column-gap: 48px; align-items: center; }
  .intro:has(.intro-cup) .intro-cup { grid-column: 2; grid-row: 1 / span 6; }
  .intro:has(.intro-cup) .emblem { margin-top: 0; padding: 0; background: none; justify-self: start; }
  body:has(.intro-cup) .stage { width: min(900px, 100% - 32px); }
}
/* Preguntas con muchas fotos: 3 columnas en el celular y "Continuar" siempre a mano */
@media (max-width: 639px) {
  .opts.tiles.n9 { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .tiles.n9 .opt { padding: 5px 5px 10px; border-radius: 14px; gap: 6px; }
  .tiles.n9 .o-media { border-radius: 10px; }
  .tiles.n9 .o-txt { font-size: 12.5px; padding-inline: 3px; }
  .tiles.n9 .o-check { top: 9px; right: 9px; font-size: 22px; }
}
.actions { position: sticky; bottom: 0; z-index: 3; padding: 14px 0 10px; margin-bottom: -10px; background: linear-gradient(180deg, transparent, var(--bg) 38%); }
.opt.sel { box-shadow: inset 0 0 0 2px var(--accent) !important; }
.screen h1:focus-visible, .screen h2:focus-visible, .screen h1:focus, .screen h2:focus { outline: none; }

/* Precios: una tarjeta por monto, cifra grande con $ y CLP como parte del campo */
.fields.prices { gap: 12px; }
.price-box { display: grid; gap: 10px; padding: 16px; border-radius: var(--r); background: rgb(255 255 255 / .04); box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow .2s, background .2s; }
.price-box:focus-within { box-shadow: inset 0 0 0 1.5px var(--accent); background: rgb(212 163 115 / .06); }
.price-box label { display: flex; align-items: center; gap: 10px; margin: 0; font-weight: 700; font-size: 15px; }
.price-box label i { display: grid; place-items: center; width: 34px; height: 34px; flex: none; border-radius: 50%; box-shadow: inset 0 0 0 1.5px rgb(212 163 115 / .45); color: var(--accent); font-size: 18px; }
.fields .money { position: static; display: flex; align-items: baseline; gap: 8px; padding: 6px 16px 8px; border-radius: 14px; background: rgb(5 12 18 / .55); border: 1.5px solid rgb(255 255 255 / .2); }
.fields .money:focus-within { border-color: var(--accent); }
.fields .money .cur { position: static; transform: none; font: 300 30px var(--display); color: var(--accent); }
.fields .money input { flex: 1; min-width: 0; min-height: 52px; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none !important; font: 300 34px var(--display); letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.fields .money input:focus { outline: none; }
.fields .money .unit { position: static; transform: none; font-size: 13px; font-weight: 700; letter-spacing: .08em; color: var(--muted); }
.range { display: grid; gap: 10px; padding: 14px 16px; border-radius: var(--r); background: rgb(212 163 115 / .1); animation: qin .35s var(--ease) both; }
.range[hidden] { display: none; }
.range-line { position: relative; height: 12px; }
.range-line::before { content: ""; position: absolute; left: 12%; right: 12%; top: 50%; height: 2px; transform: translateY(-50%); background: var(--accent); border-radius: 2px; }
.range-line i { position: absolute; top: 0; width: 12px; height: 12px; border-radius: 50%; background: var(--accent); }
.range-line .lo { left: calc(12% - 6px); } .range-line .hi { right: calc(12% - 6px); }
.range p { margin: 0; font-size: 15px; text-align: center; }
.range strong { color: var(--accent); font-weight: 700; }

/* Marca: Catemos by Alpahue */
.brand-txt { display: none; line-height: 1.05; }
.brand-txt small { display: block; font: 500 9.5px var(--body); letter-spacing: .22em; text-transform: uppercase; color: var(--accent); }
@media (min-width: 640px) { .brand .brand-txt { display: grid; } }
.by { margin: -6px 0 0; font: 400 15px var(--display); letter-spacing: .18em; text-transform: uppercase; }
.by span { color: var(--accent); letter-spacing: .1em; text-transform: none; font-size: 14px; }
.intro:has(.intro-cup) .by { justify-self: center; }
@media (min-width: 900px) { .intro:has(.intro-cup) .by { justify-self: start; } }

/* Tarjeta del correo (opcional y privada) y confirmación final */
.mail-card { display: grid; gap: 10px; margin-top: 10px; padding: 16px; border-radius: var(--r); background: rgb(255 255 255 / .04); box-shadow: inset 0 0 0 1px var(--line); }
.mail-card label { margin-top: 0 !important; }
.mail-title { display: flex; align-items: center; gap: 10px; margin: 0; font-weight: 700; }
.mail-title i { font-size: 22px; color: var(--accent); }
.mail-title small { margin-left: auto; font-weight: 500; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.mail-card.done { justify-self: stretch; background: rgb(212 163 115 / .1); box-shadow: inset 0 0 0 1px rgb(212 163 115 / .4); }
.mail-card.done strong { color: var(--accent); word-break: break-all; }
.mail-card .link { justify-self: start; min-height: 40px; color: var(--muted); font-size: 14px; font-weight: 500; text-decoration: underline; text-underline-offset: 4px; }
.mail-card .link:hover { color: var(--text); }
.mail-card.done .mail-title { display: grid; grid-template-columns: 22px 1fr; column-gap: 10px; align-items: start; }
.mail-card.done .mail-title strong { grid-column: 2; display: block; }

/* Bienvenida compacta sobre la primera pregunta (reemplaza a la portada) */
.welcome { display: grid; grid-template-columns: 76px 1fr; gap: 16px; align-items: center; margin: 4px 0 26px; padding: 14px 18px 14px 14px; border-radius: 999px; background: linear-gradient(160deg, rgb(255 255 255 / .09), rgb(255 255 255 / .03)); box-shadow: inset 0 0 0 1px rgb(212 163 115 / .4); }
.w-cup { display: block; width: 76px; height: 76px; border-radius: 50%; overflow: hidden; box-shadow: 0 14px 26px -12px rgb(0 0 0 / .9); }
.w-cup img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.4); }
.w-title { margin: 0 0 6px; font: 300 22px/1.2 "Outfit", sans-serif; letter-spacing: -.01em; }
.w-title strong { font-weight: 500; color: var(--accent); }
.w-facts { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 0; font-size: 13.5px; color: var(--muted); }
.w-facts span { display: inline-flex; align-items: center; gap: 6px; }
.w-facts i { font-size: 17px; color: var(--accent); }
@media (max-width: 639px) {
  .welcome { border-radius: 28px; grid-template-columns: 64px 1fr; gap: 14px; padding: 12px 14px 12px 12px; margin-bottom: 22px; }
  .w-cup { width: 64px; height: 64px; }
  .w-title { font-size: 19px; }
  .w-facts { gap: 2px 12px; font-size: 13px; }
}
@media (min-width: 900px) {
  .welcome { grid-template-columns: 96px 1fr; padding: 16px 28px 16px 16px; margin-bottom: 32px; }
  .w-cup { width: 96px; height: 96px; }
  .w-title { font-size: 28px; }
  .w-facts { font-size: 15px; gap: 4px 22px; }
}
