/* ==========================================================================
   Cafe de Colombia - pagina del QR (Doris Ortiz)
   Misma tipografia de la marca (Cormorant Garamond + Jost) sobre un fondo
   espresso oscuro, calido, con el naranja del logo y un dorado suave.
   ========================================================================== */

@font-face{font-family:"Cormorant Garamond";font-style:normal;font-weight:300 700;font-display:swap;src:url(../assets/fonts/CormorantGaramond-normal-latin.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"Cormorant Garamond";font-style:normal;font-weight:300 700;font-display:swap;src:url(../assets/fonts/CormorantGaramond-normal-latin-ext.woff2) format("woff2");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:"Cormorant Garamond";font-style:italic;font-weight:300 700;font-display:swap;src:url(../assets/fonts/CormorantGaramond-italic-latin.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"Cormorant Garamond";font-style:italic;font-weight:300 700;font-display:swap;src:url(../assets/fonts/CormorantGaramond-italic-latin-ext.woff2) format("woff2");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:"Jost";font-style:normal;font-weight:300 600;font-display:swap;src:url(../assets/fonts/Jost-normal-latin.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"Jost";font-style:normal;font-weight:300 600;font-display:swap;src:url(../assets/fonts/Jost-normal-latin-ext.woff2) format("woff2");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}

/* Colores de cada marca: se animan al cambiar de cafe (por eso van registrados). */
@property --accent { syntax: "<color>"; inherits: true; initial-value: #e8751a; }
@property --glow { syntax: "<color>"; inherits: true; initial-value: #4a2a12; }
@property --deep { syntax: "<color>"; inherits: true; initial-value: #140d08; }

:root {
  --bg: #140d08;
  --bg-2: #1e150e;
  --surface: rgba(255, 240, 220, 0.055);
  --surface-2: rgba(255, 240, 220, 0.09);
  --line: rgba(255, 236, 210, 0.14);
  --text: #f6ead9;
  --muted: #c4b097;
  --faint: #8f7c66;
  --gold: #e6b866;
  --orange: #e8751a;
  --accent: #e8751a;
  --glow: #4a2a12;
  --deep: #140d08;

  --f-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --f-ui: "Jost", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --r: 18px;
  --r-s: 12px;
  --pad: 20px;
  --top-h: 56px;
  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --ease: cubic-bezier(0.22, 0.8, 0.26, 1);
  --ease-back: cubic-bezier(0.34, 1.4, 0.5, 1);
  --tilt-x: 0;
  --tilt-y: 0;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html, body { height: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--f-ui);
  font-size: 16px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior-y: none;
}
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
h1, h2, h3, p { margin: 0; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

#app {
  position: relative;
  width: 100%;
  max-width: 480px;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0 auto;
  isolation: isolate;
  overflow-x: clip; /* nada que se asome por los lados (bolsas giradas) ensancha la pagina */
  transition: --accent 0.7s var(--ease), --glow 0.7s var(--ease), --deep 0.7s var(--ease);
}

/* Fondo: un resplandor del color de la marca sobre espresso. */
.bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(120% 62% at 50% -6%, var(--glow) 0%, transparent 68%),
    radial-gradient(90% 50% at 50% 108%, color-mix(in srgb, var(--glow) 55%, transparent) 0%, transparent 70%),
    linear-gradient(180deg, var(--deep) 0%, #0b0705 100%);
}
.bg::after {
  /* grano fino de pelicula: quita el aspecto "plano" de los degradados en pantallas OLED */
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.05;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='140' height='140'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
.ambient { position: fixed; inset: 0; z-index: -1; pointer-events: none; }

/* ---------- Barra superior ---------- */
.top {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  height: calc(var(--top-h) + var(--safe-t));
  padding: var(--safe-t) 14px 0;
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 20;
  transition: background 0.3s, backdrop-filter 0.3s;
}
.top.is-solid {
  background: color-mix(in srgb, var(--deep) 78%, transparent);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.top__logo { height: 30px; width: auto; }
.top__back {
  width: 40px; height: 40px; margin-left: -6px;
  display: grid; place-items: center;
  border-radius: 50%;
}
.top__back:active { background: var(--surface-2); }
.top__name {
  font-family: var(--f-display);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.3s, transform 0.3s var(--ease);
}
.top.is-solid .top__name { opacity: 1; transform: none; }
.top__lang {
  margin-left: auto;
  height: 36px;
  padding: 0 12px 0 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
}
.top__lang:active { background: var(--surface-2); }

.stage { position: relative; }
/* Mientras corre la entrada, la pagina espera debajo sin verse. */
#app.is-intro .stage, #app.is-intro .top { opacity: 0; }
#app .stage, #app .top { transition: opacity 0.5s ease; }

/* ---------- Textos comunes ---------- */
.kicker {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}
.display {
  font-family: var(--f-display);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.01em;
}
.muted { color: var(--muted); }

/* ---------- Inicio ---------- */
.home {
  height: 100vh;
  height: 100dvh;
  min-height: 560px;
  padding: calc(var(--top-h) + var(--safe-t) + 6px) 0 calc(14px + var(--safe-b));
  display: flex;
  flex-direction: column;
}
.home__head { padding: 6px var(--pad) 0; text-align: center; }
.home__title { font-size: clamp(40px, 12.5vw, 56px); margin-top: 6px; }
.home__hint {
  margin-top: 8px;
  font-size: 14px;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.home__hint svg { animation: nudge 1.8s var(--ease) infinite; }
@keyframes nudge { 0%, 100% { transform: translateX(-4px); } 50% { transform: translateX(4px); } }

.home__flow {
  position: relative;
  flex: 1 1 0;
  min-height: 0;
  width: 100%;
  margin-top: 4px;
  touch-action: pan-y;
}
/* Respaldo sin el efecto de carrusel: fila que se desliza. */
.flow-basic {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 0 22%;
  scrollbar-width: none;
}
.flow-basic::-webkit-scrollbar { display: none; }
.flow-basic button { flex: 0 0 100%; height: 100%; scroll-snap-align: center; display: grid; place-items: center; }
.flow-basic img { height: 92%; width: auto; max-width: 100%; object-fit: contain; filter: drop-shadow(0 24px 30px rgba(0, 0, 0, 0.55)); }

.home__info {
  flex: 0 0 auto;
  padding: 0 var(--pad);
  text-align: center;
  min-height: 128px;
}
.home__brand { font-size: clamp(30px, 9vw, 40px); }
.home__tag { margin-top: 2px; font-size: 15px; color: var(--muted); min-height: 1.45em; text-wrap: balance; }
.home__go {
  margin-top: 10px;
  height: 46px;
  padding: 0 8px 0 20px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  border-radius: 999px;
  background: var(--accent);
  color: #150c06;
  font-weight: 600;
  font-size: 15px;
  box-shadow: 0 10px 30px -8px color-mix(in srgb, var(--accent) 70%, transparent);
  transition: transform 0.15s var(--ease), background 0.7s var(--ease);
}
.home__go:active { transform: scale(0.96); }
.home__go i {
  width: 32px; height: 32px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.18);
  font-style: normal;
}
.swap { animation: swap-in 0.42s var(--ease) both; }
@keyframes swap-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.dots { display: flex; justify-content: center; gap: 7px; margin: 14px 0 0; }
.dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--line); transition: width 0.3s var(--ease), background 0.3s; }
.dots i.is-on { width: 22px; border-radius: 4px; background: var(--accent); }

.home__foot { flex: 0 0 auto; padding: 14px var(--pad) 0; display: grid; gap: 4px; }
.cta-card {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  transition: transform 0.15s var(--ease), background 0.2s;
}
.cta-card:active { transform: scale(0.98); background: var(--surface-2); }
.cta-card__ico {
  flex: 0 0 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: color-mix(in srgb, var(--gold) 18%, transparent);
  color: var(--gold);
}
.cta-card b { display: block; font-weight: 500; font-size: 15px; }
.cta-card span { display: block; font-size: 13px; color: var(--muted); }
.cta-card em { margin-left: auto; font-style: normal; color: var(--gold); font-size: 20px; }
.home__row { display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; }
.pill-gold {
  height: 36px;
  padding: 0 14px 0 16px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  background: var(--gold);
  color: #1a110a;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 10px 22px -10px color-mix(in srgb, var(--gold) 80%, transparent);
  transition: transform 0.15s var(--ease);
}
.pill-gold:active { transform: scale(0.96); }
.btn--gold svg { flex: 0 0 auto; }
a.btn { text-decoration: none; }
.link-quiet {
  justify-self: center;
  padding: 8px 12px;
  font-size: 13px;
  color: var(--muted);
  text-decoration: underline;
  text-decoration-color: var(--line);
  text-underline-offset: 4px;
}

/* ---------- Pagina de una marca ---------- */
.brand { padding: calc(var(--top-h) + var(--safe-t)) 0 calc(28px + var(--safe-b)); }
.sec { padding: 34px var(--pad) 0; }
.sec__title { margin-bottom: 14px; }

.hero { padding: 4px var(--pad) 0; text-align: center; }
.hero__bag {
  position: relative;
  height: min(52vh, 430px);
  margin: 0 auto;
  display: grid;
  place-items: center;
}
/* La inclinacion va en la caja y la sombra en la imagen: juntas en el mismo elemento
   (filtro + transformacion 3D) Chromium deja la imagen sin pintar. */
.hero__tilt {
  position: absolute;
  inset: 0;
  transform: perspective(900px) rotateY(calc(var(--tilt-x) * 10deg)) rotateX(calc(var(--tilt-y) * -8deg));
}
.hero__bag img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 30px 34px rgba(0, 0, 0, 0.6));
}
.hero__halo {
  position: absolute;
  left: 50%; top: 52%;
  width: 78%; aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 34%, transparent), transparent 72%);
  filter: blur(6px);
  z-index: -1;
}
.hero__name { font-size: clamp(42px, 13vw, 60px); margin-top: 10px; }
.hero__tag { margin-top: 8px; font-size: 16px; color: var(--muted); text-wrap: balance; }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 16px; }
.chip {
  padding: 7px 13px;
  border: 1px solid color-mix(in srgb, var(--accent) 45%, var(--line));
  border-radius: 999px;
  font-size: 13px;
  background: color-mix(in srgb, var(--accent) 9%, transparent);
}
.scroll-cue { margin: 18px auto 0; width: 22px; height: 34px; border: 1.5px solid var(--line); border-radius: 12px; position: relative; }
.scroll-cue::after {
  content: ""; position: absolute; left: 50%; top: 6px; width: 3px; height: 7px; margin-left: -1.5px;
  border-radius: 2px; background: var(--gold); animation: cue 1.6s var(--ease) infinite;
}
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }

.origin__map {
  position: relative;
  width: 100%;
  aspect-ratio: 300 / 340;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: radial-gradient(90% 70% at 40% 45%, color-mix(in srgb, var(--accent) 10%, transparent), transparent 70%), var(--surface);
  overflow: hidden;
}
.origin__text { margin-top: 14px; font-size: 17px; }
.origin__story { margin-top: 10px; color: var(--muted); font-size: 15px; }

/* Tarjetas de cada variedad: fila que se desliza con el dedo. */
.lines {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 4px var(--pad) 18px;
  margin: 0 calc(var(--pad) * -1);
  scroll-padding: 0 var(--pad);
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.lines::-webkit-scrollbar { display: none; }
.lines.is-single { overflow: visible; }
.line {
  flex: 0 0 min(86%, 380px);
  min-width: 0;
  scroll-snap-align: center;
  padding: 18px 18px 20px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  display: flex;
  flex-direction: column;
}
.lines.is-single .line { flex-basis: 100%; }
.line__bag {
  position: relative;
  height: 250px;
  display: grid;
  place-items: center;
}
.line__bag img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 18px 20px rgba(0, 0, 0, 0.55)); }
.line__art {
  width: 150px; height: 150px;
  display: grid; place-items: center;
  border-radius: 50%;
  color: var(--accent);
  background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 22%, transparent), transparent);
}
.line__art svg { width: 96px; height: 96px; }
.line__flip { margin-top: 6px; text-align: center; font-size: 12px; color: var(--faint); letter-spacing: 0.04em; }
.line__name { font-size: 34px; margin-top: 10px; }
.line__desc { margin-top: 6px; font-size: 15px; color: var(--muted); }

.opts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.opt {
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 14px;
  color: var(--muted);
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.15s var(--ease);
}
.opt:active { transform: scale(0.95); }
.opt[aria-pressed="true"] { background: var(--text); color: #1a110a; border-color: var(--text); font-weight: 500; }
.opt--static { cursor: default; }

.price {
  margin-top: 16px;
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-family: var(--f-display);
  font-size: 44px;
  font-weight: 600;
  line-height: 1;
  color: var(--text);
  font-variant-numeric: lining-nums tabular-nums;
}
.price small { font-family: var(--f-ui); font-size: 13px; font-weight: 400; color: var(--muted); letter-spacing: 0.04em; }
.price__hint { margin-top: 6px; font-size: 12px; color: var(--faint); }

.line__h {
  margin-top: 20px;
  margin-bottom: 8px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}
.notes { position: relative; min-height: 96px; }
/* Respaldo sin el efecto: fila simple de sabores. */
.notes-basic { display: flex; flex-wrap: wrap; gap: 8px; }
.notes-basic span { padding: 6px 12px; border-radius: 999px; background: var(--surface-2); font-size: 14px; }
.meters { display: grid; gap: 10px; }
.meter-basic { display: flex; justify-content: space-between; font-size: 14px; color: var(--muted); }
.line__for {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
  font-family: var(--f-display);
  font-style: italic;
  font-size: 19px;
  line-height: 1.25;
}
.line__legal { margin-top: 10px; font-size: 11px; color: var(--faint); }

.fact {
  position: relative;
  padding: 26px 22px;
  border-radius: 24px;
  border: 1px solid color-mix(in srgb, var(--gold) 40%, transparent);
  background: linear-gradient(140deg, color-mix(in srgb, var(--gold) 16%, transparent), transparent 60%), var(--surface);
  overflow: hidden;
}
.fact__text { font-family: var(--f-display); font-size: 25px; line-height: 1.18; font-weight: 500; }
.fact__star { position: absolute; right: -18px; top: -18px; width: 110px; height: 110px; color: var(--gold); opacity: 0.16; }

.bar { text-align: center; }
.bar__cup {
  position: relative;
  width: min(74vw, 300px);
  aspect-ratio: 1;
  margin: 6px auto 0;
  border-radius: 50%;
  touch-action: none;
}
.bar__text { margin-top: 12px; font-size: 14px; color: var(--muted); }

.pay {
  margin: 34px var(--pad) 0;
  padding: 24px 22px;
  border-radius: 24px;
  background: var(--accent);
  color: #170d06;
  text-align: center;
}
.pay h2 { font-family: var(--f-display); font-size: 34px; font-weight: 600; line-height: 1; }
.pay p { margin-top: 8px; font-size: 16px; }

.nextup { padding: 22px var(--pad) 0; display: grid; gap: 10px; }
.btn {
  min-height: 54px;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: 16px;
  font-weight: 500;
  transition: transform 0.15s var(--ease), background 0.2s;
}
.btn:active { transform: scale(0.97); background: var(--surface-2); }
.btn--solid { background: var(--text); color: #1a110a; border-color: var(--text); }
.btn--gold { background: var(--gold); color: #1a110a; border-color: var(--gold); }
.btn small { font-size: 12px; color: var(--muted); font-weight: 400; display: block; }

/* ---------- Aparicion al deslizar ---------- */
.rise { opacity: 0; transform: translateY(22px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.rise.is-in { opacity: 1; transform: none; }

/* ---------- Test ---------- */
.quiz {
  min-height: 100vh;
  min-height: 100dvh;
  padding: calc(var(--top-h) + var(--safe-t) + 10px) var(--pad) calc(24px + var(--safe-b));
  display: flex;
  flex-direction: column;
}
.quiz__steps { display: flex; gap: 6px; }
.quiz__steps i { flex: 1; height: 3px; border-radius: 2px; background: var(--line); transition: background 0.4s; }
.quiz__steps i.is-on { background: var(--gold); }
.quiz__q { margin-top: 26px; font-size: clamp(36px, 11vw, 50px); }
.quiz__opts { margin-top: 26px; display: grid; gap: 12px; }
.qopt {
  width: 100%;
  min-height: 84px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 16px;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
  font-size: 19px;
  transition: transform 0.15s var(--ease), background 0.2s, border-color 0.2s;
  animation: swap-in 0.5s var(--ease) both;
}
.qopt:nth-child(2) { animation-delay: 0.07s; }
.qopt:nth-child(3) { animation-delay: 0.14s; }
.qopt:active { transform: scale(0.97); }
.qopt.is-picked { background: var(--gold); color: #1a110a; border-color: var(--gold); }
.qopt__ico { flex: 0 0 52px; height: 52px; display: grid; place-items: center; border-radius: 50%; background: var(--surface-2); color: var(--gold); }
.qopt.is-picked .qopt__ico { background: rgba(0, 0, 0, 0.14); color: #1a110a; }
.qopt__ico svg { width: 30px; height: 30px; }

/* ---------- Carta del resultado ---------- */
.result {
  min-height: 100vh;
  min-height: 100dvh;
  padding: calc(var(--top-h) + var(--safe-t) + 4px) var(--pad) calc(24px + var(--safe-b));
  display: flex;
  flex-direction: column;
  align-items: center;
}
.card-wrap { width: 100%; perspective: 1100px; display: grid; place-items: center; margin-top: 6px; }
.card {
  position: relative;
  width: min(78vw, 320px);
  aspect-ratio: 5 / 7;
  border-radius: 22px;
  padding: 18px 18px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  color: var(--text);
  background:
    radial-gradient(120% 80% at 50% 0%, var(--glow), transparent 70%),
    linear-gradient(160deg, #2a1c12, #120b06);
  border: 1px solid color-mix(in srgb, var(--gold) 55%, transparent);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.8), inset 0 0 0 5px rgba(0, 0, 0, 0.25);
  overflow: hidden;
  transform-style: preserve-3d;
}
.card__k { font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold); }
.card__owner { margin-top: 2px; font-size: 13px; color: var(--muted); min-height: 1.4em; }
.card__img { position: relative; flex: 1 1 0; min-height: 0; width: 100%; display: grid; place-items: center; margin: 8px 0; }
.card__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 16px 18px rgba(0, 0, 0, 0.6)); }
.card__brand { font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
.card__name { font-size: 34px; margin-top: 2px; }
.card__notes { margin-top: 8px; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.card__notes span { padding: 4px 10px; border-radius: 999px; font-size: 12px; background: rgba(255, 240, 220, 0.1); }
.card__foot { margin-top: 10px; font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--faint); }
.result__tilt { margin-top: 12px; font-size: 13px; color: var(--muted); }
.result__form { width: 100%; margin-top: 16px; display: grid; gap: 10px; }
.field {
  width: 100%;
  height: 52px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 16px; /* 16px evita el zoom automatico de iPhone al enfocar */
  text-align: center;
}
.field::placeholder { color: var(--faint); }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* ---------- Granos ---------- */
.beans-scene {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--deep) 92%, transparent);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: calc(var(--safe-t) + 70px) var(--pad) 0;
  text-align: center;
}
.beans-scene__canvas { position: absolute; inset: 0; }
.beans-scene__count { font-family: var(--f-display); font-size: 110px; line-height: 1; font-weight: 600; color: var(--gold); position: relative; pointer-events: none; }
.beans-scene__title { font-size: 26px; position: relative; pointer-events: none; }
.beans-scene__hint { margin-top: 6px; font-size: 14px; color: var(--muted); position: relative; pointer-events: none; }
.beans-scene__close {
  position: absolute; top: calc(var(--safe-t) + 12px); right: 14px;
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--surface);
  display: grid; place-items: center; z-index: 2;
}

/* ---------- Hoja de idiomas ---------- */
.sheet { position: fixed; inset: 0; z-index: 60; }
.sheet[hidden] { display: none; }
.sheet__scrim { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.55); animation: fade 0.25s both; }
.sheet__panel {
  position: absolute;
  left: 50%; bottom: 0;
  width: 100%; max-width: 480px;
  transform: translateX(-50%);
  padding: 10px var(--pad) calc(22px + var(--safe-b));
  border-radius: 26px 26px 0 0;
  background: #20160e;
  border-top: 1px solid var(--line);
  animation: sheet-up 0.38s var(--ease) both;
}
.sheet__grip { width: 44px; height: 4px; margin: 0 auto 14px; border-radius: 2px; background: var(--line); }
.sheet__title { font-family: var(--f-display); font-size: 26px; font-weight: 500; margin-bottom: 12px; }
.langs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.lang {
  height: 56px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  font-size: 16px;
  text-align: left;
}
.lang b { font-weight: 500; }
.lang i { font-style: normal; font-size: 12px; letter-spacing: 0.1em; color: var(--faint); margin-left: auto; }
.lang[aria-current="true"] { border-color: var(--gold); background: color-mix(in srgb, var(--gold) 14%, transparent); }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes sheet-up { from { transform: translate(-50%, 100%); } to { transform: translate(-50%, 0); } }

/* ---------- Boton "mueve tu telefono" (solo donde el navegador pide permiso) ---------- */
.top__motion {
  position: relative;
  margin-left: auto;
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--gold);
  color: #1a110a;
}
.top__motion:not([hidden]) + .top__lang { margin-left: 0; }
.top__motion svg { animation: wiggle 1.4s ease-in-out infinite; transform-origin: 50% 80%; }
.top__motion span {
  position: absolute;
  top: 50%; right: 44px;
  transform: translateY(-50%);
  padding: 8px 12px;
  border-radius: 12px;
  background: var(--text);
  color: #1a110a;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  box-shadow: 0 14px 30px -10px rgba(0, 0, 0, 0.8);
  animation: swap-in 0.5s var(--ease) 0.6s both, fade-out 0.5s ease 6.5s forwards;
  pointer-events: none;
}
.top__motion span::before {
  content: ""; position: absolute; top: 50%; right: -5px; width: 10px; height: 10px; margin-top: -5px;
  background: inherit; transform: rotate(45deg);
}
@keyframes wiggle { 0%, 100% { transform: rotate(-14deg); } 50% { transform: rotate(14deg); } }
@keyframes fade-out { to { opacity: 0; visibility: hidden; } }

/* ---------- Transicion entre pantallas (View Transitions) ---------- */
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; } }
::view-transition-old(root) { animation: 0.28s ease both vt-out; }
::view-transition-new(root) { animation: 0.36s ease 0.06s both vt-in; }
::view-transition-group(bag) { animation-duration: 0.55s; animation-timing-function: var(--ease-back); }
::view-transition-old(bag), ::view-transition-new(bag) { height: 100%; width: 100%; object-fit: contain; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .rise { opacity: 1; transform: none; }
  .hero__tilt { transform: none; }
}

@media (min-width: 520px) {
  body { background: #0b0705; }
  #app { box-shadow: 0 0 0 1px var(--line); }
}
