/* ══════════════════════════════════════════════════════
   Mulita Landing — styles.css
   Paleta: #010409 · #0D1117 · #161B22 · #21262D
           #2E75B6 (brand) · #3FB950 (safe) · #F85149 (alert)
           #E6EDF3 (text) · #8B949E (muted)
   Fuentes: Inter (sans) + JetBrains Mono (mono)
══════════════════════════════════════════════════════ */

/* ── Reset ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
img, svg { display: block; }
ul[role="list"], ol[role="list"] { list-style: none; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; font: inherit; border: none; background: none; }

/* ── Custom Properties ── */
:root {
  --bg-base:       #010409;
  --bg-01:         #0D1117;
  --bg-02:         #161B22;
  --bg-03:         #21262D;
  --bg-04:         #30363D;

  --brand:         #2E75B6;
  --brand-dim:     rgba(46, 117, 182, 0.12);
  --brand-border:  rgba(46, 117, 182, 0.3);
  --green:         #3FB950;
  --green-dim:     rgba(63, 185, 80, 0.1);
  --green-border:  rgba(63, 185, 80, 0.25);
  --red:           #F85149;

  --text-primary:  #E6EDF3;
  --text-muted:    #8B949E;
  --text-dim:      #484F58;
  --border:        rgba(48, 54, 61, 0.8);
  --border-light:  rgba(48, 54, 61, 0.5);

  --font-sans:     'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono:     'JetBrains Mono', 'SF Mono', 'Fira Code', monospace;

  --radius-sm:     6px;
  --radius-md:     10px;
  --radius-lg:     14px;
  --radius-xl:     20px;

  --container:     1120px;
  --gap:           clamp(1.5rem, 4vw, 3rem);

  --transition:    0.2s ease;
}

/* ── Base ── */
body {
  font-family: var(--font-sans);
  background: var(--bg-base);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ── Utility ── */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 2rem);
}

.mono { font-family: var(--font-mono); }

.eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 0.75rem;
}

.eyebrow--green { color: var(--green); }

.section-heading {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.section-heading--center { text-align: center; }

.body-text {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.75;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition);
  white-space: nowrap;
}

.btn--primary {
  background: var(--brand);
  color: #fff;
  border: 1px solid var(--brand);
}
.btn--primary:hover {
  background: #3585c8;
  border-color: #3585c8;
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(46,117,182,0.3);
}
.btn--primary:active { transform: translateY(0); }
.btn--primary:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
}

.btn--ghost {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
}
.btn--ghost:hover {
  border-color: var(--text-muted);
  color: var(--text-primary);
}
.btn--ghost:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
}

.btn--lg {
  padding: 0.75rem 1.6rem;
  font-size: 0.95rem;
}
.btn--full { width: 100%; justify-content: center; }

/* ── Reveal animation ── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ══════════════════════════════════════
   NAV
══════════════════════════════════════ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(1, 4, 9, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-light);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 2rem);
  height: 60px;
  gap: 1rem;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.nav__logo-img {
  display: block;
  border-radius: 7px;
}
.nav__logo-text {
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: 0.05em;
}
.nav__logo:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 4px;
  border-radius: var(--radius-sm);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
}

.nav__link {
  padding: 0.4rem 0.75rem;
  font-size: 0.875rem;
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
}
.nav__link:hover { color: var(--text-primary); background: var(--bg-02); }
.nav__link:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

.nav__cta { margin-left: 0.75rem; }

.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
  border-radius: var(--radius-sm);
}
.nav__hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-muted);
  border-radius: 2px;
  transition: var(--transition);
}
.nav__hamburger:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

/* ══════════════════════════════════════
   HERO
══════════════════════════════════════ */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: var(--gap);
  min-height: calc(100vh - 60px);
  max-width: var(--container);
  margin: 0 auto;
  padding: clamp(3rem, 8vh, 6rem) clamp(1rem, 4vw, 2rem);
}

.hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 1.5rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 500;
  background: var(--bg-02);
  border: 1px solid var(--border);
  color: var(--text-muted);
  letter-spacing: 0.02em;
}
.badge--mono { font-family: var(--font-mono); }
.badge--green {
  background: var(--green-dim);
  border-color: var(--green-border);
  color: var(--green);
}

.hero__heading {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
}
.hero__heading-accent { color: var(--brand); }

.hero__sub {
  font-size: clamp(1rem, 1.8vw, 1.1rem);
  color: var(--text-muted);
  line-height: 1.75;
  max-width: 46ch;
  margin-bottom: 2rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Hero visual — SVG con animaciones */
.hero__visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero__lockwave {
  width: 100%;
  max-width: 480px;
  height: auto;
  overflow: visible;
}

/* Ondas rotando */
.wave { transform-origin: 240px 240px; }
.wave-1 { animation: waveRotate 20s linear infinite; }
.wave-2 { animation: waveRotate 14s linear infinite reverse; }
.wave-3 { animation: waveRotate 9s linear infinite; }
@keyframes waveRotate {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* Puntos de datos orbitando */
.data-dot { animation: dotOrbit linear infinite; }
.dot-a { animation-duration: 12s; transform-origin: 240px 240px; }
.dot-b { animation-duration: 8s; animation-delay: -3s; transform-origin: 240px 240px; }
.dot-c { animation-duration: 16s; animation-delay: -7s; transform-origin: 240px 240px; }
.dot-d { animation-duration: 10s; animation-delay: -5s; transform-origin: 240px 240px; }
@keyframes dotOrbit {
  0%   { transform: rotate(0deg) translateX(200px) rotate(0deg); }
  100% { transform: rotate(360deg) translateX(200px) rotate(-360deg); }
}
.dot-b { animation-name: dotOrbitB; }
@keyframes dotOrbitB {
  0%   { transform: rotate(0deg) translateX(155px) rotate(0deg); }
  100% { transform: rotate(360deg) translateX(155px) rotate(-360deg); }
}
.dot-c { animation-name: dotOrbitC; }
@keyframes dotOrbitC {
  0%   { transform: rotate(0deg) translateX(110px) rotate(0deg); }
  100% { transform: rotate(360deg) translateX(110px) rotate(-360deg); }
}
.dot-d { animation-name: dotOrbitD; }
@keyframes dotOrbitD {
  0%   { transform: rotate(90deg) translateX(155px) rotate(-90deg); }
  100% { transform: rotate(450deg) translateX(155px) rotate(-450deg); }
}

/* Checkmark del shield pulsando */
.hero-check {
  animation: checkPulse 3s ease-in-out infinite;
  stroke-dasharray: 20;
  stroke-dashoffset: 0;
}
@keyframes checkPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* Alias parpadeando como cursor terminal */
.hero-alias { animation: aliasBlink 4s steps(1) infinite; }
@keyframes aliasBlink {
  0%, 80% { opacity: 0.8; }
  85%, 95% { opacity: 0.2; }
  100% { opacity: 0.8; }
}

/* ══════════════════════════════════════
   PROBLEMA / PROMESA
══════════════════════════════════════ */
.problem {
  background: var(--bg-01);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  padding: clamp(4rem, 8vw, 7rem) 0;
}

.problem__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.problem__col--left {
  position: relative;
  padding-right: 2rem;
}
.problem__col--left::after {
  content: '';
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, transparent, var(--border), transparent);
}

.problem__metric-row {
  display: flex;
  gap: 1.5rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.problem__metric {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.metric-value {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--brand);
  line-height: 1;
}

.metric-label {
  font-size: 0.75rem;
  color: var(--text-dim);
  letter-spacing: 0.03em;
}

/* ══════════════════════════════════════
   FEATURES
══════════════════════════════════════ */
.features {
  padding: clamp(4rem, 8vw, 7rem) 0;
}

.features__header {
  text-align: center;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.features__header .eyebrow { display: block; }

.features__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.feature-card {
  background: var(--bg-01);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  transition: background var(--transition);
  outline: none;
}
.feature-card:hover,
.feature-card:focus-visible {
  background: var(--bg-02);
}
.feature-card:focus-visible {
  box-shadow: inset 0 0 0 2px var(--brand);
}

.feature-card__icon {
  width: 52px;
  height: 52px;
  background: var(--bg-02);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  transition: border-color var(--transition);
}
.feature-card:hover .feature-card__icon { border-color: var(--brand-border); }

.feature-card__title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.feature-card__body {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 1rem;
}

.feature-card__tag {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-dim);
  letter-spacing: 0.05em;
}

/* ══════════════════════════════════════
   CÓMO FUNCIONA
══════════════════════════════════════ */
.how {
  background: var(--bg-01);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  padding: clamp(4rem, 8vw, 7rem) 0;
}

.how__header {
  text-align: center;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.how__header .eyebrow { display: block; }

.how__steps {
  display: flex;
  align-items: flex-start;
  gap: 0;
  max-width: 860px;
  margin: 0 auto;
}

.how__step {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 0 1.5rem;
}

.how__step-number {
  font-size: 2.5rem;
  font-weight: 300;
  color: var(--brand);
  opacity: 0.5;
  line-height: 1;
}

.how__step-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
}

.how__step-body {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.how__connector {
  flex-shrink: 0;
  width: 2px;
  height: 80px;
  background: linear-gradient(to bottom, transparent, var(--border), transparent);
  margin-top: 1.5rem;
  align-self: flex-start;
}

/* ══════════════════════════════════════
   SEGURIDAD / CONFIANZA
══════════════════════════════════════ */
.trust {
  padding: clamp(4rem, 8vw, 7rem) 0;
}

.trust__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: start;
}

.trust__col--cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.trust-card {
  background: var(--bg-01);
  padding: 1.25rem;
  display: flex;
  gap: 0.875rem;
  align-items: flex-start;
  transition: background var(--transition);
}
.trust-card:hover { background: var(--bg-02); }

.trust-card__icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  background: var(--green-dim);
  border: 1px solid var(--green-border);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}

.trust-card__title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.trust-card__body {
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* ══════════════════════════════════════
   PRICING
══════════════════════════════════════ */
.pricing {
  background: var(--bg-01);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  padding: clamp(4rem, 8vw, 7rem) 0;
}

.pricing__header {
  text-align: center;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.pricing__header .eyebrow { display: block; }

.pricing__card-wrapper {
  display: flex;
  justify-content: center;
}

.pricing__card {
  background: var(--bg-02);
  border: 1px solid var(--brand-border);
  border-radius: var(--radius-xl);
  padding: clamp(2rem, 4vw, 2.75rem);
  width: 100%;
  max-width: 440px;
  position: relative;
  box-shadow: 0 0 60px rgba(46,117,182,0.08);
}

.pricing__card-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 500;
  color: var(--brand);
  background: var(--brand-dim);
  border: 1px solid var(--brand-border);
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 1.5rem;
  letter-spacing: 0.05em;
}

.pricing__price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 0.5rem;
}

.pricing__currency {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  color: var(--text-muted);
}
.pricing__amount {
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1;
}
.pricing__period {
  font-size: 1rem;
  color: var(--text-muted);
}

.pricing__note {
  font-size: 0.825rem;
  color: var(--text-dim);
  margin-bottom: 1.75rem;
  font-family: var(--font-mono);
}

.pricing__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 2rem;
}
.pricing__list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text-muted);
}
.pricing__list svg { flex-shrink: 0; }

.pricing__disclaimer {
  margin-top: 1rem;
  font-size: 0.8rem;
  color: var(--text-dim);
  text-align: center;
}
.pricing__link {
  color: var(--text-muted);
  text-decoration: underline;
  text-decoration-color: var(--border);
}
.pricing__link:hover { color: var(--text-primary); }

/* ══════════════════════════════════════
   FAQ
══════════════════════════════════════ */
.faq {
  padding: clamp(4rem, 8vw, 7rem) 0;
}

.faq__header {
  text-align: center;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}
.faq__header .eyebrow { display: block; }

.faq__list {
  max-width: 720px;
  margin: 0 auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.faq__item {
  border-bottom: 1px solid var(--border);
}
.faq__item:last-child { border-bottom: none; }

.faq__question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.5rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-primary);
  text-align: left;
  background: var(--bg-01);
  transition: background var(--transition);
}
.faq__question:hover { background: var(--bg-02); }
.faq__question:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: -2px;
}

.faq__chevron {
  flex-shrink: 0;
  color: var(--text-dim);
  transition: transform 0.25s ease;
}
.faq__question[aria-expanded="true"] .faq__chevron {
  transform: rotate(180deg);
}

.faq__answer {
  padding: 0 1.5rem 1.25rem;
  background: var(--bg-01);
}
.faq__answer p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ══════════════════════════════════════
   FOOTER
══════════════════════════════════════ */
.footer {
  background: var(--bg-01);
  border-top: 1px solid var(--border-light);
  padding: clamp(3rem, 6vw, 5rem) 0 2rem;
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  margin-bottom: 3rem;
}

.footer__logo { margin-bottom: 0.75rem; }
.footer__tagline {
  font-size: 12px;
  color: var(--brand);
  letter-spacing: 0.05em;
  margin-bottom: 0.4rem;
}
.footer__sub {
  font-size: 0.8125rem;
  color: var(--text-dim);
  line-height: 1.6;
}

.footer__col-title {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.875rem;
}
.footer__col ul { display: flex; flex-direction: column; gap: 0.5rem; }
.footer__link {
  font-size: 0.8675rem;
  color: var(--text-dim);
  transition: color var(--transition);
}
.footer__link:hover { color: var(--text-primary); }
.footer__link:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 2px; }

.footer__col--cta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.875rem;
}
.footer__cta-text {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.footer__bottom {
  border-top: 1px solid var(--border-light);
  padding-top: 1.5rem;
  display: flex;
  justify-content: center;
}
.footer__legal {
  font-size: 12px;
  color: var(--text-dim);
  display: flex;
  gap: 0.75rem;
  align-items: center;
  flex-wrap: wrap;
}
.footer__legal .footer__link {
  font-family: var(--font-mono);
  font-size: 11px;
}

/* ══════════════════════════════════════
   MODAL
══════════════════════════════════════ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(1, 4, 9, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  z-index: 200;
  animation: overlayIn 0.2s ease;
}
.modal-overlay[hidden] { display: none; }
@keyframes overlayIn { from { opacity: 0; } to { opacity: 1; } }

.modal {
  background: var(--bg-01);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 2rem;
  width: 100%;
  max-width: 420px;
  position: relative;
  animation: modalIn 0.25s ease;
}
@keyframes modalIn {
  from { opacity: 0; transform: scale(0.96) translateY(8px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

.modal__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
}
.modal__close:hover { color: var(--text-primary); background: var(--bg-02); }
.modal__close:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

.modal__header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.5rem;
  margin-bottom: 1.75rem;
}

.modal__title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
}

.modal__subtitle {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.modal__form { display: flex; flex-direction: column; gap: 1.25rem; }

.form-field { display: flex; flex-direction: column; gap: 6px; }

.form-label {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-muted);
}

.form-input {
  background: var(--bg-02);
  border: 1.5px solid var(--bg-04);
  border-radius: var(--radius-md);
  padding: 0.7rem 1rem;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  color: var(--text-primary);
  transition: border-color var(--transition);
  outline: none;
}
.form-input::placeholder { color: var(--text-dim); }
.form-input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(46,117,182,0.15);
}
.form-input.error { border-color: var(--red); }

.form-error {
  font-size: 0.8rem;
  color: var(--red);
  min-height: 1.1em;
}

.payment-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.payment-option { position: relative; }
.payment-radio {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.payment-option__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0.65rem 1rem;
  border: 1.5px solid var(--bg-04);
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: border-color var(--transition), color var(--transition), background var(--transition);
  background: var(--bg-02);
}
.payment-radio:checked + .payment-option__inner {
  border-color: var(--brand);
  color: var(--text-primary);
  background: var(--brand-dim);
}
.payment-radio:focus-visible + .payment-option__inner {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

/* Selector de planes (radios cargados desde GET /plans) */
.plan-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.plan-options__loading {
  font-size: 0.8125rem;
  color: var(--text-muted);
  padding: 0.4rem 0;
}
.plan-option { position: relative; }
.plan-radio {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.plan-option__inner {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 0.7rem 1rem;
  border: 1.5px solid var(--bg-04);
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: border-color var(--transition), color var(--transition), background var(--transition);
  background: var(--bg-02);
}
.plan-option__name {
  font-weight: 600;
  color: var(--text-primary);
}
.plan-option__price {
  margin-left: auto;
  font-weight: 600;
  color: var(--text-primary);
}
.plan-option__period {
  font-size: 0.75rem;
  color: var(--text-muted);
}
.plan-radio:checked + .plan-option__inner {
  border-color: var(--brand);
  background: var(--brand-dim);
}
.plan-radio:checked + .plan-option__inner .plan-option__period {
  color: var(--text-primary);
}
.plan-radio:focus-visible + .plan-option__inner {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

/* Campo de código de descuento / activación */
.form-label__hint {
  font-weight: 400;
  color: var(--text-dim);
}
.code-field {
  display: flex;
  gap: 8px;
  align-items: stretch;
}
.code-field__input {
  flex: 1 1 auto;
  min-width: 0;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.code-field__input::placeholder {
  letter-spacing: normal;
  text-transform: none;
}
.code-field__apply {
  flex: 0 0 auto;
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
}
.code-field__apply:disabled {
  opacity: 0.6;
  cursor: default;
}

.code-feedback {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 2px;
  font-size: 0.8125rem;
  line-height: 1.4;
}
.code-feedback[hidden] { display: none; }
.code-feedback__text { flex: 1 1 auto; }
.code-feedback--ok .code-feedback__text { color: var(--green); }
.code-feedback--error .code-feedback__text { color: var(--red); }
.code-feedback--pending .code-feedback__text { color: var(--text-muted); }
.code-feedback__remove {
  flex: 0 0 auto;
  font-size: 0.75rem;
  color: var(--text-muted);
  text-decoration: underline;
  text-decoration-color: var(--border);
  padding: 2px 4px;
  border-radius: var(--radius-sm);
  transition: color var(--transition);
}
.code-feedback__remove:hover { color: var(--text-primary); }
.code-feedback__remove[hidden] { display: none; }
.code-feedback__remove:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

.modal__error {
  padding: 0.6rem 0.875rem;
  background: rgba(248,81,73,0.08);
  border: 1px solid rgba(248,81,73,0.25);
  border-radius: var(--radius-sm);
  font-size: 0.8375rem;
  color: var(--red);
  display: none;
}
.modal__error.visible { display: block; }

.submit-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.modal__legal {
  font-size: 0.75rem;
  color: var(--text-dim);
  text-align: center;
  line-height: 1.5;
}
.modal__link {
  color: var(--text-muted);
  text-decoration: underline;
}

/* Crypto state */
.crypto__networks {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.25rem;
}
.crypto__network {
  background: var(--bg-02);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1rem;
}
.crypto__label {
  display: block;
  font-size: 11px;
  color: var(--text-dim);
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
}
.crypto__address {
  display: block;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-muted);
  word-break: break-all;
  line-height: 1.6;
}
.crypto__note {
  font-size: 0.8125rem;
  color: var(--text-dim);
  margin-bottom: 1.25rem;
  line-height: 1.5;
}

/* Éxito */
.modal__success {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.875rem;
  padding: 0.5rem 0;
}
.success__icon { animation: successPop 0.4s cubic-bezier(0.175,0.885,0.32,1.275); }
@keyframes successPop {
  from { transform: scale(0.5); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}
.success__note {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--brand);
  background: var(--brand-dim);
  border: 1px solid var(--brand-border);
  padding: 6px 14px;
  border-radius: 20px;
}

/* Pasos reales tras la activación (descargar → código → frase) */
.success__steps {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 100%;
  margin: 0.5rem 0 0.25rem;
  text-align: left;
}
.success__step {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}
.success__step-num {
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--green-dim);
  border: 1px solid var(--green-border);
  color: var(--green);
  font-size: 12px;
  font-weight: 600;
}
.success__step-text {
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--text-muted);
}
.success__step-text strong { color: var(--text-primary); }

/* ══════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════ */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 3rem;
  }
  .hero__visual {
    order: -1;
    max-height: 280px;
    overflow: hidden;
  }
  .hero__lockwave { max-width: 320px; }
  .hero__heading { text-align: center; }
  .hero__sub { margin: 0 auto 2rem; text-align: center; }
  .hero__badges { justify-content: center; }
  .hero__actions { justify-content: center; }

  .problem__grid { grid-template-columns: 1fr; }
  .problem__col--left::after { display: none; }
  .problem__col--left { padding-right: 0; }

  .features__grid { grid-template-columns: 1fr 1fr; }

  .how__steps { flex-direction: column; gap: 2rem; }
  .how__connector { display: none; }
  .how__step { padding: 0; }

  .trust__grid { grid-template-columns: 1fr; }

  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  .nav__links {
    display: none;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background: var(--bg-01);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: stretch;
    padding: 0.75rem;
    gap: 4px;
  }
  .nav__links.open { display: flex; }
  .nav__hamburger { display: flex; }
  .nav__cta { margin-left: 0; }

  .features__grid { grid-template-columns: 1fr; }
  .trust__col--cards { grid-template-columns: 1fr; }

  .footer__grid { grid-template-columns: 1fr; }

  .hero__sub { max-width: 100%; }
  .hero__actions { flex-direction: column; align-items: center; }
  .hero__actions .btn { width: 100%; justify-content: center; }

  .how__step-number { font-size: 1.8rem; }
}

/* ── Focus visible global ── */
:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

/* ── Scrollbar personalizada ── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg-01); }
::-webkit-scrollbar-thumb { background: var(--bg-04); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-dim); }

/* ── Selección de texto ── */
::selection { background: var(--brand-dim); color: var(--text-primary); }
