:root {
  --bg: #09070f;
  --bg-2: #14111c;
  --ink: #f4f1fb;
  --muted: #b7adc9;
  --soft: #9b90b4;
  --line: #2c2440;
  --violet: #7c3aed;
  --violet-2: #c4b5fd;
  --violet-deep: #6d28d9;
  --card: #14111c;
  --danger: #e9d5ff;
  --sans: "Outfit", "Avenir Next", "Segoe UI", sans-serif;
  --serif: "Outfit", "Avenir Next", "Segoe UI", sans-serif;
  --header: 64px;
  --score: 46px;
  --wrap: 1120px;
  --radius: 8px;
  color-scheme: dark;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
}

body.nav-open { overflow: hidden; }

img { max-width: 100%; height: auto; }

a { color: var(--violet-2); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: white; }

p { margin: 0; }

h1, h2, h3, h4 {
  font-family: var(--sans);
  font-weight: 650;
  letter-spacing: -0.035em;
  line-height: 1.12;
  margin: 0;
}

button, input { font: inherit; color: inherit; }

::selection { background: #6d28d9; color: white; }

.skip {
  position: absolute;
  left: 12px;
  top: -40px;
  background: white;
  color: #1a1028;
  padding: 8px 12px;
  z-index: 50;
  border-radius: 8px;
}
.skip:focus { top: 12px; }

.wrap {
  width: min(var(--wrap), calc(100% - 40px));
  margin-inline: auto;
}

.ambient {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background: var(--bg);
}

.orb, .shape { position: absolute; display: block; }

.orb {
  opacity: 1;
  animation: wave 36s ease-in-out infinite alternate;
}

.o1 { width: 38vw; height: 38vw; left: -8vw; top: 6vh; background: #160e28; }
.o2 { width: 22vw; height: 22vw; right: -4vw; top: 42vh; background: #24143d; border-radius: 50%; animation-duration: 48s; animation-delay: -8s; }
.o3 { width: 14vw; height: 14vw; left: -4vw; bottom: 8vh; background: #1a1033; animation-duration: 42s; animation-delay: -4s; }

.shape {
  background: #7c3aed;
  opacity: 0.9;
  animation: drift 46s ease-in-out infinite alternate;
}

.s1 { width: 72px; height: 72px; top: 16%; right: 14%; background: #2a1848; }
.s2 { width: 18px; height: 18px; border-radius: 50%; top: 64%; left: 7%; background: #7c3aed; animation-duration: 54s; }
.s3 { width: 22px; height: 22px; top: 18%; right: 8%; left: auto; background: #c4b5fd; animation-duration: 40s; }
.s4 { width: 120px; height: 120px; border-radius: 50%; bottom: 10%; right: 6%; background: #120c1e; animation-duration: 60s; }

@keyframes wave {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(4%, 6%, 0) scale(1.08); }
}

@keyframes drift {
  from { transform: translate3d(0, 0, 0) rotate(12deg); }
  to { transform: translate3d(-24px, 28px, 0) rotate(28deg); }
}

.page { position: relative; z-index: 1; }

.header {
  position: sticky;
  top: 0;
  z-index: 30;
  height: var(--header);
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 28px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: white;
  text-decoration: none;
  min-width: 0;
}

.mark {
  width: 34px;
  height: 34px;
  border-radius: 6px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  background: var(--violet);
  color: white;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.word {
  font-weight: 580;
  letter-spacing: -0.03em;
  font-size: 0.98rem;
  white-space: nowrap;
}
.word span { color: var(--violet-2); font-weight: 450; margin-right: 4px; }

.nav {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-left: auto;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
}
.nav a:hover,
.nav a[aria-current="page"] { color: white; }

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: transparent;
  padding: 0;
  cursor: pointer;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 16px;
  height: 1.5px;
  background: white;
  position: relative;
  margin: 0 auto;
}
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }

.scorebar {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  padding: 10px 20px 0;
}

.score {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 36px;
  max-width: 100%;
  padding: 6px 14px 6px 8px;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.92rem;
}
.score span:last-child { text-wrap: balance; }

.stars { display: inline-flex; gap: 2px; color: #d8b4fe; }
.stars svg { width: 14px; height: 14px; display: block; }
.score strong { color: white; font-weight: 620; font-variant-numeric: tabular-nums; }

.cluster {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 450px);
  gap: 56px;
  align-items: center;
  padding: 42px 0 28px;
}

.cluster-copy { display: flex; flex-direction: column; gap: 18px; }

h1 {
  font-size: clamp(2.5rem, 4.6vw, 4.15rem);
  max-width: 14ch;
}

#abrir-cuenta,
#registro { scroll-margin-top: 84px; }
h1 em {
  font-style: normal;
  font-weight: 650;
  color: var(--violet-2);
}

.definition {
  font-size: clamp(1.15rem, 1.6vw, 1.4rem);
  line-height: 1.35;
  color: var(--ink);
  max-width: 40ch;
}

.field.is-invalid .phone input {
  border: 0;
  box-shadow: none;
}

.lead-form, .panel {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}

.form-kicker {
  color: var(--soft);
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.lead-form h2, .panel h2 {
  font-size: 1.85rem;
  margin-bottom: 6px;
}

.form-note, .fine { color: var(--muted); font-size: 0.98rem; }

.form-grid { display: grid; gap: 12px; margin-top: 16px; }

.field { display: grid; gap: 6px; }
.field span { font-size: 0.92rem; color: var(--muted); }

.field input {
  width: 100%;
  height: 48px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: #0c0a12;
  padding: 0 14px;
  outline: none;
}
.field input::placeholder { color: #8d82a8; }
.field input:focus { border-color: var(--violet); }

.phone {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 8px;
  height: 48px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: #0c0a12;
  padding: 0 14px;
}
.phone:focus-within { border-color: var(--violet); }
.phone b { font-weight: 580; color: white; }
.phone input {
  height: 100%;
  border: 0;
  background: transparent;
  padding: 0;
  box-shadow: none;
}
.phone input:focus { box-shadow: none; }

.field small { color: var(--danger); min-height: 1.1em; font-size: 0.85rem; }
.field small:empty { display: none; }
.field.is-invalid input, .field.is-invalid .phone { border-color: #e879f9; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 18px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.btn:hover { color: white; }

.btn-primary {
  background: var(--violet);
  color: white;
}
.btn-primary:hover { background: var(--violet-deep); color: white; }

.btn-ghost {
  background: var(--card);
  border-color: var(--line);
  color: white;
}
.btn-ghost:hover { background: #1c1730; border-color: #3d3358; }

.btn-sm { min-height: 40px; padding: 0 14px; font-size: 0.95rem; }
.btn-block { width: 100%; }

.form-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-top: 12px;
  color: var(--soft);
  font-size: 0.9rem;
}
.form-trust span { display: inline-flex; align-items: center; gap: 6px; }

.section { padding: 72px 0; }
.section-head { max-width: 680px; margin-bottom: 28px; display: grid; gap: 10px; }
.kicker {
  color: var(--violet-2);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.78rem;
  font-weight: 600;
}
.section h2, .page-hero h1 { font-size: clamp(2rem, 4vw, 3.3rem); max-width: 18ch; }
.lede { color: var(--muted); font-size: 1.08rem; max-width: 62ch; }

.perks {
  list-style: none;
  padding: 0;
  margin: 0 0 22px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.perk, .card, .review, .req, .step, .mail, .check, .faq, .team-row {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.perk { padding: 18px 18px 20px; display: grid; gap: 8px; }
.icon {
  width: 42px;
  height: 42px;
  border-radius: 6px;
  display: grid;
  place-items: center;
  background: var(--violet);
  color: white;
}
.icon svg { width: 22px; height: 22px; }
.perk h3, .card h3, .req h3, .step h3, .mail h3 { font-family: var(--sans); font-size: 1.12rem; letter-spacing: -0.02em; font-weight: 630; }
.perk p, .card p, .req p, .step p, .mail p, .check p { color: var(--muted); }

.cta-row { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }
.analyst {
  font-size: 1.08rem;
  line-height: 1.55;
  max-width: 68ch;
  color: var(--ink);
}

.cards, .reqs, .reviews, .mails, .checks, .steps {
  display: grid;
  gap: 14px;
}
.cards { grid-template-columns: 1.1fr 1.4fr; }
.card, .req { padding: 22px; display: grid; gap: 8px; align-content: start; }
.amount {
  font-family: var(--sans);
  font-size: 3rem;
  font-weight: 650;
  letter-spacing: -0.04em;
  color: white;
}
.pay-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.pay-chip {
  height: 42px;
  padding: 0 10px;
  border-radius: 6px;
  background: white;
  display: grid;
  place-items: center;
}
.pay-chip img { height: 26px; width: auto; display: block; }

.score-inline {
  margin-top: 22px;
  display: flex;
  justify-content: flex-start;
}

.reqs { grid-template-columns: repeat(3, 1fr); }
.req .num {
  font-family: var(--sans);
  color: var(--violet-2);
  font-size: 1.15rem;
  font-weight: 650;
}

.trust {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.trust article {
  padding: 16px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.trust h3 { font-family: var(--sans); font-size: 1rem; font-weight: 640; margin-bottom: 6px; }
.trust p { color: var(--muted); font-size: 0.98rem; }

.reviews { grid-template-columns: repeat(3, 1fr); }
.review {
  padding: 18px 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 230px;
}
.review blockquote { margin: 0; font-size: 1.05rem; line-height: 1.5; }
.who { margin-top: auto; display: grid; }
.who b { font-weight: 630; }
.who span { color: var(--soft); font-size: 0.92rem; }
.caveat {
  margin-top: 16px;
  color: var(--muted);
  font-size: 1rem;
  max-width: 75ch;
}

.cta-band {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  padding: 28px;
  border-radius: var(--radius);
  border: 0;
  background: var(--violet);
  color: white;
}
.cta-band h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); max-width: 16ch; }

.checks { grid-template-columns: repeat(3, 1fr); }
.check { padding: 18px; display: grid; gap: 8px; }
.check b { font-family: var(--sans); font-size: 1.05rem; }

.faq-list { display: grid; gap: 10px; }
.faq { padding: 0 18px; }
.faq summary {
  cursor: pointer;
  list-style: none;
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-weight: 600;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  width: 8px;
  height: 8px;
  border-right: 1.5px solid var(--violet-2);
  border-bottom: 1.5px solid var(--violet-2);
  transform: rotate(45deg);
  flex: 0 0 auto;
}
.faq[open] summary::after { transform: rotate(225deg); margin-top: 4px; }
.faq p { padding: 0 0 16px; color: var(--muted); max-width: 70ch; }

.bottom-form {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 36px;
  align-items: center;
}

.page-hero { padding: 54px 0 10px; display: grid; gap: 12px; }
.page-hero h1 { max-width: 16ch; }

.steps { gap: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--card); }
.step {
  border: 0;
  border-radius: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  padding: 18px 20px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: start;
}
.step:last-child { border-bottom: 0; }
.step .num {
  font-family: var(--sans);
  color: var(--violet-2);
  font-size: 1rem;
  font-weight: 650;
  width: 2ch;
}

.team { display: grid; }
.team-row {
  border-radius: 0;
  border-left: 0;
  border-right: 0;
  border-bottom: 0;
  padding: 18px 0;
  display: grid;
  grid-template-columns: minmax(180px, 280px) 1fr;
  gap: 18px;
  background: transparent;
}
.team-row + .team-row { border-top: 1px solid var(--line); }
.team-row span { color: var(--violet-2); display: block; font-size: 0.92rem; margin-top: 4px; }
.team-row p { color: var(--muted); }

.mails { grid-template-columns: 1fr 1fr; }
.mail { padding: 22px; display: grid; gap: 8px; }
.mail a { font-size: 1.15rem; word-break: break-all; }

.split { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 28px; align-items: start; }
.split .page-hero { padding-top: 8px; }
.split .trust { grid-template-columns: 1fr 1fr; margin-top: 8px; }
.login-card { max-width: 460px; }

.notice {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: var(--radius);
  background: #1c1730;
  color: var(--muted);
}

.prose { max-width: 74ch; display: grid; gap: 12px; padding-bottom: 48px; }
.prose h2 { font-size: 1.7rem; margin-top: 18px; }
.prose ul, .prose ol { margin: 0; padding-left: 1.2rem; color: var(--muted); display: grid; gap: 6px; }
.prose p { color: var(--muted); }
.prose strong { color: var(--ink); font-weight: 640; }

.footer {
  border-top: 1px solid var(--line);
  padding: 36px 0 28px;
  background: #07060c;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.1fr 1.2fr 1fr;
  gap: 28px;
}
.footer nav { display: grid; gap: 8px; align-content: start; }
.footer a { color: var(--muted); text-decoration: none; }
.footer a:hover { color: white; }
.footer address { font-style: normal; color: var(--muted); }
.footer .brand-line { color: var(--soft); margin-top: 8px; max-width: 28ch; }

.disclaimer {
  position: relative;
  z-index: 1;
  background: #05040a;
  border-top: 1px solid var(--line);
  padding: 22px 0 28px;
}
.disclaimer .wrap { display: grid; gap: 10px; }
.disclaimer p { color: var(--muted); font-size: 0.98rem; max-width: 95ch; }
.disclaimer a { color: var(--violet-2); }

.sticky-cta {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 25;
  display: none;
  transition: transform 0.25s ease;
}
.sticky-cta.is-hidden { transform: translateY(140%); pointer-events: none; }

.cookie {
  position: fixed;
  z-index: 40;
  left: 12px;
  bottom: 12px;
  width: min(420px, calc(100% - 24px));
  padding: 14px;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--line);
  display: grid;
  gap: 10px;
}
.cookie p { color: var(--muted); font-size: 0.95rem; }
.cookie .cta-row { margin: 0; }

@media (max-width: 980px) {
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .nav {
    display: none;
    position: absolute;
    top: var(--header);
    left: 0;
    right: 0;
    margin: 0;
    padding: 8px 20px 16px;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
  }
  .nav.is-open { display: flex; }
  .nav a { min-height: 42px; display: flex; align-items: center; }
  .header-actions { margin-left: auto; }
  .cluster, .cards, .reqs, .reviews, .trust, .checks, .bottom-form, .footer-grid, .split, .mails, .team-row, .cta-band {
    grid-template-columns: 1fr;
  }
  .perks { grid-template-columns: 1fr; }
  .cta-band { align-items: flex-start; }
  .sticky-cta { display: block; }
  body.has-cookie .cookie { bottom: 76px; }
}

@media (max-width: 860px) {
  :root { --header: 58px; }
  .wrap { width: min(var(--wrap), calc(100% - 32px)); }
  .cluster {
    grid-template-columns: 1fr;
    grid-template-areas:
      "title"
      "form"
      "def";
    gap: 14px;
    align-content: center;
    min-height: calc(100svh - var(--header) - 48px);
    padding: 8px 0 18px;
  }
  .cluster-copy { display: contents; }
  .cluster h1 { grid-area: title; font-size: clamp(1.72rem, 7.4vw, 2.15rem); max-width: none; }
  .lead-form, #abrir-cuenta { grid-area: form; }
  .definition { grid-area: def; font-size: 1rem; max-width: none; white-space: normal; }
  .lead-form h2 { font-size: 1.35rem; }
  .cluster .form-kicker,
  .cluster .form-note { display: none; }
  .cluster .form-grid { gap: 8px; margin-top: 10px; }
  .field input,
  .phone { height: 44px; }
  .section { padding: 52px 0; }
  .page-hero { padding-top: 32px; }
  .word { font-size: 0.9rem; }
  .shape, .o2, .o3 { display: none; }
}

@media (max-height: 740px) and (max-width: 860px) {
  .cluster { min-height: 0; align-content: start; padding-top: 12px; }
  .form-trust { display: none; }
}

@media (min-width: 861px) and (max-width: 1100px) {
  .perks, .trust, .reviews { grid-template-columns: 1fr 1fr; }
  .trust article:last-child { grid-column: 1 / -1; }
}

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