/* ============================================================
   INITIUM × CRIPTO LATIN FEST — landing de registro
   Paleta e identidad tomadas del mockup aprobado; tipografia
   Geist, la definitiva de initiumapp.co.
   ============================================================ */

@import url("https://fonts.googleapis.com/css2?family=Geist:wght@400;500;600;700&display=swap");

:root {
  /* Superficies */
  --bg:          #FEFDFD;
  --surface:     #FFFFFF;
  --surface-2:   #F9F9FC;
  --lavender:    #EEECFD;
  --line:        #E8E9F3;
  --line-2:      #D8DAEA;

  /* Marca */
  --violet:      #4F46E5;
  --violet-600:  #4338CA;
  --violet-deep: #2D2872;

  /* Texto */
  --ink:         #282D46;
  --body:        #5A6070;
  --muted:       #878CA0;
  --on-violet:   #FFFFFF;

  /* Estado */
  --err:         #DC2626;
  --ok:          #059669;

  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --radius: 14px;
  --shadow-sm: 0 1px 2px rgba(40, 45, 70, 0.05);
  --shadow-md: 0 8px 28px rgba(40, 45, 70, 0.08);
  --shadow-lg: 0 24px 60px rgba(45, 40, 114, 0.16);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--body);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.shell { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* ============================================================
   HEADER
   ============================================================ */
.nav {
  border-bottom: 1px solid var(--line);
  background: rgba(254, 253, 253, 0.88);
  backdrop-filter: blur(10px);
  position: sticky; top: 0; z-index: 50;
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px; gap: 16px;
}
.wordmark {
  font-weight: 600; font-size: 19px; letter-spacing: 0.14em;
  color: var(--ink); white-space: nowrap;
}
.nav-social { display: flex; align-items: center; gap: 10px; }
.nav-social a {
  width: 34px; height: 34px; border-radius: 9px;
  border: 1px solid var(--line);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--ink); transition: all 160ms var(--ease);
}
.nav-social a:hover { border-color: var(--violet); color: var(--violet); background: var(--lavender); }
.nav-social svg { width: 17px; height: 17px; }

/* ============================================================
   HERO + LAYOUT
   ============================================================ */
/* overflow-x contiene el resplandor decorativo de ::before, que mide 640px y
   se sale 220px a la derecha: sin esto depende del overflow-x del body. */
.hero { padding: 44px 0 72px; position: relative; overflow-x: hidden; }
.hero::before {
  content: ""; position: absolute; top: -180px; right: -220px;
  width: 640px; height: 640px; border-radius: 50%;
  background: radial-gradient(circle, rgba(79,70,229,0.09), transparent 66%);
  pointer-events: none; z-index: 0;
}
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 1.18fr) minmax(0, 1fr);
  gap: 56px; align-items: start; position: relative; z-index: 1;
}

.eyebrow {
  display: inline-block;
  font-size: 12px; font-weight: 600; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--violet);
  margin-bottom: 18px;
}
h1 {
  font-size: clamp(30px, 4.4vw, 45px); line-height: 1.12;
  letter-spacing: -0.025em; font-weight: 600;
  color: var(--ink); margin: 0 0 16px;
}
h1 .accent { color: var(--violet); display: block; }
.lede { font-size: 16px; max-width: 46ch; margin: 0 0 30px; }

/* ============================================================
   FORMULARIO
   ============================================================ */
.step { margin-bottom: 28px; }
.step-head {
  display: flex; align-items: center; gap: 10px; margin-bottom: 14px;
}
.step-num {
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--violet); color: #fff;
  font-size: 12px; font-weight: 600;
  display: inline-flex; align-items: center; justify-content: center;
  flex: 0 0 auto;
}
.step-title { font-size: 16px; font-weight: 600; color: var(--ink); }
.step-note { font-size: 13.5px; color: var(--muted); font-weight: 400; }

.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label {
  display: block; font-size: 13.5px; font-weight: 500;
  color: var(--ink); margin-bottom: 6px;
}
.req { color: var(--violet); }
.field input {
  width: 100%; height: 46px; padding: 0 14px;
  font-family: var(--sans); font-size: 14.5px; color: var(--ink);
  background: var(--surface); border: 1px solid var(--line-2);
  border-radius: 10px; transition: all 150ms var(--ease);
}
.field input::placeholder { color: #AEB2C2; }
.field input:focus {
  outline: none; border-color: var(--violet);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.13);
}
.field input:disabled { background: var(--surface-2); cursor: not-allowed; }
.field.invalid input { border-color: var(--err); }
.field-err { display: none; font-size: 12.5px; color: var(--err); margin-top: 5px; }
.field.invalid .field-err { display: block; }

/* Tarjetas de redes */
.social-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.social-card {
  display: flex; align-items: center; gap: 13px;
  padding: 15px; border: 1px solid var(--line-2); border-radius: 12px;
  background: var(--surface); transition: all 160ms var(--ease);
}
.social-card:hover {
  border-color: var(--violet); box-shadow: var(--shadow-md); transform: translateY(-1px);
}
.social-ico {
  width: 40px; height: 40px; border-radius: 10px; flex: 0 0 auto;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--lavender); color: var(--violet);
}
.social-ico svg { width: 21px; height: 21px; }
.social-meta { min-width: 0; }
.social-meta > span { display: block; }
.social-name { font-size: 14.5px; font-weight: 600; color: var(--ink); line-height: 1.35; }
.social-handle { font-size: 13px; color: var(--body); line-height: 1.4; }
.social-url { font-size: 11.5px; color: var(--muted); overflow-wrap: anywhere; line-height: 1.4; }

.step-hint { font-size: 13.5px; color: var(--muted); margin: 0 0 12px; }

/* Checkboxes */
.check {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 9px 0; cursor: pointer;
}
.check input {
  appearance: none; -webkit-appearance: none;
  width: 19px; height: 19px; flex: 0 0 auto; margin: 1px 0 0;
  border: 1.5px solid var(--line-2); border-radius: 5px;
  background: var(--surface); cursor: pointer;
  transition: all 140ms var(--ease); position: relative;
}
.check input:checked { background: var(--violet); border-color: var(--violet); }
.check input:checked::after {
  content: ""; position: absolute; left: 5.5px; top: 2px;
  width: 5px; height: 10px; border: solid #fff;
  border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.check input:focus-visible { outline: 2px solid var(--violet); outline-offset: 2px; }
.check span { font-size: 13.8px; line-height: 1.5; color: var(--body); }
.check a { color: var(--violet); font-weight: 500; text-decoration: underline; }
.check.invalid span { color: var(--err); }
.check.invalid input { border-color: var(--err); }

/* Card del premio */
.prize {
  display: flex; align-items: center; gap: 20px;
  background: linear-gradient(135deg, #F4F2FE 0%, #EEECFD 100%);
  border: 1px solid #DEDAFA; border-radius: var(--radius);
  padding: 22px; margin: 4px 0 8px;
}
.prize-copy { flex: 1 1 auto; min-width: 0; }
.prize h3 {
  font-size: 18px; font-weight: 600; color: var(--ink);
  margin: 0 0 4px; letter-spacing: -0.015em; line-height: 1.25;
}
.prize h3 .accent { color: var(--violet); }
.prize p { font-size: 13.5px; margin: 0; color: var(--body); }
.prize-img {
  width: 104px; height: 104px; flex: 0 0 auto;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #4A4A52, #1A1A1F 62%, #0C0C10);
  position: relative;
  box-shadow: 0 14px 30px rgba(40, 45, 70, 0.28);
}
.prize-img::after {
  content: ""; position: absolute; left: 50%; bottom: 9px; transform: translateX(-50%);
  width: 62px; height: 4px; border-radius: 3px;
  background: linear-gradient(90deg, #22D3EE, #3B82F6);
  box-shadow: 0 0 14px rgba(34, 211, 238, 0.85);
}

/* Boton */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  height: 52px; padding: 0 26px; width: 100%;
  font-family: var(--sans); font-size: 15px; font-weight: 600;
  border: 1px solid transparent; border-radius: 11px;
  cursor: pointer; transition: all 160ms var(--ease);
}
.btn-primary { background: var(--violet); color: var(--on-violet); }
.btn-primary:hover:not(:disabled) {
  background: var(--violet-600); box-shadow: 0 10px 26px rgba(79, 70, 229, 0.32);
  transform: translateY(-1px);
}
.btn-primary:disabled { opacity: 0.55; cursor: not-allowed; }
.btn svg { width: 17px; height: 17px; }

/* Honeypot: oculto sin desbordar el ancho de scroll (left:-9999px sí lo hace). */
.hp {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; border: 0;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}

.form-note { font-size: 12.5px; color: var(--muted); margin: 14px 0 0; line-height: 1.5; }
.form-msg {
  display: none; margin-top: 14px; padding: 12px 14px;
  border-radius: 10px; font-size: 13.5px; font-weight: 500;
}
.form-msg.show { display: block; }
.form-msg.err { background: #FEF2F2; color: var(--err); border: 1px solid #FECACA; }

/* ============================================================
   ASIDE — portal + beneficios
   ============================================================ */
.aside { position: sticky; top: 96px; }

.phone {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 26px; padding: 18px; box-shadow: var(--shadow-lg);
  max-width: 340px; margin: 0 auto 34px;
}
.phone-notch {
  width: 84px; height: 20px; border-radius: 12px;
  background: var(--ink); margin: 0 auto 16px;
}
.phone-tabs {
  display: grid; grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid var(--line); margin-bottom: 16px;
}
.phone-tab {
  text-align: center; padding: 9px 0; font-size: 13.5px; font-weight: 500;
  color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.phone-tab.on { color: var(--ink); font-weight: 600; border-bottom-color: var(--violet); }
.phone-label { font-size: 11.5px; color: var(--muted); margin-bottom: 5px; }
.phone-row {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  border: 1px solid var(--line-2); border-radius: 10px;
  padding: 11px 13px; margin-bottom: 13px;
}
.phone-cur {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13.5px; font-weight: 600; color: var(--ink);
}
.phone-dot { width: 15px; height: 15px; border-radius: 50%; background: #26A17B; flex: 0 0 auto; }
.phone-amt { font-size: 14.5px; font-weight: 600; color: var(--ink); }
.phone-rate { font-size: 11.5px; color: var(--muted); margin-bottom: 15px; }
.phone-cta {
  background: var(--ink); color: #fff; text-align: center;
  padding: 12px; border-radius: 10px; font-size: 14px; font-weight: 600;
}

.benefits { display: grid; gap: 4px; }
.benefit {
  display: flex; gap: 15px; align-items: flex-start;
  padding: 17px 0; border-bottom: 1px solid var(--line);
}
.benefit:last-child { border-bottom: none; }
.benefit-ico {
  width: 42px; height: 42px; border-radius: 50%; flex: 0 0 auto;
  background: var(--lavender); color: var(--violet);
  display: inline-flex; align-items: center; justify-content: center;
}
.benefit-ico svg { width: 20px; height: 20px; }
.benefit h3 { font-size: 15.5px; font-weight: 600; color: var(--ink); margin: 0 0 3px; }
.benefit p { font-size: 13.5px; margin: 0; }

/* ============================================================
   ESTADO DE EXITO
   ============================================================ */
.success { display: none; }
.success.show { display: block; }
.success-card {
  background: linear-gradient(135deg, #F4F2FE 0%, #EEECFD 100%);
  border: 1px solid #DEDAFA; border-radius: 18px;
  padding: 38px 32px; text-align: center;
}
.success-emoji { font-size: 44px; line-height: 1; margin-bottom: 14px; }
.success h2 {
  font-size: clamp(24px, 3.4vw, 32px); font-weight: 600; color: var(--ink);
  letter-spacing: -0.02em; margin: 0 0 12px; line-height: 1.2;
}
.success p { font-size: 15px; margin: 0 auto 8px; max-width: 44ch; }
.success .luck { font-weight: 600; color: var(--violet); margin-bottom: 26px; }
.success-next {
  border-top: 1px solid #DEDAFA; padding-top: 26px; margin-top: 26px;
}
.success-next h3 { font-size: 17px; font-weight: 600; color: var(--ink); margin: 0 0 8px; }
.success-next p { font-size: 14px; margin-bottom: 20px; }
.success .btn { max-width: 320px; margin: 0 auto; }

/* ============================================================
   SORTEO CERRADO
   ============================================================ */
.closed { display: none; }
.closed.show { display: block; }
.closed-card {
  background: var(--surface-2); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px 28px; margin: 8px 0 28px;
}
.closed-card p { font-size: 15px; margin: 0 0 12px; }
.closed-card p:last-child { margin-bottom: 0; }
.closed-next { border-top: 1px solid var(--line); padding-top: 26px; }
.closed-next h3 { font-size: 17px; font-weight: 600; color: var(--ink); margin: 0 0 8px; }
.closed-next p { font-size: 14px; margin: 0 0 20px; }
.closed-next .btn { max-width: 340px; }

/* ============================================================
   BANDA CTA
   ============================================================ */
.cta-band { padding: 0 0 72px; }
.cta-inner {
  background: linear-gradient(115deg, var(--violet) 0%, #5B4FE8 48%, var(--violet-deep) 100%);
  border-radius: 18px; padding: 32px 36px;
  display: flex; align-items: center; gap: 24px;
  position: relative; overflow: hidden;
}
.cta-inner::after {
  content: ""; position: absolute; right: -70px; top: -90px;
  width: 320px; height: 320px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
}
.cta-ico {
  width: 58px; height: 58px; border-radius: 50%; flex: 0 0 auto;
  background: rgba(255, 255, 255, 0.16); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
}
.cta-ico svg { width: 26px; height: 26px; }
.cta-copy { flex: 1 1 auto; min-width: 0; position: relative; z-index: 1; }
.cta-copy h2 {
  font-size: clamp(20px, 2.6vw, 26px); font-weight: 600; color: #fff;
  margin: 0 0 4px; letter-spacing: -0.02em; line-height: 1.25;
}
.cta-copy p { font-size: 14.5px; color: rgba(255, 255, 255, 0.82); margin: 0; }
.cta-arrow {
  width: 58px; height: 58px; border-radius: 12px; flex: 0 0 auto;
  background: #fff; color: var(--violet);
  display: inline-flex; align-items: center; justify-content: center;
  transition: transform 160ms var(--ease); position: relative; z-index: 1;
}
.cta-inner:hover .cta-arrow { transform: translateX(5px); }
.cta-arrow svg { width: 22px; height: 22px; }

/* ============================================================
   FOOTER
   ============================================================ */
.foot { border-top: 1px solid var(--line); padding: 34px 0 40px; }
.foot-top {
  display: flex; align-items: center; justify-content: space-between;
  gap: 22px; flex-wrap: wrap; margin-bottom: 22px;
}
.foot-brand { max-width: 400px; }
.foot-brand .wordmark { display: block; margin-bottom: 7px; }
.foot-brand p { font-size: 13.5px; margin: 0; }
.foot-links {
  display: flex; gap: 8px 20px; flex-wrap: wrap;
  font-size: 13px; color: var(--muted);
  border-top: 1px solid var(--line); padding-top: 20px;
}
.foot-links a { transition: color 150ms var(--ease); }
.foot-links a:hover { color: var(--violet); }
.foot-site { font-weight: 500; color: var(--violet); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 940px) {
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .aside { position: static; }
  .phone { margin-bottom: 26px; }
  .hero { padding-top: 34px; }
}
@media (max-width: 620px) {
  .shell { padding: 0 18px; }
  .field-grid, .social-grid { grid-template-columns: 1fr; }
  .prize { flex-direction: column; align-items: flex-start; gap: 16px; }
  .prize-img { width: 88px; height: 88px; }
  .cta-inner { flex-direction: column; align-items: flex-start; padding: 26px 24px; }
  .cta-arrow { width: 50px; height: 50px; }
  .nav-inner { height: 60px; }
  .foot-top { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
  html { scroll-behavior: auto; }
}
