/* ==========================================================================
   TrollMe · Página de propinas
   Una sola hoja con tokens; cada skin solo redefine los tokens.
   Skins (igual que la app): studio, candy, aurora, command, neon, original.
   La skin la elige el streamer (page_skin) y se puede previsualizar con ?skin=.
   ========================================================================== */

/* ---------- Tokens base (skin "original") ---------- */
:root {
  color-scheme: dark;
  --bg: #0a0a12;
  --bg-image: radial-gradient(900px 600px at 85% -10%, rgba(168, 85, 247, .16), transparent 60%),
    radial-gradient(700px 500px at -10% 30%, rgba(6, 182, 212, .10), transparent 60%);
  --bg-photo-opacity: .22;

  --surface: rgba(20, 20, 35, .94);
  --surface-2: rgba(168, 85, 247, .07);
  --surface-3: rgba(255, 255, 255, .04);
  --field: rgba(10, 10, 20, .65);
  --ink: #f4f1fa;
  --ink-2: #c3bdd1;
  --ink-3: #8f89a1;
  --line: rgba(168, 85, 247, .2);
  --line-strong: rgba(168, 85, 247, .5);
  --border-w: 1px;

  --accent: #a855f7;
  --accent-text: #c084fc;
  --accent-2: #06b6d4;
  --sel-bg: rgba(168, 85, 247, .16);
  --sel-line: #a855f7;
  --sel-ink: var(--ink);
  --check-bg: #a855f7;
  --check-ink: #fff;
  --price: #34d399;
  --good: #22c55e;
  --good-soft: rgba(34, 197, 94, .12);
  --warn: #fbbf24;
  --warn-soft: rgba(251, 191, 36, .1);
  --danger: #f87171;
  --danger-soft: rgba(239, 68, 68, .14);
  --nequi: #e6007e;

  --cta-bg: linear-gradient(135deg, #a855f7, #06b6d4);
  --cta-ink: #fff;
  --cta-shadow: 0 12px 30px -12px rgba(168, 85, 247, .75);
  --ghost-bg: rgba(168, 85, 247, .12);
  --ghost-line: rgba(168, 85, 247, .35);
  --ghost-ink: #e9d5ff;

  --radius: 16px;
  --radius-sm: 10px;
  --radius-pill: 999px;
  --shadow: 0 24px 60px -32px rgba(0, 0, 0, .9);
  --shadow-sm: none;
  --shadow-sel: 0 8px 22px -12px rgba(168, 85, 247, .7);
  --lift: -2px;
  --press: scale(.97);

  --font: 'Inter', system-ui, -apple-system, sans-serif;
  --font-display: 'Inter', system-ui, sans-serif;
  --font-label: 'Inter', system-ui, sans-serif;
  --label-case: none;
  --label-track: .01em;
  --display-weight: 800;

  --ease-out: cubic-bezier(.23, 1, .32, 1);
  --ease-in-out: cubic-bezier(.77, 0, .175, 1);
  --ease-sheet: cubic-bezier(.32, .72, 0, 1);

  --gutter: clamp(16px, 4vw, 32px);
}

/* ---------- Studio Arcade (marca TrollMe, clara) ---------- */
html[data-skin="studio"] {
  color-scheme: light;
  --bg: #f3eee3;
  --bg-image: radial-gradient(#16130f14 1px, transparent 1.4px);
  --bg-photo-opacity: .1;
  --surface: #ffffff;
  --surface-2: #fbf8f1;
  --surface-3: #f3eee3;
  --field: #ffffff;
  --ink: #16130f;
  --ink-2: #3d382f;
  --ink-3: #6b6457;
  --line: #16130f;
  --line-strong: #16130f;
  --border-w: 2px;
  --accent: #1f4fff;
  --accent-text: #1f4fff;
  --accent-2: #ff4d2e;
  --sel-bg: #fff7d6;
  --sel-line: #16130f;
  --check-bg: #16130f;
  --check-ink: #ffe36e;
  --price: #0d7a52;
  --good: #0d7a52;
  --good-soft: #dcf7ec;
  --warn: #8a5a00;
  --warn-soft: #fff7d6;
  --danger: #c2261b;
  --danger-soft: #ffe3dd;
  --cta-bg: #ffe36e;
  --cta-ink: #16130f;
  --cta-shadow: 4px 4px 0 #16130f;
  --ghost-bg: #ffffff;
  --ghost-line: #16130f;
  --ghost-ink: #16130f;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 5px 5px 0 #16130f;
  --shadow-sm: 3px 3px 0 #16130f;
  --shadow-sel: 3px 3px 0 #16130f;
  --lift: -2px;
  --press: translate(2px, 2px);
  --font: 'Space Grotesk', system-ui, sans-serif;
  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-label: 'Silkscreen', monospace;
  --label-case: uppercase;
  --label-track: .02em;
  --display-weight: 700;
}
html[data-skin="studio"] body { background-size: 18px 18px; }

/* ---------- Candy Pop (clara, dulce) ---------- */
html[data-skin="candy"] {
  color-scheme: light;
  --bg: #fff5fb;
  --bg-image:
    radial-gradient(circle at 8% 12%, rgba(255, 122, 182, .2) 0 70px, transparent 71px),
    radial-gradient(circle at 92% 8%, rgba(124, 196, 255, .22) 0 90px, transparent 91px),
    radial-gradient(circle at 80% 70%, rgba(183, 148, 255, .18) 0 130px, transparent 131px),
    radial-gradient(circle at 18% 82%, rgba(110, 231, 197, .18) 0 80px, transparent 81px),
    linear-gradient(160deg, #fff5fb 0%, #f7f0ff 55%, #f3eeff 100%);
  --bg-photo-opacity: .12;
  --surface: #ffffff;
  --surface-2: #fbf7ff;
  --surface-3: #f5eeff;
  --field: #fdfaff;
  --ink: #2e1a47;
  --ink-2: #5d4c78;
  --ink-3: #75658f;
  --line: #e7dbff;
  --line-strong: #c9b2ff;
  --border-w: 1.5px;
  --accent: #8b5cf6;
  --accent-text: #7c3aed;
  --accent-2: #ec4899;
  --sel-bg: #f5eeff;
  --sel-line: #8b5cf6;
  --check-bg: linear-gradient(135deg, #f0569e, #8b5cf6);
  --check-ink: #fff;
  --price: #0f8a68;
  --good: #12a079;
  --good-soft: #e3f8f1;
  --warn: #9a5b12;
  --warn-soft: #fff4dc;
  --danger: #d6336c;
  --danger-soft: #ffe4ef;
  --cta-bg: linear-gradient(135deg, #f0569e 0%, #a770ff 55%, #8b5cf6 100%);
  --cta-ink: #fff;
  --cta-shadow: 0 12px 26px -12px rgba(168, 85, 247, .65);
  --ghost-bg: #f5eeff;
  --ghost-line: #e7dbff;
  --ghost-ink: #6d28d9;
  --radius: 24px;
  --radius-sm: 16px;
  --shadow: 0 18px 40px -22px rgba(124, 58, 237, .4);
  --shadow-sm: 0 4px 14px -8px rgba(168, 85, 247, .35);
  --shadow-sel: 0 10px 24px -12px rgba(168, 85, 247, .55);
  --font: 'Nunito', system-ui, sans-serif;
  --font-display: 'Nunito', system-ui, sans-serif;
  --font-label: 'Nunito', system-ui, sans-serif;
  --display-weight: 900;
}

/* ---------- Aurora (oscura, colores TikTok) ---------- */
html[data-skin="aurora"] {
  --bg: #07080f;
  --bg-image:
    radial-gradient(900px 520px at 90% -8%, rgba(37, 244, 238, .14), transparent 62%),
    radial-gradient(760px 520px at -8% 40%, rgba(254, 44, 85, .12), transparent 62%),
    radial-gradient(600px 400px at 50% 110%, rgba(122, 140, 255, .12), transparent 60%);
  --surface: rgba(255, 255, 255, .045);
  --surface-2: rgba(255, 255, 255, .035);
  --surface-3: rgba(255, 255, 255, .05);
  --field: rgba(0, 0, 0, .35);
  --ink: #f4f6fb;
  --ink-2: #c4cbda;
  --ink-3: #9aa3b8;
  --line: rgba(255, 255, 255, .09);
  --line-strong: rgba(255, 255, 255, .2);
  --accent: #25f4ee;
  --accent-text: #25f4ee;
  --accent-2: #fe2c55;
  --sel-bg: rgba(37, 244, 238, .09);
  --sel-line: #25f4ee;
  --check-bg: #25f4ee;
  --check-ink: #07080f;
  --price: #25f4ee;
  --cta-bg: #fe2c55;
  --cta-ink: #fff;
  --cta-shadow: 0 14px 32px -12px rgba(254, 44, 85, .75);
  --ghost-bg: rgba(255, 255, 255, .06);
  --ghost-line: rgba(255, 255, 255, .14);
  --ghost-ink: #f4f6fb;
  --shadow: 0 30px 70px -36px rgba(0, 0, 0, .95), inset 0 1px 0 rgba(255, 255, 255, .05);
  --shadow-sel: 0 0 0 1px rgba(37, 244, 238, .35), 0 12px 30px -14px rgba(37, 244, 238, .5);
  --font: 'Plus Jakarta Sans', system-ui, sans-serif;
  --font-display: 'Plus Jakarta Sans', system-ui, sans-serif;
  --font-label: 'Plus Jakarta Sans', system-ui, sans-serif;
}
html[data-skin="aurora"] .form-column,
html[data-skin="aurora"] .summary-card,
html[data-skin="aurora"] .checkout-card,
html[data-skin="aurora"] .nq-card {
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
}

/* ---------- Command (sobria, zinc + lima) ---------- */
html[data-skin="command"] {
  --bg: #09090b;
  --bg-image: linear-gradient(#ffffff05 1px, transparent 1px), linear-gradient(90deg, #ffffff05 1px, transparent 1px);
  --bg-photo-opacity: .12;
  --surface: #0d0d10;
  --surface-2: #111114;
  --surface-3: #17171a;
  --field: #0f0f12;
  --ink: #ededef;
  --ink-2: #a1a1aa;
  --ink-3: #8b8b93;
  --line: #1f1f23;
  --line-strong: #3a3a40;
  --accent: #c6f432;
  --accent-text: #c6f432;
  --accent-2: #6ea8fe;
  --sel-bg: rgba(198, 244, 50, .07);
  --sel-line: #c6f432;
  --check-bg: #c6f432;
  --check-ink: #0a0a0b;
  --price: #c6f432;
  --good: #c6f432;
  --good-soft: rgba(198, 244, 50, .08);
  --cta-bg: #c6f432;
  --cta-ink: #0a0a0b;
  --cta-shadow: none;
  --ghost-bg: #111114;
  --ghost-line: #2a2a2f;
  --ghost-ink: #ededef;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 24px 60px -30px rgba(0, 0, 0, .9);
  --shadow-sel: none;
  --lift: 0px;
  --font: 'Geist', system-ui, sans-serif;
  --font-display: 'Geist', system-ui, sans-serif;
  --font-label: 'Geist Mono', ui-monospace, monospace;
  --label-case: uppercase;
  --label-track: .06em;
  --display-weight: 700;
}
html[data-skin="command"] body { background-size: 32px 32px; }

/* ---------- Neon (synthwave) ---------- */
html[data-skin="neon"] {
  --bg: #0d0221;
  --bg-image:
    radial-gradient(800px 420px at 50% -6%, rgba(255, 46, 151, .28), transparent 65%),
    linear-gradient(180deg, transparent 55%, rgba(123, 44, 191, .25)),
    repeating-linear-gradient(90deg, rgba(0, 229, 255, .06) 0 1px, transparent 1px 64px);
  --surface: rgba(26, 11, 46, .9);
  --surface-2: rgba(36, 16, 66, .7);
  --surface-3: rgba(255, 46, 151, .06);
  --field: rgba(13, 2, 33, .8);
  --ink: #f5e9ff;
  --ink-2: #d4c2ec;
  --ink-3: #a994c8;
  --line: rgba(255, 46, 151, .38);
  --line-strong: #ff2e97;
  --border-w: 1.5px;
  --accent: #ff2e97;
  --accent-text: #ff6fb8;
  --accent-2: #00e5ff;
  --sel-bg: rgba(0, 229, 255, .1);
  --sel-line: #00e5ff;
  --check-bg: #00e5ff;
  --check-ink: #12051f;
  --price: #3dffb0;
  --cta-bg: linear-gradient(135deg, #ff2e97 0%, #c21fb8 50%, #7b2cbf 100%);
  --cta-ink: #fff;
  --cta-shadow: 0 0 26px rgba(255, 46, 151, .55);
  --ghost-bg: rgba(255, 46, 151, .1);
  --ghost-line: rgba(255, 46, 151, .45);
  --ghost-ink: #ffd1ea;
  --radius: 12px;
  --shadow: 0 0 0 1px rgba(255, 46, 151, .15), 0 0 40px -10px rgba(255, 46, 151, .45);
  --shadow-sel: 0 0 18px rgba(0, 229, 255, .45);
  --font: 'Space Grotesk', system-ui, sans-serif;
  --font-display: 'Orbitron', 'Space Grotesk', sans-serif;
  --font-label: 'Space Grotesk', system-ui, sans-serif;
  --label-case: uppercase;
  --label-track: .08em;
  --display-weight: 900;
}

/* ==========================================================================
   Base
   ========================================================================== */
* { box-sizing: border-box; margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font);
  background-color: var(--bg);
  background-image: var(--bg-image);
  background-attachment: fixed;
  min-height: 100vh;
  color: var(--ink);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  transition: background-color .3s ease, color .3s ease;
}

button, input, textarea, select { font: inherit; color: inherit; }
button { -webkit-tap-highlight-color: transparent; }
a { color: var(--accent-text); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.hidden { display: none !important; }

#bg-overlay {
  position: fixed;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: -1;
  opacity: var(--bg-photo-opacity);
  pointer-events: none;
}

/* ==========================================================================
   Barra superior
   ========================================================================== */
.brand {
  max-width: 1200px;
  margin: 0 auto;
  padding: 18px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.streamer-header { display: flex; align-items: center; gap: 14px; min-width: 0; }

.streamer-header-avatar,
.streamer-avatar,
.nq-to-avatar {
  border-radius: 50%;
  overflow: hidden;
  background: var(--cta-bg);
  color: var(--cta-ink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  flex-shrink: 0;
  border: var(--border-w) solid var(--line);
}

.streamer-header-avatar { width: 52px; height: 52px; font-size: 1.3rem; box-shadow: var(--shadow-sm); }
.streamer-header-avatar img,
.streamer-avatar img,
.nq-to-avatar img { width: 100%; height: 100%; object-fit: cover; }

.streamer-header-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }

.streamer-header-name {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 3.4vw, 1.6rem);
  font-weight: var(--display-weight);
  line-height: 1.15;
  letter-spacing: -.01em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.streamer-header-powered {
  font-size: .72rem;
  color: var(--ink-3);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
}

.powered-logo { height: 20px; width: auto; opacity: .75; transition: opacity .2s ease; }
html[data-skin="studio"] .powered-logo,
html[data-skin="candy"] .powered-logo { filter: drop-shadow(0 0 0 #000) brightness(.15); opacity: .7; }
.streamer-header-powered:hover .powered-logo { opacity: 1; }

.lang-selector {
  display: flex;
  gap: 2px;
  padding: 3px;
  border-radius: var(--radius-pill);
  background: var(--surface);
  border: var(--border-w) solid var(--line);
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
}

.lang-btn {
  border: 0;
  background: transparent;
  border-radius: var(--radius-pill);
  padding: 6px 10px;
  font-size: .78rem;
  font-weight: 700;
  color: var(--ink-3);
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease;
}
.lang-btn.active { background: var(--ink); color: var(--bg); }
@media (hover: hover) and (pointer: fine) {
  .lang-btn:not(.active):hover { color: var(--ink); }
}

/* ==========================================================================
   Banner y layout
   ========================================================================== */
.header-banner {
  max-width: 1200px;
  margin: 0 auto 22px;
  padding: 0 var(--gutter);
}

.header-banner img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 1;
  min-height: 120px;
  max-height: 260px;
  object-fit: cover;
  border-radius: var(--radius);
  border: var(--border-w) solid var(--line);
  box-shadow: var(--shadow);
}

.main-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--gutter) 48px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: clamp(18px, 3vw, 32px);
  align-items: start;
}

@media (max-width: 900px) {
  .main-container { grid-template-columns: minmax(0, 1fr); padding-bottom: 120px; }
}

.form-column,
.summary-card,
.checkout-card {
  background: var(--surface);
  border: var(--border-w) solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.form-column { padding: clamp(18px, 3vw, 30px); }

/* Fila @usuario: redundante con la barra superior */
.streamer-info { display: none; }

.streamer-message {
  position: relative;
  margin-bottom: 26px;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  border: var(--border-w) solid var(--line);
}
.streamer-message::before {
  content: '';
  position: absolute;
  top: -7px;
  left: 22px;
  width: 12px;
  height: 12px;
  background: inherit;
  border-left: inherit;
  border-top: inherit;
  transform: rotate(45deg);
}
.streamer-message p { font-size: .98rem; line-height: 1.5; color: var(--ink); max-width: 65ch; }

/* ---------- Secciones numeradas ---------- */
.form-column { counter-reset: tipstep; }

.form-section { margin-bottom: 28px; }
.form-section:last-child { margin-bottom: 0; }

.input-group label {
  display: block;
  font-size: .82rem;
  font-weight: 600;
  color: var(--ink-2);
  margin-bottom: 6px;
}
.input-group + .input-group { margin-top: 14px; }

.form-section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-label);
  font-size: .95rem;
  font-weight: 700;
  letter-spacing: var(--label-track);
  text-transform: var(--label-case);
  color: var(--ink);
  margin-bottom: 12px;
}

html[data-skin="studio"] .form-section-title { font-size: .8rem; font-weight: 400; }
html[data-skin="command"] .form-section-title { font-size: .78rem; font-weight: 500; color: var(--ink-2); }

.form-section > .form-section-title::before {
  counter-increment: tipstep;
  content: counter(tipstep);
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  font-family: var(--font);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: 0;
  background: var(--ink);
  color: var(--bg);
  flex-shrink: 0;
}

.input-hint {
  font-size: .82rem;
  color: var(--ink-3);
  margin: 12px 0 8px;
}

/* ---------- Monto ---------- */
.amount-presets {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(96px, 1fr));
  gap: 10px;
  margin-bottom: 4px;
}

.preset-btn {
  padding: 14px 10px;
  border-radius: var(--radius-sm);
  border: var(--border-w) solid var(--line);
  background: var(--surface-2);
  color: var(--ink);
  font-size: 1.05rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
  transition: transform .16s var(--ease-out), background-color .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.preset-btn:active { transform: var(--press); }
.preset-btn.selected {
  background: var(--sel-bg);
  border-color: var(--sel-line);
  box-shadow: var(--shadow-sel);
}
html[data-skin="studio"] .preset-btn.selected { background: #ffe36e; }

/* ---------- Campos ---------- */
.input-group { margin-bottom: 4px; }

.input-field {
  width: 100%;
  padding: 14px 16px;
  background: var(--field);
  border: var(--border-w) solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--ink);
  font-size: 1rem;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.input-field::placeholder { color: var(--ink-3); opacity: .8; }
.input-field:focus {
  outline: none;
  border-color: var(--sel-line);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--accent) 22%, transparent);
}
html[data-skin="studio"] .input-field:focus { box-shadow: var(--shadow-sm); }

textarea.input-field { min-height: 104px; resize: vertical; line-height: 1.5; }

.amount-input-wrapper { position: relative; }
.amount-input-wrapper .currency-prefix {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--ink-3);
  font-weight: 800;
  pointer-events: none;
}
.amount-input-wrapper input { padding-left: 54px; font-weight: 700; font-variant-numeric: tabular-nums; }

.char-counter { text-align: right; font-size: .75rem; color: var(--ink-3); margin-top: 6px; font-variant-numeric: tabular-nums; }

/* ---------- Trolleos ---------- */
.actions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
  gap: 12px;
}
@media (max-width: 520px) {
  .actions-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .action-card { padding: 12px 12px 10px; }
  .action-icon { width: 38px; height: 38px; font-size: 1.35rem; }
}

.action-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 14px 14px 12px;
  text-align: left;
  border-radius: var(--radius-sm);
  border: var(--border-w) solid var(--line);
  background: var(--surface-2);
  cursor: pointer;
  transition: transform .2s var(--ease-out), background-color .2s ease, border-color .2s ease, box-shadow .2s ease;
}
@media (hover: hover) and (pointer: fine) {
  .action-card:hover { transform: translateY(var(--lift)); border-color: var(--line-strong); }
}
.action-card:active { transform: var(--press); }
.action-card.selected {
  background: var(--sel-bg);
  border-color: var(--sel-line);
  box-shadow: var(--shadow-sel);
}

.action-checkbox { display: none; }
.action-checkbox-label { position: absolute; top: 10px; right: 10px; cursor: pointer; }
.action-checkbox-custom {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  border: var(--border-w) solid var(--line-strong);
  background: var(--field);
  display: grid;
  place-items: center;
  transition: background-color .2s ease, border-color .2s ease;
}
.action-checkbox-custom::after {
  content: '';
  width: 10px;
  height: 6px;
  border-left: 2px solid var(--check-ink);
  border-bottom: 2px solid var(--check-ink);
  transform: translateY(-1px) rotate(-45deg) scale(.4);
  opacity: 0;
  transition: transform .2s var(--ease-out), opacity .15s ease;
}
.action-card.selected .action-checkbox-custom { background: var(--check-bg); border-color: transparent; }
.action-card.selected .action-checkbox-custom::after { opacity: 1; transform: translateY(-1px) rotate(-45deg) scale(1); }

.action-icon {
  font-size: 1.6rem;
  line-height: 1;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--surface-3);
  margin-bottom: 6px;
  transition: transform .3s var(--ease-out);
}
.action-card.selected .action-icon { transform: rotate(-6deg) scale(1.06); }

.action-name { font-weight: 700; font-size: .9rem; line-height: 1.25; color: var(--ink); padding-right: 22px; }
.action-price { font-weight: 800; font-size: .95rem; color: var(--price); font-variant-numeric: tabular-nums; }
.action-price .approx, .pm-amount .approx { opacity: .7; font-weight: 600; margin-right: 1px; }

/* ---------- GIF ---------- */
.gif-toggle-btn,
.gif-search-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: var(--radius-sm);
  border: var(--border-w) solid var(--ghost-line);
  background: var(--ghost-bg);
  color: var(--ghost-ink);
  font-weight: 700;
  font-size: .9rem;
  cursor: pointer;
  transition: transform .16s var(--ease-out), background-color .2s ease;
}
.gif-toggle-btn:active, .gif-search-btn:active { transform: var(--press); }
.gif-search-btn { background: var(--cta-bg); color: var(--cta-ink); border-color: transparent; }
html[data-skin="studio"] .gif-search-btn { border-color: var(--line); }

.gif-picker { margin-top: 14px; display: none; }
.gif-picker.active { display: block; animation: tipRise .3s var(--ease-out) both; }
.gif-search-row { display: flex; gap: 10px; margin-bottom: 12px; }
.gif-search-row input { flex: 1; }

.gif-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 8px;
  max-height: 320px;
  overflow-y: auto;
  padding: 2px;
}
.gif-item {
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  background: var(--surface-3);
  transition: border-color .2s ease, transform .16s var(--ease-out);
}
.gif-item:active { transform: scale(.97); }
.gif-item.selected { border-color: var(--sel-line); }
.gif-item img { width: 100%; height: 100%; object-fit: cover; display: block; }

.selected-gif-preview {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  margin-top: 12px;
  border-radius: var(--radius-sm);
  background: var(--sel-bg);
  border: var(--border-w) solid var(--sel-line);
}
.selected-gif-preview img { width: 52px; height: 52px; border-radius: 8px; object-fit: cover; }
.selected-gif-preview .remove-btn {
  margin-left: auto;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 0;
  background: var(--danger-soft);
  color: var(--danger);
  font-size: 1.2rem;
  cursor: pointer;
}

/* ---------- Voces TTS ---------- */
#tts-description { font-size: .85rem !important; color: var(--ink-3) !important; }

.voice-tabs {
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  margin-bottom: 14px;
  border-radius: var(--radius-pill);
  background: var(--surface-3);
  border: var(--border-w) solid var(--line);
  max-width: 100%;
  overflow-x: auto;
}
.voice-tab {
  padding: 8px 14px;
  border: 0;
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--ink-2);
  font-size: .82rem;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease;
}
.voice-tab.active { background: var(--ink); color: var(--bg); }

.voice-search-container { position: relative; margin-bottom: 14px; }
.voice-search-input {
  width: 100%;
  padding: 13px 14px 13px 40px;
  background: var(--field);
  border: var(--border-w) solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--ink);
  outline: none;
  transition: border-color .2s ease;
}
.voice-search-input:focus { border-color: var(--sel-line); }
.voice-search-input::placeholder { color: var(--ink-3); }
.voice-search-icon { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); opacity: .55; }

.voice-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  max-height: 420px;
  overflow-y: auto;
  padding: 2px 6px 2px 2px;
  scrollbar-width: thin;
  scrollbar-color: var(--line-strong) transparent;
}
@media (max-width: 600px) { .voice-options { grid-template-columns: minmax(0, 1fr); } }

.voice-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px 9px 9px;
  border-radius: var(--radius-sm);
  border: var(--border-w) solid var(--line);
  background: var(--surface-2);
  cursor: pointer;
  transition: background-color .2s ease, border-color .2s ease, transform .16s var(--ease-out);
}
.voice-option:active { transform: scale(.985); }
@media (hover: hover) and (pointer: fine) {
  .voice-option:hover { border-color: var(--line-strong); }
}
.voice-option.selected { background: var(--sel-bg); border-color: var(--sel-line); box-shadow: var(--shadow-sel); }
.voice-option.disabled-voice { opacity: .75; }

.voice-icon {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  overflow: hidden;
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  background: var(--surface-3);
  flex-shrink: 0;
}
.voice-icon img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.voice-option.disabled-voice .voice-icon { border-radius: 50%; }

.voice-info { flex: 1; min-width: 0; }
.voice-info h4 { font-size: .86rem; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.voice-info p { font-size: .72rem; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.voice-info .premium-badge {
  display: inline-block;
  margin-left: 5px;
  padding: 1px 6px;
  border-radius: 5px;
  font-size: .6rem;
  font-weight: 800;
  vertical-align: middle;
  background: var(--ink);
  color: var(--bg);
}

.voice-check {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: var(--border-w) solid var(--line-strong);
  display: grid;
  place-items: center;
  font-size: .62rem;
  color: transparent;
  flex-shrink: 0;
  transition: background-color .2s ease, border-color .2s ease;
}
.voice-option.selected .voice-check { background: var(--check-bg); border-color: transparent; color: var(--check-ink); }

.voice-loading { grid-column: 1 / -1; text-align: center; padding: 30px; color: var(--ink-3); }
.voice-loading-spinner { font-size: 1.5rem; margin-bottom: 10px; animation: tipSpin 1s linear infinite; display: inline-block; }

.tts-price-badge {
  display: inline-block;
  margin-left: 6px;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  font-family: var(--font);
  font-size: .76rem;
  font-weight: 800;
  text-transform: none;
  letter-spacing: 0;
  background: var(--cta-bg);
  color: var(--cta-ink);
}

/* ==========================================================================
   Columna derecha: resumen + pago
   ========================================================================== */
.summary-column {
  position: sticky;
  top: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.summary-card { padding: 20px 22px; }
.checkout-card { padding: 22px; }

.summary-title,
.checkout-title {
  font-family: var(--font-label);
  font-size: .95rem;
  font-weight: 800;
  letter-spacing: var(--label-track);
  text-transform: var(--label-case);
  margin-bottom: 12px;
}
html[data-skin="studio"] .summary-title,
html[data-skin="studio"] .checkout-title { font-weight: 400; font-size: .85rem; }

.summary-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  font-size: .88rem;
  border-bottom: 1px dashed color-mix(in oklab, var(--line) 70%, transparent);
}
html[data-skin="studio"] .summary-row { border-bottom-color: #e6e0d2; }
.summary-row .label { color: var(--ink-3); flex-shrink: 0; }
.summary-row .value {
  color: var(--ink);
  text-align: right;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.summary-row .value.highlight { color: var(--accent-text); font-weight: 700; }

.summary-row.summary-total {
  border-bottom: 0;
  margin-top: 6px;
  padding-top: 14px;
  align-items: baseline;
}
.summary-row.summary-total .label { color: var(--ink); }
.summary-row.summary-total .value {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 1.9rem);
  font-weight: var(--display-weight);
  color: var(--ink);
  letter-spacing: -.02em;
}
.summary-row.summary-total .value.tip-bump { animation: tipBump .35s var(--ease-out); }

/* Selector de método */
.pm-select { display: grid; gap: 10px; margin-bottom: 16px; }
.pm-select-label { font-size: .78rem; font-weight: 700; color: var(--ink-3); }

.pm-opt {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: var(--border-w) solid var(--line);
  background: var(--surface-2);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  transition: border-color .2s ease, background-color .2s ease, box-shadow .2s ease, transform .16s var(--ease-out);
}
.pm-opt:active { transform: var(--press); }
.pm-opt[aria-checked="true"] { border-color: var(--sel-line); background: var(--sel-bg); box-shadow: var(--shadow-sel); }
.pm-opt--nequi[aria-checked="true"] { border-color: var(--nequi); }
html[data-skin="studio"] .pm-opt[aria-checked="true"] { border-color: var(--line); background: #fff7d6; }

.pm-logo { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; flex-shrink: 0; }
.pm-logo--nequi {
  background: linear-gradient(145deg, #ff2a9d, #e6007e 55%, #b0006a);
  color: #fff;
  font-weight: 900;
  font-size: 1.15rem;
  letter-spacing: -.04em;
}
.pm-logo--card { background: var(--ink); color: var(--bg); }

.pm-txt { display: grid; gap: 1px; min-width: 0; }
.pm-name { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; font-weight: 800; font-size: .93rem; }
.pm-sub { font-size: .74rem; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pm-badge {
  font-size: .6rem;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: var(--radius-pill);
  background: var(--good-soft);
  color: var(--good);
}
.pm-amount { font-weight: 800; font-size: .95rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pm-radio {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid var(--line-strong);
  transition: box-shadow .2s var(--ease-out), border-color .2s ease;
}
.pm-opt[aria-checked="true"] .pm-radio { border-color: var(--ink); box-shadow: inset 0 0 0 4px var(--surface), inset 0 0 0 9px var(--ink); }
.pm-fx-note { font-size: .74rem; color: var(--ink-3); line-height: 1.45; }

@media (max-width: 420px) {
  .pm-opt { grid-template-columns: auto minmax(0, 1fr) auto; }
  .pm-radio { display: none; }
}

.checkout-terms { font-size: .74rem; color: var(--ink-3); line-height: 1.55; margin-bottom: 16px; }
.checkout-terms strong { color: var(--ink-2); }
.checkout-terms a { color: var(--accent-text); }

.nq-checkout-note {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 13px;
  margin-bottom: 14px;
  border-radius: var(--radius-sm);
  background: color-mix(in oklab, var(--nequi) 9%, transparent);
  border: var(--border-w) solid color-mix(in oklab, var(--nequi) 35%, transparent);
  font-size: .84rem;
  line-height: 1.4;
}
.nq-checkout-note .nq-chip {
  flex-shrink: 0;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .04em;
  background: var(--nequi);
  color: #fff;
}

#payment-element { margin-bottom: 14px; }
#payment-errors { color: var(--danger); font-size: .85rem; margin-bottom: 10px; }
#payment-errors:empty { display: none; }

/* Botón principal */
.checkout-btn,
.donate-again-btn,
.tip-dock-btn {
  position: relative;
  width: 100%;
  min-height: 54px;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  border: var(--border-w) solid transparent;
  background: var(--cta-bg);
  color: var(--cta-ink);
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: .01em;
  cursor: pointer;
  box-shadow: var(--cta-shadow);
  transition: transform .16s var(--ease-out), box-shadow .16s var(--ease-out), opacity .2s ease, filter .2s ease;
}
html[data-skin="studio"] .checkout-btn,
html[data-skin="studio"] .donate-again-btn,
html[data-skin="studio"] .tip-dock-btn { border-color: var(--line); }
@media (hover: hover) and (pointer: fine) {
  .checkout-btn:hover:not(:disabled), .donate-again-btn:hover, .tip-dock-btn:hover { filter: brightness(1.05); transform: translateY(var(--lift)); }
}
.checkout-btn:active:not(:disabled), .donate-again-btn:active, .tip-dock-btn:active { transform: var(--press); }
html[data-skin="studio"] .checkout-btn:active:not(:disabled),
html[data-skin="studio"] .donate-again-btn:active,
html[data-skin="studio"] .tip-dock-btn:active { box-shadow: 0 0 0 var(--line); }
.checkout-btn:disabled { opacity: .45; cursor: not-allowed; box-shadow: none; }

.disabled-notice { text-align: center; color: var(--danger); font-size: .85rem; margin-top: 12px; }

/* ==========================================================================
   Barra fija de pago en móvil (la crea tip-skin.js)
   ========================================================================== */
.tip-dock {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: max(12px, env(safe-area-inset-bottom));
  z-index: 50;
  display: none;
  align-items: center;
  gap: 12px;
  padding: 10px 10px 10px 16px;
  border-radius: calc(var(--radius) + 2px);
  background: var(--surface);
  border: var(--border-w) solid var(--line);
  box-shadow: var(--shadow), 0 18px 40px -16px rgba(0, 0, 0, .55);
  transform: translateY(calc(100% + 24px));
  transition: transform .35s var(--ease-sheet);
}
html[data-skin="aurora"] .tip-dock,
html[data-skin="neon"] .tip-dock { background: color-mix(in oklab, var(--bg) 92%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.tip-dock.show { transform: none; }
.tip-dock-total { min-width: 0; flex: 1; }
.tip-dock-label { font-size: .72rem; color: var(--ink-3); }
.tip-dock-value { font-family: var(--font-display); font-weight: var(--display-weight); font-size: 1.25rem; line-height: 1.1; font-variant-numeric: tabular-nums; }
.tip-dock-btn { width: auto; min-height: 48px; padding: 12px 20px; font-size: .98rem; flex-shrink: 0; }
@media (max-width: 900px) { .tip-dock { display: flex; } }

/* ==========================================================================
   Estados: carga, error, éxito (Stripe)
   ========================================================================== */
.loading { display: flex; justify-content: center; align-items: center; min-height: 60vh; }
.spinner {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 3px solid color-mix(in oklab, var(--ink) 15%, transparent);
  border-top-color: var(--accent);
  animation: tipSpin .8s linear infinite;
}

.error-page { text-align: center; padding: 90px var(--gutter); }
.error-page h1 { font-family: var(--font-display); font-size: clamp(1.6rem, 5vw, 2.2rem); margin-bottom: 12px; }
.error-page p { color: var(--ink-3); }

.success-page {
  text-align: center;
  padding: 56px 28px 40px;
  max-width: 520px;
  margin: 24px auto;
  background: var(--surface);
  border: var(--border-w) solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  animation: tipRise .5s var(--ease-out) both;
}
.success-icon {
  width: 92px;
  height: 92px;
  margin: 0 auto 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 2.6rem;
  font-weight: 800;
  background: var(--good);
  color: #fff;
  animation: tipBadge .6s var(--ease-out) both;
}
.success-page h1 {
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  font-size: clamp(1.8rem, 6vw, 2.4rem);
  line-height: 1.1;
  margin-bottom: 12px;
}
.success-page p { color: var(--ink-2); font-size: 1.02rem; line-height: 1.6; margin-bottom: 28px; }
.success-actions { display: flex; flex-direction: column; gap: 12px; align-items: stretch; max-width: 320px; margin: 0 auto; }
.donate-again-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; }
.success-share { display: flex; gap: 10px; justify-content: center; }
.share-btn {
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  border: var(--border-w) solid var(--ghost-line);
  background: var(--ghost-bg);
  color: var(--ghost-ink);
  text-decoration: none;
  cursor: pointer;
}

.powered-by { text-align: center; padding: 28px 20px 36px; color: var(--ink-3); font-size: .78rem; }
.powered-by a { color: var(--ink-2); font-weight: 700; text-decoration: none; }

/* ==========================================================================
   Nequi: pantalla de pago
   ========================================================================== */
.nq-wrap { max-width: 980px; margin: 0 auto; padding: 0 var(--gutter) 28px; }

.nq-card {
  position: relative;
  padding: 18px 16px 16px;
  background: var(--surface);
  border: var(--border-w) solid var(--line);
  border-radius: calc(var(--radius) + 4px);
  box-shadow: var(--shadow);
}

.nq-enter { animation: tipRise .5s var(--ease-out) both; }
.nq-stagger > * { animation: tipRise .45s var(--ease-out) both; }
.nq-stagger > *:nth-child(2) { animation-delay: .05s; }
.nq-stagger > *:nth-child(3) { animation-delay: .1s; }
.nq-stagger > *:nth-child(4) { animation-delay: .15s; }
.nq-stagger > *:nth-child(5) { animation-delay: .2s; }
.nq-stagger > *:nth-child(6) { animation-delay: .25s; }

.nq-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 16px; }
.nq-to { display: flex; align-items: center; gap: 10px; min-width: 0; }
.nq-to-avatar { width: 38px; height: 38px; }
.nq-to-label { font-size: .72rem; color: var(--ink-3); }
.nq-to-name { font-weight: 800; font-size: .98rem; }
.nq-back {
  border: 0;
  background: none;
  color: var(--ink-3);
  font-size: .86rem;
  font-weight: 600;
  cursor: pointer;
  padding: 8px 6px;
  min-height: 40px;
}
.nq-back:hover { color: var(--ink); }

.nq-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.nq-col { display: flex; flex-direction: column; gap: 14px; min-width: 0; }

/* El monto: el dato más importante de la pantalla */
.nq-amount-box {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: 24px 16px 20px;
  border-radius: var(--radius);
  background: var(--surface-2);
  border: var(--border-w) solid var(--line);
}
html[data-skin="studio"] .nq-amount-box { background: #fff7d6; box-shadow: var(--shadow-sm); }
.nq-amount-label {
  font-family: var(--font-label);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.nq-amount {
  font-family: var(--font-display);
  font-size: clamp(3rem, 15vw, 4.6rem);
  font-weight: var(--display-weight);
  line-height: 1.02;
  margin: 8px 0 2px;
  letter-spacing: -.03em;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}
.nq-amount .nq-cur { font-size: .5em; vertical-align: .6em; margin-right: 2px; color: var(--ink-3); }
.nq-amount.nq-pop { animation: tipBump .4s var(--ease-out); }
.nq-cop { font-size: .74rem; letter-spacing: .18em; color: var(--ink-3); margin-bottom: 14px; }
.nq-adjusted {
  font-size: .84rem;
  line-height: 1.45;
  color: var(--warn);
  background: var(--warn-soft);
  border: var(--border-w) solid color-mix(in oklab, var(--warn) 35%, transparent);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  margin: 0 auto 14px;
  max-width: 340px;
}

.nq-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  border: var(--border-w) solid transparent;
  font-weight: 800;
  font-size: 1rem;
  cursor: pointer;
  transition: transform .16s var(--ease-out), box-shadow .16s ease, background-color .2s ease, filter .2s ease;
}
.nq-btn:active { transform: var(--press); }
.nq-btn-primary { background: var(--cta-bg); color: var(--cta-ink); box-shadow: var(--cta-shadow); }
html[data-skin="studio"] .nq-btn-primary,
html[data-skin="studio"] .nq-btn-ghost { border-color: var(--line); }
.nq-btn-nequi { width: 100%; background: var(--nequi); color: #fff; font-size: 1.05rem; box-shadow: 0 12px 28px -14px rgba(230, 0, 126, .8); }
.nq-btn-ghost { background: var(--ghost-bg); border-color: var(--ghost-line); color: var(--ghost-ink); }
.nq-btn.nq-copied { background: var(--good); color: #fff; box-shadow: none; }
.nq-copy-amount { width: 100%; max-width: 320px; }

.nq-steps { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.nq-steps li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 12px;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  border: var(--border-w) solid var(--line);
  font-size: .92rem;
  line-height: 1.35;
  transition: background-color .3s ease, border-color .3s ease;
}
html[data-skin="studio"] .nq-steps li { border-color: #e6e0d2; }
.nq-step-num {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: .82rem;
  background: var(--ink);
  color: var(--bg);
  transition: background-color .3s ease, transform .3s var(--ease-out);
}
.nq-steps li.done { background: var(--good-soft); border-color: color-mix(in oklab, var(--good) 40%, transparent); }
.nq-steps li.done .nq-step-num { background: var(--good); color: #fff; transform: scale(1.06); }
.nq-steps li.done .nq-step-num::before { content: '✓'; }
.nq-steps li.done .nq-step-num span { display: none; }

.nq-hint { font-size: .82rem; color: var(--ink-3); text-align: center; margin-top: 8px; line-height: 1.45; }

.nq-payto { display: flex; flex-direction: column; gap: 10px; }
.nq-section-label { font-size: .74rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.nq-key-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 12px 12px 14px;
  border-radius: var(--radius-sm);
  background: var(--field);
  border: var(--border-w) solid var(--line);
}
.nq-key-row > div { flex: 1; min-width: 0; }
.nq-key-label { font-size: .72rem; color: var(--ink-3); }
.nq-key-val { font-size: 1.12rem; font-weight: 800; font-variant-numeric: tabular-nums; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nq-copy-sm { min-height: 40px; padding: 8px 14px; font-size: .85rem; flex-shrink: 0; }
.nq-holder { font-size: .82rem; color: var(--ink-3); padding-left: 2px; }
.nq-holder strong { color: var(--ink); }

.nq-qr {
  text-align: center;
  padding: 14px;
  border-radius: var(--radius);
  background: var(--surface-2);
  border: var(--border-w) dashed var(--line-strong);
}
.nq-qr img {
  display: block;
  width: min(220px, 70vw);
  aspect-ratio: 1;
  object-fit: contain;
  margin: 0 auto 8px;
  padding: 8px;
  border-radius: 12px;
  background: #fff;
}
.nq-qr p { font-size: .8rem; color: var(--ink-3); }

.nq-waiting {
  position: sticky;
  bottom: 12px;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: var(--radius);
  background: var(--surface);
  border: var(--border-w) solid var(--line-strong);
  box-shadow: var(--shadow), 0 16px 40px -16px rgba(0, 0, 0, .55);
}
.nq-pulse { position: relative; width: 34px; height: 34px; flex-shrink: 0; }
.nq-pulse::before,
.nq-pulse::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: color-mix(in oklab, var(--accent) 40%, transparent);
  animation: tipRipple 2.2s var(--ease-out) infinite;
}
.nq-pulse::after { animation-delay: 1.1s; }
.nq-pulse span { position: absolute; inset: 10px; border-radius: 50%; background: var(--accent); }
.nq-waiting-text { flex: 1; min-width: 0; }
.nq-waiting-title { font-weight: 800; font-size: .95rem; }
.nq-dots::after { content: ''; animation: tipDots 1.4s steps(4) infinite; }
.nq-waiting-sub { font-size: .78rem; color: var(--ink-3); }
.nq-timer {
  flex-shrink: 0;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  font-weight: 800;
  font-size: .95rem;
  font-variant-numeric: tabular-nums;
  background: var(--surface-3);
  transition: color .3s ease, background-color .3s ease;
}
.nq-timer.urgent { color: var(--danger); background: var(--danger-soft); }

.nq-late {
  margin-top: 14px;
  padding: 14px;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  border: var(--border-w) solid var(--line-strong);
  animation: tipRise .4s var(--ease-out) both;
}
.nq-late h4 { font-size: .95rem; margin-bottom: 4px; }
.nq-late p { font-size: .86rem; color: var(--ink-2); line-height: 1.45; margin-bottom: 10px; }

.nq-help { margin-top: 16px; display: flex; flex-direction: column; gap: 10px; }
.nq-how-btn { width: 100%; }
.nq-help-title { font-size: .74rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); margin-top: 4px; }
.nq-help-list { display: flex; flex-direction: column; gap: 6px; }
.nq-help-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  border: var(--border-w) solid var(--line);
  color: var(--ink);
  font-size: .9rem;
  text-align: left;
  cursor: pointer;
  transition: border-color .2s ease, transform .16s var(--ease-out);
}
html[data-skin="studio"] .nq-help-item { border-color: #e6e0d2; }
@media (hover: hover) and (pointer: fine) { .nq-help-item:hover { border-color: var(--line-strong); } }
.nq-help-item:active { transform: scale(.98); }
.nq-help-item span:nth-child(2) { flex: 1; }
.nq-help-badge { font-size: .68rem; font-weight: 800; padding: 3px 8px; border-radius: var(--radius-pill); background: var(--surface-3); color: var(--ink-3); }
.nq-help-badge.video { background: color-mix(in oklab, var(--nequi) 16%, transparent); color: var(--nequi); }

.nq-result { text-align: center; padding: 44px 22px 30px; max-width: 520px; margin: 0 auto; overflow: hidden; }
.nq-result-icon {
  width: 100px;
  height: 100px;
  margin: 0 auto 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 2.8rem;
  animation: tipBadge .6s var(--ease-out) both;
}
.nq-result-icon.ok { background: var(--good-soft); border: var(--border-w) solid var(--good); }
.nq-result-icon.bad { background: var(--warn-soft); border: var(--border-w) solid var(--warn); }
.nq-result h2 {
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  font-size: clamp(1.6rem, 7vw, 2.2rem);
  line-height: 1.12;
  margin-bottom: 10px;
}
.nq-result p { color: var(--ink-2); font-size: 1rem; line-height: 1.55; margin-bottom: 8px; }
.nq-live-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 10px 0 24px;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  background: var(--danger-soft);
  color: var(--danger);
  font-size: .88rem;
  font-weight: 700;
}
.nq-live-dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; animation: tipBlink 1.2s ease-in-out infinite; }
.nq-result-actions { display: flex; flex-direction: column; gap: 10px; align-items: stretch; max-width: 320px; margin: 18px auto 0; }

/* Guía: hoja inferior en móvil, ventana centrada en escritorio */
.nq-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: rgba(8, 6, 14, .6);
  animation: tipFade .2s ease both;
}
.nq-sheet {
  width: 100%;
  max-width: 520px;
  max-height: 92vh;
  overflow-y: auto;
  padding: 10px 18px 22px;
  background: var(--bg);
  border: var(--border-w) solid var(--line);
  border-radius: calc(var(--radius) + 6px) calc(var(--radius) + 6px) 0 0;
  animation: tipSheetUp .45s var(--ease-sheet) both;
}
html[data-skin="aurora"] .nq-sheet,
html[data-skin="neon"] .nq-sheet { background: color-mix(in oklab, var(--bg) 96%, #fff); }
.nq-sheet-grab { width: 42px; height: 5px; border-radius: 3px; background: var(--line-strong); margin: 0 auto 10px; opacity: .6; }
.nq-sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.nq-sheet-head h3 { font-family: var(--font-display); font-size: 1.1rem; }
.nq-close {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 0;
  background: var(--surface-3);
  color: var(--ink);
  font-size: 1.3rem;
  cursor: pointer;
  flex-shrink: 0;
}
.nq-video { width: 100%; max-height: 64vh; border-radius: var(--radius-sm); background: #000; display: block; margin-bottom: 12px; }
.nq-guide-steps { list-style: none; display: flex; flex-direction: column; gap: 10px; counter-reset: nqg; }
.nq-guide-steps li {
  counter-increment: nqg;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: .95rem;
  line-height: 1.45;
  animation: tipRise .4s var(--ease-out) both;
}
.nq-guide-steps li:nth-child(2) { animation-delay: .05s; }
.nq-guide-steps li:nth-child(3) { animation-delay: .1s; }
.nq-guide-steps li:nth-child(4) { animation-delay: .15s; }
.nq-guide-steps li span { min-width: 0; flex: 1; }
.nq-guide-steps li::before {
  content: counter(nqg);
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: .82rem;
  background: var(--ink);
  color: var(--bg);
}
.nq-sheet-loading { display: flex; justify-content: center; padding: 30px 0; }

.nq-toast {
  position: fixed;
  left: 50%;
  top: 16px;
  z-index: 1100;
  transform: translate(-50%, calc(-100% - 40px));
  padding: 10px 16px;
  border-radius: var(--radius-pill);
  background: var(--ink);
  color: var(--bg);
  font-weight: 700;
  font-size: .9rem;
  box-shadow: 0 12px 30px -12px rgba(0, 0, 0, .6);
  transition: transform .4s var(--ease-out);
  pointer-events: none;
}
.nq-toast.show { transform: translate(-50%, 0); }

#nq-confetti { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 999; }

@media (min-width: 768px) {
  .nq-card { padding: 26px 28px 24px; }
  .nq-grid { grid-template-columns: 1.15fr 1fr; gap: 22px; align-items: start; }
  .nq-waiting { position: static; }
  .nq-modal { align-items: center; }
  .nq-sheet { border-radius: calc(var(--radius) + 6px); max-width: 560px; animation-name: tipPop; animation-duration: .25s; }
  .nq-sheet-grab { display: none; }
  .nq-help { display: grid; grid-template-columns: 1fr 1fr; align-items: start; }
}

/* ==========================================================================
   Entrada de la página (una sola vez, escalonada)
   ========================================================================== */
.tip-reveal .brand,
.tip-reveal .header-banner,
.tip-reveal .form-column > *,
.tip-reveal .summary-column > * {
  animation: tipRise .5s var(--ease-out) both;
}
.tip-reveal .header-banner { animation-delay: .04s; }
.tip-reveal .form-column > *:nth-child(2) { animation-delay: .08s; }
.tip-reveal .form-column > *:nth-child(3) { animation-delay: .12s; }
.tip-reveal .form-column > *:nth-child(4) { animation-delay: .16s; }
.tip-reveal .form-column > *:nth-child(5) { animation-delay: .2s; }
.tip-reveal .form-column > *:nth-child(n+6) { animation-delay: .24s; }
.tip-reveal .summary-column > *:nth-child(1) { animation-delay: .12s; }
.tip-reveal .summary-column > *:nth-child(2) { animation-delay: .2s; }

@keyframes tipRise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes tipFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes tipPop { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: none; } }
@keyframes tipSheetUp { from { transform: translateY(100%); } to { transform: none; } }
@keyframes tipBadge { from { opacity: 0; transform: scale(.6) rotate(-12deg); } to { opacity: 1; transform: none; } }
@keyframes tipBump { 0% { transform: scale(1); } 40% { transform: scale(1.06); } 100% { transform: scale(1); } }
@keyframes tipSpin { to { transform: rotate(360deg); } }
@keyframes tipRipple { from { transform: scale(.45); opacity: .9; } to { transform: scale(1.35); opacity: 0; } }
@keyframes tipBlink { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
@keyframes tipDots { 0% { content: ''; } 25% { content: '.'; } 50% { content: '..'; } 75% { content: '...'; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0s !important;
    transition-duration: .01ms !important;
  }
}
