/* Lista VIP de Artur's gate. Mismo estilo visual que la landing, pensado primero para el celular. */
@font-face {
  font-family: "Inter";
  src: url("/assets/inter.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  --ink: #0b0d12;
  --ink-2: #4a5160;
  --ink-3: #6b7282;
  --line: #e4e8f0;
  --bg: #ffffff;
  --bg-soft: #f4f7fc;
  --blue: #0a84ff;
  --blue-ink: #0062e0;
  --sky: #45a8f8;
  --navy: #003a8c;
  --ok: #067647;
  --bad: #b42318;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --gutter: 16px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; }
a { color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 8px; }
.wrap { width: 100%; max-width: 1120px; margin-inline: auto; padding-inline: var(--gutter); }

/* Botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 48px; padding: .6rem 1.3rem; max-width: 100%;
  border-radius: 999px; border: 1px solid transparent;
  background: var(--ink); color: #fff; font: inherit; font-weight: 600; text-align: center; text-decoration: none;
  cursor: pointer; box-shadow: 0 8px 24px -10px rgba(11, 13, 18, .45);
  transition: transform .4s var(--ease), background .3s;
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .6; cursor: progress; transform: none; }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); box-shadow: none; }
.btn-small { min-height: 44px; padding: .45rem 1rem; font-size: .93rem; }

/* Mensajes en línea junto a cada botón (✓ / ✗) */
.msg { font-size: .92rem; font-weight: 600; min-height: 0; }
.msg:empty { display: none; }
.msg.is-ok { color: var(--ok); }
.msg.is-error { color: var(--bad); }
.action-row { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem .9rem; margin-top: .7rem; }
.action-center { justify-content: center; margin-top: 0; }

/* Barra superior */
.top { border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, .9); }
.top-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem; padding-block: .6rem; }
.brand { display: inline-flex; align-items: center; gap: .5rem; text-decoration: none; font-weight: 800; letter-spacing: -.03em; font-size: 1.05rem; }
.lang { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem; }
.lang-btn {
  min-height: 44px; padding: 0 .9rem; border-radius: 999px; border: 1px solid var(--line);
  background: #fff; color: var(--ink-2); font: inherit; font-size: .9rem; font-weight: 600; cursor: pointer;
}
.lang-btn[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.msg-lang { flex-basis: 100%; text-align: right; font-size: .85rem; }

/* Portada */
.hero { background: linear-gradient(180deg, #e3f0ff 0%, #f3f8ff 60%, #ffffff 100%); padding: 40px 0 48px; }
.hero-inner { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 1rem; }
.kicker { display: inline-block; padding: .35rem .85rem; border-radius: 999px; background: #fff; border: 1px solid rgba(10, 132, 255, .2); color: var(--blue-ink); font-size: .85rem; font-weight: 700; }
h1 { font-size: clamp(2.2rem, 9vw, 4.6rem); line-height: 1.04; letter-spacing: -.045em; font-weight: 800; max-width: 14ch; }
.lead { color: var(--ink-2); font-size: clamp(1.02rem, 2.6vw, 1.22rem); max-width: 36rem; }
.counter { width: 100%; max-width: 26rem; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: .9rem 1rem; }
.counter-text { font-weight: 700; }
.bar { margin-top: .6rem; height: 8px; border-radius: 99px; background: var(--bg-soft); overflow: hidden; }
.bar i { display: block; height: 100%; width: 2%; border-radius: inherit; background: linear-gradient(90deg, var(--blue), var(--sky)); transition: width .8s var(--ease); }

/* Secciones */
section h2 { font-size: clamp(1.6rem, 5.5vw, 2.4rem); letter-spacing: -.035em; line-height: 1.12; font-weight: 800; }
.what, .plans { padding: 48px 0; }
.note { color: var(--ink-3); font-size: .93rem; margin-top: .4rem; }
.cards3 { display: grid; gap: 14px; margin-top: 1.4rem; }
.card { border: 1px solid var(--line); border-radius: 22px; padding: 1.2rem; background: #fff; }
.card h3 { margin-top: .8rem; font-size: 1.15rem; letter-spacing: -.02em; }
.card p { margin-top: .35rem; color: var(--ink-2); }
.card-ic { width: 48px; height: 48px; }
.card-ic--artur { width: 72px; height: 72px; margin: -12px; }
.card-team { display: flex; gap: .3rem; }
.card-svg { width: 44px; height: 44px; fill: none; stroke: var(--blue); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.benefit { padding: 0; }
.benefit-panel { border-radius: 26px; padding: 1.5rem 1.2rem; color: #fff; background: radial-gradient(120% 120% at 0% 0%, #1c89e4 0%, #0a4fb0 55%, #003a8c 100%); }
.benefit-list { margin: 1rem 0 0; padding: 0; list-style: none; display: grid; gap: .7rem; }
.benefit-list li { position: relative; padding-left: 1.7rem; }
.benefit-list li::before { content: "✓"; position: absolute; left: 0; top: 0; font-weight: 800; color: #bfe0ff; }

.plan-grid { display: grid; gap: 14px; margin-top: 1.4rem; }
.plan { border: 1px solid var(--line); border-radius: 22px; padding: 1.2rem; display: flex; flex-direction: column; gap: .6rem; background: #fff; }
.plan-vip { border-color: rgba(10, 132, 255, .35); box-shadow: 0 18px 40px -30px rgba(0, 58, 140, .6); }
.plan h3 { font-size: 1.15rem; letter-spacing: -.02em; }
.plan-price { color: var(--ink-2); }
.plan-price b { font-size: 1.5rem; color: var(--ink); letter-spacing: -.03em; }
.plan ul { margin: 0; padding-left: 1.1rem; color: var(--ink-2); display: grid; gap: .35rem; font-size: .95rem; }
.plan-vipbox { margin-top: auto; padding: .7rem .85rem; border-radius: 14px; background: var(--bg-soft); font-size: .92rem; font-weight: 600; color: var(--navy); }
.plan:not(.plan-vip) .plan-vipbox { color: var(--ink-3); }

/* Formulario */
.join { padding: 48px 0 56px; }
.join-panel { max-width: 600px; margin-inline: auto; border: 1px solid var(--line); border-radius: 26px; padding: 1.4rem 1.1rem; background: #fff; box-shadow: 0 30px 60px -45px rgba(0, 58, 140, .55); }
.form { display: grid; gap: 1rem; margin-top: 1.2rem; }
.field { display: grid; gap: .35rem; min-width: 0; }
.field label { font-weight: 600; }
.hint { color: var(--ink-3); font-size: .88rem; }
input[type="email"], input[type="text"], select {
  width: 100%; min-height: 48px; padding: .6rem .8rem; border-radius: 12px; border: 1px solid #cdd4e0;
  background: #fff; color: var(--ink); font: inherit; font-size: 16px;
}
input[aria-invalid="true"], select[aria-invalid="true"] { border-color: var(--bad); }
.at-input { display: flex; align-items: center; border: 1px solid #cdd4e0; border-radius: 12px; background: #fff; }
.at-input span { padding-left: .8rem; color: var(--ink-3); font-weight: 600; }
.at-input input { border: 0; min-width: 0; }
.at-input:focus-within { outline: 3px solid var(--blue); outline-offset: 2px; }
.at-input input:focus-visible { outline: none; }
.check { display: flex; align-items: flex-start; gap: .65rem; }
.check input { width: 22px; height: 22px; margin: .1rem 0 0; flex: none; accent-color: var(--blue); }
.privacy { border: 1px solid var(--line); border-radius: 14px; padding: .6rem .9rem; background: var(--bg-soft); font-size: .9rem; color: var(--ink-2); }
.privacy summary { cursor: pointer; font-weight: 600; color: var(--blue-ink); min-height: 32px; display: flex; align-items: center; }
.privacy p { margin-top: .55rem; overflow-wrap: anywhere; }
.turnstile { display: grid; gap: .4rem; margin-top: .9rem; min-height: 65px; }
.turnstile-box { min-height: 65px; max-width: 100%; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.done { display: grid; gap: .7rem; justify-items: start; }
.done:focus { outline: none; }
.done-mark { width: 64px; height: 64px; }
.done-pos { font-size: 1.25rem; font-weight: 800; letter-spacing: -.02em; color: var(--navy); }
.done h3 { margin-top: .5rem; font-size: 1.05rem; }

.foot { border-top: 1px solid var(--line); padding: 1.4rem 0 2rem; color: var(--ink-3); font-size: .9rem; }
.foot-inner { display: grid; gap: .25rem; overflow-wrap: anywhere; }

/* Panel del dueño */
.admin { padding: 32px 0 56px; }
.admin-panel { max-width: 860px; margin-inline: auto; display: grid; gap: 1.2rem; }
.admin .box { border: 1px solid var(--line); border-radius: 20px; padding: 1.1rem; background: #fff; }
.admin .box h2 { font-size: 1.25rem; }
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: .8rem; }
.stat { background: var(--bg-soft); border-radius: 14px; padding: .7rem .8rem; }
.stat b { display: block; font-size: 1.5rem; letter-spacing: -.03em; }
.stat span { color: var(--ink-3); font-size: .85rem; }
.table-wrap { overflow-x: auto; margin-top: .6rem; }
table { width: 100%; border-collapse: collapse; font-size: .93rem; }
th, td { text-align: left; padding: .45rem .5rem; border-bottom: 1px solid var(--line); }
th { color: var(--ink-3); font-weight: 600; }
td.num, th.num { text-align: right; }
.inline-field { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.inline-field input, .inline-field select { flex: 1 1 12rem; width: auto; }
input[type="password"] { width: 100%; min-height: 48px; padding: .6rem .8rem; border-radius: 12px; border: 1px solid #cdd4e0; font: inherit; font-size: 16px; }
textarea { width: 100%; min-height: 8rem; border-radius: 12px; border: 1px solid #cdd4e0; padding: .6rem; font: inherit; font-size: .85rem; }

@media (min-width: 720px) {
  :root { --gutter: 24px; }
  .hero { padding: 64px 0 72px; }
  .cards3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .plan-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .benefit-panel { padding: 2rem; }
  .join-panel { padding: 2rem; }
  .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (min-width: 1080px) {
  .plan-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .bar i { transition: none; }
}
