/* Kreatiu — asistente de la oferta, entrada para estudios, panel de estudio y celebración.
   Solo usa los tokens de styles.css. Sin estilos en línea: la CSP no los permite. */

/* ---------- Entrada para estudios ---------- */
.est-hero { max-width: 1100px; margin: 0 auto; padding: 40px 24px 24px; display: grid; grid-template-columns: 1.3fr 1fr; gap: 36px; align-items: center; }
.est-hero h1 { font-size: clamp(40px, 6vw, 72px); font-weight: 800; }
.est-hero .lead { margin: 18px 0 26px; }
.big-cta { font-size: 18px; padding: 18px 26px; }
.cta-meta { display: block; margin-top: 12px; font-size: 14px; font-weight: 600; color: var(--ink-soft); }
.waiting { background: #fff; border: var(--line); border-radius: 20px; box-shadow: var(--shadow); padding: 22px; }
.waiting-text { margin: 0 0 14px; font: 800 28px/1.15 var(--font-display); letter-spacing: -0.02em; }
.faces { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.faces .anon-dot { width: 34px; height: 34px; margin-left: 0; }
.faces .anon-dot .icon { width: 18px; height: 18px; }
.faces .anon-dot:nth-child(3n) { background: var(--sun); }
.faces .anon-dot:nth-child(4n) { background: var(--mint-soft); }
.est-steps { max-width: 1100px; margin: 0 auto; padding: 24px 24px 64px; }
.quote-strip { max-width: 760px; margin: 0 0 36px; font: 700 26px/1.25 var(--font-display); }
.est-slogan { margin: 32px 0 0; font: 800 28px var(--font-display); }
.destape { margin-top: 40px; padding: 22px; border: var(--line); border-radius: var(--radius); background: var(--sun); box-shadow: var(--shadow-sm); }
.destape h2 { font-size: 26px; margin-bottom: 10px; }
.destape ul { margin: 0; padding-left: 20px; display: grid; gap: 6px; }

/* ---------- Marco del asistente ---------- */
.wizard { max-width: 1100px; margin: 0 auto; padding: 8px 24px 64px; }
.wizard-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 10px; }
.wizard-step { margin: 0; font-weight: 700; font-size: 14px; color: var(--ink-soft); }
.wizard-exit { font-weight: 700; font-size: 14px; }
.stepper { display: flex; gap: 6px; margin-bottom: 26px; }
.stepper span { flex: 1; height: 6px; border-radius: 999px; background: var(--paper-2); border: 1.5px solid var(--ink); }
.stepper span.on { background: var(--cherry); }
.wizard-body { max-width: 720px; margin: 0 auto; }
.wizard-body.wizard-with-aside { max-width: 1000px; display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 40px; align-items: start; }
.wizard-body.wizard-preview { max-width: 1060px; }
.wizard-question { font-size: clamp(30px, 4.6vw, 46px); font-weight: 800; margin: 6px 0 10px; }
.wizard-sub { margin: 0 0 24px; font-size: 18px; color: var(--ink-soft); }
.wizard-group { margin: 24px 0 12px; font-size: 20px; }
.wizard-safe {
  display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 30px auto 0; padding: 0; max-width: 720px;
  list-style: none; font-size: 14px; font-weight: 600; color: var(--ink-soft);
}
.wizard-safe li { display: inline-flex; align-items: center; gap: 6px; }
.wizard-safe .icon { color: var(--mint-ink); }
.wizard-nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 26px; }
.wizard-back { display: inline-flex; align-items: center; gap: 6px; margin: 0; }
.wizard-nav .btn { gap: 8px; }
.field-error { margin: 0; color: var(--cherry-dark); font-size: 14px; font-weight: 700; }
.char-count { justify-self: end; }
.input-short { max-width: 180px; }
textarea.input { resize: vertical; min-height: 5em; }

/* ---------- Tarjetas de elección ---------- */
.choices { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; }
.choices.one { grid-template-columns: 1fr; }
.choice {
  position: relative; display: flex; align-items: center; gap: 14px; width: 100%; text-align: left;
  padding: 16px 18px; color: var(--ink); background: #fff; border: var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); font: inherit; text-decoration: none; cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease;
}
button.choice:hover, a.choice:hover { transform: translate(-2px, -2px); box-shadow: 5px 5px 0 var(--ink); }
button.choice:focus-visible, a.choice:focus-visible { outline: 3px solid var(--lilac); outline-offset: 3px; }
.choice.is-on { background: var(--lilac-soft); }
.choice.featured { grid-column: 1 / -1; background: var(--sun); }
.choice.is-disabled { cursor: default; background: var(--paper-2); border-style: dashed; box-shadow: none; }
.choice-icon {
  display: grid; place-items: center; flex: none; width: 46px; height: 46px;
  border: var(--line); border-radius: var(--radius-sm); background: var(--lilac-soft);
}
.choice-icon .icon { width: 26px; height: 26px; }
.choice-text { display: grid; gap: 2px; min-width: 0; }
.choice-text b { font: 700 19px/1.15 var(--font-display); }
.choice-text small { font-size: 14px; color: var(--ink-soft); }
.choice-arrow { margin-left: auto; }
.choice-soon { margin-left: auto; transform: rotate(4deg); }
.choice .pay {
  display: inline-block; justify-self: start; margin-top: 6px; padding: 3px 10px;
  font: 700 13px var(--font-body); background: var(--mint-soft); border: 1.5px solid var(--ink); border-radius: 999px;
}

/* ---------- Paso 2: color de portada y carta en miniatura ---------- */
.swatches { display: flex; flex-wrap: wrap; gap: 12px; }
.swatch {
  position: relative; display: block; width: 44px; height: 44px; cursor: pointer;
  border: var(--line); border-radius: 50%;
  background-color: var(--c); background-image: radial-gradient(var(--ink) 1.2px, transparent 1.3px); background-size: 10px 10px;
}
.swatch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.swatch:has(input:checked) { box-shadow: 0 0 0 3px var(--paper), 0 0 0 6px var(--ink); }
.swatch:has(input:focus-visible) { outline: 3px solid var(--lilac); outline-offset: 6px; }
.wizard-aside { position: sticky; top: 16px; }
.offer-mini .offer-cover { min-height: 160px; }

/* ---------- Paso 4: cuánto ---------- */
.type-switch { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; }
.type-switch .chip { text-decoration: none; }
.currency-field { margin-bottom: 14px; }
.budget-card { background: #fff; border: var(--line); border-radius: 20px; box-shadow: var(--shadow); padding: 24px; }
.big-n { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.big-n b { font: 800 clamp(60px, 11vw, 104px)/1 var(--font-display); color: var(--cherry); letter-spacing: -0.03em; }
.big-n span { max-width: 14em; font: 700 20px/1.2 var(--font-display); }
.range { width: 100%; height: 28px; margin: 12px 0 4px; accent-color: var(--cherry); }
.range-ends { display: flex; justify-content: space-between; font-size: 13px; font-weight: 600; color: var(--ink-soft); }
.breakdown { margin: 16px 0 4px; font: 700 19px/1.3 var(--font-display); }
.max-line { margin: 0 0 6px; font-size: 15px; color: var(--ink-soft); }
.budget-block { margin: 18px 0 0; padding-top: 16px; border-top: 2px dashed var(--paper-2); }
.inline-edit { margin-top: 14px; font-weight: 700; font-size: 14px; }
.inline-edit summary { cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.inline-edit .field { margin: 10px 0 0; }
.rights-block { margin-top: 18px; }
.free-note { margin: 18px 0 14px; font-size: 15px; }
.terms { background: #fff; border: var(--line); border-radius: var(--radius); padding: 0 18px; }
.terms > summary { display: grid; gap: 2px; padding: 14px 0; cursor: pointer; }
.terms-title { font: 800 18px var(--font-display); }
.terms-line { font-size: 14px; color: var(--ink-soft); }
.terms[open] > summary { border-bottom: 2px dashed var(--paper-2); margin-bottom: 16px; }
.terms .note { margin-bottom: 18px; }

/* ---------- Paso 5: contador de creadoras ---------- */
.counter {
  margin: 22px 0 0; padding: 18px 22px; color: var(--paper); background: var(--ink);
  border-radius: 20px; box-shadow: 6px 6px 0 var(--cherry);
}
.counter-text { margin: 0; font: 800 26px/1.2 var(--font-display); }

/* ---------- Paso 7: así la verán ---------- */
.preview-grid { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 32px; align-items: start; }
.preview-card { max-width: 340px; }
.final-big { margin: 0 0 12px; font: 800 clamp(28px, 4vw, 42px)/1.1 var(--font-display); letter-spacing: -0.02em; }
.final-big b { color: var(--cherry); }
.preview-conditions { margin-top: 18px; padding: 8px 18px 14px; background: #fff; border: var(--line); border-radius: var(--radius); }
.preview-form { margin-top: 26px; }

/* ---------- Panel y vista de la oferta ---------- */
.studio-main { max-width: 860px; }
.studio-dash { max-width: none; }
.my-offers { display: grid; gap: 10px; margin: 0 0 16px; padding: 0; list-style: none; }
.my-offer {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px; color: var(--ink); text-decoration: none;
  background: var(--paper); border: var(--line); border-radius: var(--radius-sm);
}
.my-offer:hover { background: #fff; }
.my-offer-thumb {
  display: grid; place-items: center; flex: none; width: 52px; height: 52px; border: var(--line); border-radius: var(--radius-sm);
  background-color: var(--c, var(--lilac)); background-image: radial-gradient(var(--ink) 1.2px, transparent 1.3px); background-size: 10px 10px;
}
.my-offer-thumb .icon { padding: 3px; border-radius: 50%; background: var(--paper); width: 28px; height: 28px; }
.my-offer-text { display: grid; gap: 1px; min-width: 0; }
.my-offer-text small { color: var(--ink-soft); }
.offer-head { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-bottom: 20px; }
.offer-head-text { flex: 1; min-width: 220px; display: grid; gap: 6px; justify-items: start; }
.offer-head h1 { font-size: clamp(30px, 4vw, 42px); font-weight: 800; }
.offer-head p { margin: 0; }
.offer-status { font-weight: 700; }
.offer-summary { color: var(--ink-soft); }
.offer-head-actions .btn { gap: 8px; }
.offer-detail, .offer-tab { margin-top: 18px; }
.empty-state { margin: 0; font: 700 20px/1.25 var(--font-display); }

/* ---------- Celebración ---------- */
.celebrate { position: relative; overflow: hidden; text-align: center; }
.celebrate > *:not(.confetti-field) { position: relative; z-index: 1; }
.celebrate h1 { margin: 10px 0 8px; }
.celebrate-sub { margin: 0 0 22px; font-size: 19px; color: var(--ink-soft); }
.celebrate-seal { display: block; margin: 0 auto; transform: rotate(-6deg); }
.seal-body { fill: var(--sun); stroke: var(--ink); stroke-width: 3; stroke-linejoin: round; }
.seal-check { stroke: var(--ink); stroke-width: 9; stroke-linecap: round; stroke-linejoin: round; }
.next3 { display: grid; gap: 12px; margin: 0 0 24px; text-align: left; }
.share-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.share-row .input { flex: 1; min-width: 200px; }
.share-row .btn { gap: 8px; }
.confetti-field { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.confetti-piece {
  position: absolute; top: 4%; width: 10px; height: 16px; background: var(--cherry); border-radius: 2px;
  animation: confetti-fall 3.2s ease-in infinite;
}
.confetti-piece:nth-child(3n) { background: var(--sun); }
.confetti-piece:nth-child(3n + 1) { background: var(--mint); width: 8px; height: 8px; border-radius: 50%; }
.confetti-piece:nth-child(4n) { background: var(--sky); }
.confetti-piece:nth-child(1) { left: 5%; animation-delay: 0s; }
.confetti-piece:nth-child(2) { left: 12%; animation-delay: .6s; }
.confetti-piece:nth-child(3) { left: 20%; animation-delay: 1.3s; }
.confetti-piece:nth-child(4) { left: 28%; animation-delay: .2s; }
.confetti-piece:nth-child(5) { left: 36%; animation-delay: 1.8s; }
.confetti-piece:nth-child(6) { left: 44%; animation-delay: .9s; }
.confetti-piece:nth-child(7) { left: 52%; animation-delay: 2.4s; }
.confetti-piece:nth-child(8) { left: 60%; animation-delay: .4s; }
.confetti-piece:nth-child(9) { left: 68%; animation-delay: 1.5s; }
.confetti-piece:nth-child(10) { left: 76%; animation-delay: .1s; }
.confetti-piece:nth-child(11) { left: 84%; animation-delay: 2s; }
.confetti-piece:nth-child(12) { left: 91%; animation-delay: .7s; }
.confetti-piece:nth-child(13) { left: 96%; animation-delay: 1.1s; }
.confetti-piece:nth-child(14) { left: 48%; animation-delay: 2.8s; }
@keyframes confetti-fall {
  0% { transform: translateY(-20px) rotate(0deg); opacity: 1; }
  90% { opacity: 1; }
  100% { transform: translateY(420px) rotate(420deg); opacity: 0; }
}

/* ---------- Móvil y movimiento reducido ---------- */
@media (max-width: 820px) {
  .est-hero, .preview-grid, .wizard-body.wizard-with-aside { grid-template-columns: 1fr; }
  .wizard-aside { position: static; max-width: 340px; order: 2; }
}
@media (max-width: 480px) {
  .est-hero, .est-steps, .wizard { padding-left: 16px; padding-right: 16px; }
  .wizard-nav { flex-direction: column-reverse; align-items: stretch; }
  .wizard-nav .btn, .wizard-nav .btn-block { width: 100%; }
  .wizard-back { justify-content: center; }
  .est-hero .btn, .est-hero .inline-form { width: 100%; }
  .budget-card { padding: 18px; }
  .choices { grid-template-columns: 1fr; }
  .offer-head-actions, .offer-head-actions .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .confetti-piece { animation: none; opacity: .9; }
  .confetti-piece:nth-child(odd) { top: 8%; }
  .confetti-piece:nth-child(even) { top: 16%; }
  .choice { transition: none; }
}
.field[hidden] { display: none; }
