/* Kreatiu — formularios, tarjetas y paneles de la app.
   Usa los tokens de styles.css. Adaptado de mockup/app.kreatiu.com/flow.css. */

/* ---------- Cabecera ---------- */
.top-actions { flex-wrap: wrap; justify-content: flex-end; }
.lang-switch { display: flex; gap: 4px; }
.lang-switch a {
  font: 700 14px var(--font-body); text-decoration: none; padding: 6px 10px;
  border: 2px solid transparent; border-radius: 999px;
}
.lang-switch a:hover { background: var(--paper-2); }
.lang-switch a[aria-current="page"] { border-color: var(--ink); background: #fff; }
.inline-form { display: inline; margin: 0; }

.flash {
  max-width: 560px; margin: 8px auto 0; padding: 12px 18px;
  background: var(--mint-soft); border: 2px solid var(--ink); border-radius: 999px;
  font-weight: 700; text-align: center; box-shadow: var(--shadow-sm);
}

/* ---------- Páginas con tarjeta ---------- */
.flow-main { max-width: 1200px; margin: 0 auto; padding: 32px 24px 64px; }
.flow-narrow { max-width: 560px; margin: 0 auto; }
.back { display: inline-block; font-weight: 700; text-decoration: none; margin-bottom: 18px; }
.back:hover { text-decoration: underline; }
.panel {
  background: #fff; border: var(--line); border-radius: 20px; box-shadow: var(--shadow); padding: 28px;
}
.panel h1 { font-size: clamp(28px, 4vw, 36px); font-weight: 800; margin-bottom: 8px; }
.panel > p { color: var(--ink-soft); margin: 0 0 18px; }
.panel .btn + .btn { margin-top: 10px; }
.or { font-size: 15px; text-align: center; margin: 18px 0 0; }
.small-links { margin: 16px 0 0; text-align: center; font-size: 15px; }

/* ---------- Formularios ---------- */
.field { display: grid; gap: 6px; margin-bottom: 16px; border: 0; padding: 0; min-width: 0; }
.field label, .field .label, .field legend { font-weight: 700; font-size: 15px; padding: 0; }
.field small { color: var(--ink-soft); }
.input {
  font: 500 16px var(--font-body); color: var(--ink); background: var(--paper);
  border: var(--line); border-radius: var(--radius-sm); padding: 12px 14px; width: 100%;
}
.input:focus-visible, .btn:focus-visible, .link-button:focus-visible { outline: 3px solid var(--lilac); outline-offset: 2px; }
.input-code { font: 800 28px var(--font-display); letter-spacing: .3em; text-align: center; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; margin-bottom: 14px; }
.check input { width: 20px; height: 20px; accent-color: var(--cherry); margin-top: 2px; flex: none; }
fieldset.roles { border: 0; padding: 0; margin: 20px 0 16px; min-width: 0; }
.country { margin: 0; font-weight: 600; }

.chips-check { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-check { cursor: pointer; }
.chip-check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip-check span {
  display: inline-block; font: 600 14px var(--font-body); padding: 7px 13px;
  border: var(--line); border-radius: 999px; background: var(--paper);
}
.chip-check input:checked + span { background: var(--ink); color: var(--paper); }
.chip-check input:focus-visible + span { outline: 3px solid var(--lilac); outline-offset: 2px; }

.link-button {
  background: none; border: 0; padding: 4px; font: 700 15px var(--font-body); color: var(--ink);
  text-decoration: underline; text-underline-offset: 3px; cursor: pointer;
}
.resend { margin-top: 14px; text-align: center; }

/* ---------- Avisos ---------- */
.note { background: var(--lilac-soft); border: 1.5px solid var(--ink); border-radius: var(--radius-sm); padding: 12px 14px; font-size: 15px; margin: 0 0 16px; }
.note-ok { background: var(--mint-soft); }
.note-error { background: #ffe1e8; }

/* ---------- Pestañas del login ---------- */
.tabs { display: flex; gap: 8px; margin: 0 0 18px; }
.tab {
  flex: 1; text-align: center; text-decoration: none; font-weight: 700; font-size: 15px;
  padding: 10px 12px; border: var(--line); border-radius: 999px; background: var(--paper);
}
.tab:hover { background: #fff; }
.tab.is-on { background: var(--ink); color: var(--paper); }

/* ---------- Panel de la creadora ---------- */
.hello { margin-bottom: 22px; }
.hello h1 { font-size: clamp(30px, 4vw, 42px); font-weight: 800; }
.hello p { margin: 6px 0 0; color: var(--ink-soft); }
.guide { background: #fff; border: var(--line); border-radius: 20px; box-shadow: var(--shadow); padding: 24px; max-width: 640px; }
.guide h2 { font-size: 26px; font-weight: 800; margin-bottom: 8px; }
.guide p { margin: 0 0 16px; color: var(--ink-soft); }
.panel-logout { display: block; margin-top: 24px; }

/* ---------- Página legal ---------- */
.legal { max-width: 720px; margin: 0 auto; }
.legal h1 { font-size: clamp(32px, 5vw, 44px); font-weight: 800; margin-bottom: 8px; }
.legal h2 { font-size: 22px; margin: 28px 0 8px; }
.legal p, .legal li { font-size: 17px; }
.draft { background: var(--lilac-soft); border: 1.5px dashed var(--ink); border-radius: var(--radius-sm); padding: 10px 14px; font-size: 14px; margin: 0 0 24px; }

/* ---------- Portada: carta de la CEO ---------- */
.why { padding: 24px; }
.why-inner {
  max-width: 760px; margin: 0 auto; background: #fff; border: var(--line); border-radius: 20px;
  box-shadow: var(--shadow); padding: 32px;
}
.why h2 { font-size: clamp(28px, 4vw, 40px); font-weight: 800; margin-bottom: 14px; }
.why p { font-size: 18px; margin: 0 0 14px; }
.why-men { background: var(--sun); border: var(--line); border-radius: var(--radius); padding: 14px 16px; box-shadow: var(--shadow-sm); }
.why-signature { font: 700 40px/1 var(--font-hand); color: var(--cherry); transform: rotate(-2deg); display: inline-block; margin: 10px 0 0 !important; }
.studios .sticker { margin-top: 4px; }

/* ---------- Móvil ---------- */
@media (max-width: 560px) {
  .flow-main { padding: 20px 16px 48px; }
  .panel, .guide, .why-inner { padding: 20px; }
  .why { padding: 16px; }
  .top { padding: 12px 16px; }
  .foot { gap: 8px; }
  .tabs { flex-direction: column; }
}

/* ---------- Confianza: indicador de la cabecera ---------- */
.trust { position: relative; }
.trust > summary { list-style: none; }
.trust > summary::-webkit-details-marker { display: none; }
.trust > summary::marker { content: ""; }
.trust-chip {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  font: 700 14px var(--font-body); color: var(--ink);
  background: #fff; border: var(--line); border-radius: 999px; padding: 4px 14px 4px 5px;
  box-shadow: var(--shadow-sm); user-select: none;
}
.trust-chip:focus-visible { outline: 3px solid var(--lilac); outline-offset: 2px; }
.trust-chip-badge { background: var(--sun); }
.trust-chip-reviewed { background: var(--ink); color: var(--paper); }
.trust-pct { font: 800 15px var(--font-display); }
.trust-ring { flex: none; display: block; }
.ring-bg { fill: none; stroke: var(--paper-2); }
.ring-fg { fill: none; stroke: var(--mint); stroke-linecap: round; }
.trust-ring-badge .ring-bg { stroke: rgba(34, 22, 46, .18); }
.trust-ring-badge .ring-fg { stroke: var(--ink); }
.trust-ring-reviewed .ring-bg { stroke: rgba(255, 247, 238, .25); }
.trust-ring-reviewed .ring-fg { stroke: var(--sun); }
.trust-panel {
  position: absolute; right: 0; top: calc(100% + 12px); width: 340px; z-index: 20;
  background: var(--paper); border: var(--line); border-radius: var(--radius); box-shadow: 6px 6px 0 var(--ink);
  padding: 18px; color: var(--ink); max-height: calc(100vh - 100px); overflow-y: auto;
}
.trust-title { font: 800 18px/1.15 var(--font-display); margin: 0 0 4px; }
.trust-sub { margin: 0 0 12px; font-size: 14px; color: var(--ink-soft); }

/* ---------- Confianza: lista de tareas ---------- */
.trust-tasks { display: grid; gap: 10px; }
.trust-next { background: #fff; border: var(--line); border-radius: var(--radius-sm); padding: 12px 14px; box-shadow: var(--shadow-sm); }
.trust-next-title { font: 800 17px/1.2 var(--font-display); margin: 0 0 2px; }
.trust-next-desc { margin: 0 0 8px; font-size: 14px; color: var(--ink-soft); }
.trust-next-meta { margin: 0; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 14px; }
.trust-soon {
  display: inline-block; font: 700 12px var(--font-body); padding: 2px 10px; border: 1.5px solid var(--ink);
  border-radius: 999px; background: var(--lilac-soft);
}
.trust-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.trust-task { display: grid; grid-template-columns: 22px 1fr auto; gap: 8px; align-items: center; font-size: 14px; font-weight: 600; }
.trust-task-text { display: grid; gap: 1px; min-width: 0; }
.trust-task small { color: var(--ink-soft); font-weight: 700; }
.trust-task .dot {
  width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--ink); display: grid;
  place-items: center; font-size: 12px; background: #fff; line-height: 1;
}
.trust-task.is-done .trust-task-title, .trust-task.is-done .trust-task-meta { color: var(--ink-soft); text-decoration: line-through; }
.trust-task.is-done .dot { background: var(--mint); color: #fff; }
.trust-task.is-locked { color: var(--ink-soft); }
.trust-task.is-locked .dot { border-style: dashed; }
.trust-group { margin: 4px 0 -2px; font: 700 12px var(--font-body); text-transform: uppercase; letter-spacing: .06em; color: var(--ink-soft); }
.trust-foot { font-weight: 700; font-size: 14px; margin: 4px 0 0; }

/* ---------- Panel: bloques ---------- */
.dash { display: grid; gap: 18px; max-width: 640px; }
.dash-card { background: #fff; border: var(--line); border-radius: 20px; box-shadow: var(--shadow); padding: 22px; }
.dash-card h2 { font-size: 22px; font-weight: 800; margin: 0 0 8px; }
.dash-card p { margin: 0 0 10px; }
.dash-card p:last-child { margin-bottom: 0; }
.trust-card-score { font-size: 18px; }
.trust-bar { width: 100%; height: 14px; margin: 0 0 14px; border: var(--line); border-radius: 999px; background: var(--paper-2); overflow: hidden; accent-color: var(--mint); appearance: none; }
.trust-bar::-webkit-progress-bar { background: var(--paper-2); }
.trust-bar::-webkit-progress-value { background: var(--mint); }
.trust-bar::-moz-progress-bar { background: var(--mint); }
.empty-state { font: 700 20px/1.25 var(--font-display); }
.offers-card { background: var(--paper); box-shadow: none; border-style: dashed; }
.level-name { font: 800 18px var(--font-display); }
.plus-card { background: var(--sun); }
.panel-links { display: flex; gap: 18px; flex-wrap: wrap; margin: 24px 0 0; font-weight: 700; }

/* ---------- Modal de emails de ofertas ---------- */
.modal {
  position: fixed; inset: 0; z-index: 40; display: grid; place-items: center; padding: 16px;
  background: rgba(34, 22, 46, .55); overflow-y: auto;
}
.modal-card {
  width: 100%; max-width: 480px; background: var(--paper); border: var(--line); border-radius: 20px;
  box-shadow: var(--shadow); padding: 26px;
}
.modal-card h2 { font-size: 24px; font-weight: 800; margin: 0 0 10px; }
.modal-card h2:focus { outline: none; }
.modal-card p { margin: 0 0 18px; color: var(--ink-soft); }
.modal-actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- Modal de celebración (Humana Verificada) ---------- */
.modal-celebrate .modal-card { position: relative; overflow: hidden; text-align: center; background: var(--lilac-soft); }
.modal-celebrate .modal-card > * { position: relative; z-index: 1; }
.modal-celebrate .modal-card > .confetti { position: absolute; z-index: 0; }
.modal-celebrate .modal-actions { justify-content: center; }
.celebrate-emoji { font-size: 56px; line-height: 1; margin: 0 0 8px; }
.modal-celebrate .modal-card p.celebrate-points {
  margin: 0 0 8px; font: 800 64px/1 var(--font-display); color: var(--cherry); font-variant-numeric: tabular-nums;
}
.modal-celebrate .modal-card p.muted { margin-bottom: 22px; }
.confetti {
  top: -14px; width: 10px; height: 16px; border-radius: 2px; opacity: 0; pointer-events: none;
  background: var(--cherry); animation: confetti-fall 3.2s ease-in infinite;
}
.confetti:nth-of-type(3n) { background: var(--sun); }
.confetti:nth-of-type(3n + 1) { background: var(--mint); }
.confetti:nth-of-type(4n) { background: var(--sky); width: 8px; height: 8px; border-radius: 50%; }
.confetti:nth-of-type(1) { left: 6%; animation-delay: 0s; }
.confetti:nth-of-type(2) { left: 15%; animation-delay: .7s; }
.confetti:nth-of-type(3) { left: 24%; animation-delay: .3s; }
.confetti:nth-of-type(4) { left: 33%; animation-delay: 1.4s; }
.confetti:nth-of-type(5) { left: 42%; animation-delay: .1s; }
.confetti:nth-of-type(6) { left: 51%; animation-delay: 1s; }
.confetti:nth-of-type(7) { left: 60%; animation-delay: .5s; }
.confetti:nth-of-type(8) { left: 69%; animation-delay: 1.8s; }
.confetti:nth-of-type(9) { left: 77%; animation-delay: .2s; }
.confetti:nth-of-type(10) { left: 85%; animation-delay: 1.2s; }
.confetti:nth-of-type(11) { left: 92%; animation-delay: .8s; }
.confetti:nth-of-type(12) { left: 49%; animation-delay: 2.1s; }
@keyframes confetti-fall {
  0% { transform: translateY(0) rotate(0deg); opacity: 0; }
  10% { opacity: 1; }
  100% { transform: translateY(420px) rotate(540deg); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .confetti { animation: none; opacity: 1; top: 10px; }
  .confetti:nth-of-type(n + 7) { display: none; }
}

/* ---------- Confianza: móvil ---------- */
@media (max-width: 560px) {
  .trust-label { display: none; }
  .trust-chip { padding-right: 10px; }
  .trust { position: static; }
  .trust-panel { position: fixed; left: 16px; right: 16px; top: 64px; width: auto; max-height: calc(100vh - 80px); }
  .dash-card { padding: 18px; }
  .modal-actions .btn { width: 100%; }
}

/* Trust task that can already be done */
.trust-go { padding: 6px 14px; font-size: 13.5px; box-shadow: 2px 2px 0 var(--ink); }
a.trust-task-title { color: inherit; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- AJAX de formularios de acceso ---------- */
[data-ajax-error] { background: #ffe1e8; border: 1.5px solid var(--ink); border-radius: var(--radius-sm); padding: 12px 14px; font-size: 15px; margin: 0 0 16px; }
[data-ajax-error][hidden], [data-resend][hidden] { display: none; }
.btn.is-loading { cursor: wait; opacity: .75; }
.btn-spinner {
  display: inline-block; width: 1em; height: 1em; flex: none;
  border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%;
  animation: btn-spin .7s linear infinite;
}
@keyframes btn-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .btn-spinner { animation-duration: 2.4s; }
}

/* ---------- Redes verificadas ---------- */
.kicker { font: 700 13px var(--font-body); text-transform: uppercase; letter-spacing: .06em; color: var(--cherry); margin: 0 0 6px; }
.net-title { font-size: 20px; font-weight: 800; margin: 22px 0 10px; }
.nets { display: grid; gap: 10px; margin: 0 0 16px; padding: 0; list-style: none; }
.net {
  display: grid; grid-template-columns: 40px 1fr auto; gap: 12px; align-items: center;
  border: 2px solid var(--ink); border-radius: var(--radius-sm); padding: 10px 12px; background: var(--paper);
}
.net small { display: block; color: var(--ink-soft); font-size: 13px; }
.net small a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.net-ico {
  width: 40px; height: 40px; border-radius: 10px; border: 2px solid var(--ink);
  display: grid; place-items: center; font: 800 15px var(--font-display); color: #fff; background: var(--ink);
}
.net-ico-youtube { background: #e03a2f; }
.net-ico-tiktok { background: #22162e; }
.net-ico-twitch { background: #7c5cff; }
.net-ico-instagram { background: #d92b62; }
.net-ico-kick { background: #1a8f45; }
.net-ico-x { background: #3a2e48; }
.net-ico-fake { background: #1fae78; }
.net-go { font-weight: 700; font-size: 14px; cursor: pointer; }
.net-connect { padding: 8px 14px; font-size: 14px; box-shadow: 2px 2px 0 var(--ink); }
.net-account { align-items: start; }
.net-disconnect summary { list-style: none; text-align: right; }
.net-disconnect summary::-webkit-details-marker { display: none; }
.net-disconnect[open] { grid-column: 1 / -1; }
.net-disconnect p { margin: 8px 0; font-size: 14px; }
.net-bonus { display: inline-block; margin-left: 6px; font-weight: 800; color: var(--mint-ink); }
.net-foot { font-size: 14px; }
.oauth { border: 2px solid var(--ink); border-radius: var(--radius); padding: 18px; background: var(--paper); }
.oauth ul { margin: 8px 0 16px; padding-left: 20px; }
@media (max-width: 560px) {
  .net { grid-template-columns: 40px 1fr; }
  .net > form, .net > details { grid-column: 1 / -1; }
}
/* ---------- Bio ---------- */
textarea.input { resize: vertical; min-height: 112px; line-height: 1.45; }
.bio-counter { justify-self: end; font-variant-numeric: tabular-nums; }
.chip-check input:disabled + span { opacity: .45; cursor: not-allowed; }
/* ---------- Métodos de cobro ---------- */
fieldset.roles legend.label { font-weight: 700; font-size: 15px; padding: 0; margin-bottom: 10px; }
.panel > p.pay-kicker { margin: 0 0 6px; font: 700 13px var(--font-body); letter-spacing: .06em; text-transform: uppercase; color: var(--cherry); }
.role small.pay-region { font-style: italic; }
.pay-more { margin-top: 14px; }
.pay-more summary { cursor: pointer; font-weight: 600; margin-bottom: 10px; }
.pay-more .roles { margin: 0; }
/* ---------- Revisión manual rechazada ---------- */
.hv-rejected-card { background: var(--paper-2); }
