/* ================================================================
   IO Codex — styles.css

   TABLE OF CONTENTS
    0. Custom Properties
    1. Reset & Base
    2. Scrollbar
    3. Navbar
    4. Hero
    5. Section Generic
    6. Features
    7. Membership / Plans
    8. CTA
    9. Footer
   10. Modal
   11. Keyframes
   12. Scroll Reveal
   13. Media Queries
================================================================ */


/* ── 0. Custom Properties ────────────────────────────────────── */

:root {
  /* New design palette */
  --bg:          #040b0a;
  --bg-2:        #061311;
  --banner-h:    40px;
  --panel:       #071613;
  --line:        rgba(15,224,192,.14);
  --line-gold:   rgba(212,175,90,.35);
  --teal:        #11e2c2;
  --teal-soft:   #2af5d6;
  --teal-deep:   #0a5a4e;
  --gold:        #d4af5a;
  --gold-light:  #f3dd99;
  --gold-deep:   #8a6a2a;
  --text:        #e9f5f1;
  --muted:       #74948c;

  /* Fonts */
  --mono:  'IBM Plex Mono', monospace;
  --serif: 'Cinzel', serif;
  --sans:  'Outfit', sans-serif;

  /* Legacy aliases — keep modal & shared components working */
  --clr-bg:    var(--bg);
  --clr-card:  var(--panel);
  --clr-green: var(--teal);
  --clr-teal:  var(--teal);
  --clr-gold:  var(--gold);
  --clr-red:   #ff4466;
  --clr-muted: var(--muted);
  --border:    var(--line);
  --glow:      0 0 22px rgba(17,226,194,.25);
  --nav-h:     64px;
  --radius:    8px;
  --t:         0.25s ease;
}


/* ── 1. Reset & Base ─────────────────────────────────────────── */

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  overflow-x: hidden;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(1200px 600px at 70% 12%, rgba(17,226,194,.06), transparent 60%),
    radial-gradient(900px 500px at 30% 90%, rgba(212,175,90,.05), transparent 60%),
    linear-gradient(180deg, #04100e 0%, #040b0a 40%, #03100d 100%);
}

::selection { background: rgba(17,226,194,.25); }

ul      { list-style: none; }
a       { color: inherit; text-decoration: none; }
img     { display: block; max-width: 100%; }
button  { font-family: inherit; cursor: pointer; }
em      { font-style: normal; }
[hidden] { display: none !important; }
body.modal-open { overflow: hidden; }


/* ── 2. Scrollbar ────────────────────────────────────────────── */

::-webkit-scrollbar       { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: rgba(17,226,194,.25); border-radius: 3px; }


/* ── 3. Navbar ───────────────────────────────────────────────── */

/* ── Referral banner ─────────────────────────────────────────── */

#refBanner {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 51;
  height: var(--banner-h);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  background: rgba(4,11,10,.97);
  border-bottom: 1px solid rgba(42,245,214,.2);
  font-size: 0.76rem;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,.55);
  transform: translateY(-100%);
  transition: transform 0.35s ease;
}

#refBanner.is-visible {
  transform: translateY(0);
}

.ref-banner__cta {
  color: var(--teal);
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1px solid rgba(42,245,214,.35);
  transition: color var(--t), border-color var(--t);
}
.ref-banner__cta:hover { color: #fff; border-color: rgba(255,255,255,.4); }

.ref-banner__close {
  position: absolute;
  right: 1rem;
  background: none;
  border: none;
  color: rgba(255,255,255,.3);
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.2rem 0.4rem;
  transition: color var(--t);
}
.ref-banner__close:hover { color: rgba(255,255,255,.7); }

body.ref-banner-visible .navbar { top: var(--banner-h); }

/* ─────────────────────────────────────────────────────────────── */

.navbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
  padding-inline: 2.5rem;
  background: linear-gradient(180deg, rgba(4,11,10,.92), rgba(4,11,10,.65) 70%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t);
}

/* Brand / Logo */

.navbar__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.nav-logo {
  height: 42px;
  width: auto;
  display: block;
}

.nav-name {
  font-family: var(--serif);
  font-size: 1.05rem;
  letter-spacing: .18em;
  font-weight: 600;
}

.nav-name b {
  background: linear-gradient(120deg, var(--gold-light), var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 700;
}

.nav-name span {
  color: var(--teal-soft);
  font-weight: 500;
}

/* Nav links */

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

.navbar__links a {
  font-family: var(--mono);
  font-size: .62rem;
  letter-spacing: .28em;
  color: var(--gold);
  padding: 8px 14px;
  position: relative;
  transition: color .25s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.navbar__links a::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 4px;
  background: var(--teal);
  flex-shrink: 0;
  box-shadow: 0 0 6px var(--teal);
}

.navbar__links a:hover { color: var(--gold-light); }

/* Actions: lang toggle + burger */

.navbar__actions {
  display: flex;
  align-items: center;
  gap: .75rem;
}

.nav-discord {
  display: flex;
  align-items: center;
  color: var(--muted);
  transition: color .2s;
}

.nav-discord:hover { color: #5865F2; }

.nav-discord svg {
  display: block;
  width: 20px;
  height: 20px;
}

.nav-login-btn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .38rem .9rem;
  border: 1px solid rgba(17,226,194,.35);
  border-radius: 50px;
  color: var(--teal-soft, #11e2c2);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .07em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  transition: background .2s, border-color .2s;
}
.nav-login-btn:hover {
  background: rgba(17,226,194,.1);
  border-color: rgba(17,226,194,.6);
}
.nav-login-btn svg { flex-shrink: 0; }

@media (max-width: 600px) {
  .nav-login-btn span { display: none; }
  .nav-login-btn { padding: .38rem .55rem; }
}

.lang-btn {
  display: flex;
  align-items: center;
  gap: .45rem;
  padding: .45rem .8rem;
  background: rgba(17,226,194,.06);
  border: 1px solid rgba(17,226,194,.22);
  border-radius: 50px;
  color: var(--teal-soft);
  font-family: var(--mono);
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .1em;
  transition: all var(--t);
}

.lang-btn:hover {
  background: rgba(17,226,194,.14);
  border-color: var(--teal);
}

.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  padding: 4px;
}

.burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--teal);
  border-radius: 2px;
  transition: all .3s ease;
}

.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }


/* ── 4. Hero ─────────────────────────────────────────────────── */

.hero {
  position: relative;
  min-height: 100vh;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 40px 80px;
}

#mapCanvas,
#waveCanvas { position: absolute; pointer-events: none; z-index: 0; }

#mapCanvas  { top: 8%; left: 2%; opacity: .85; }
#waveCanvas { bottom: 0; left: 0; width: 100%; height: 46%; }

.hero-candles {
  position: absolute;
  top: 6%;
  right: 0;
  width: 300px;
  height: 340px;
  opacity: .9;
  pointer-events: none;
}

.hero-grid-tr {
  position: absolute;
  top: 30px;
  right: 30px;
  width: 140px;
  height: 90px;
  opacity: .5;
  pointer-events: none;
  background-image: radial-gradient(rgba(17,226,194,.5) 1px, transparent 1px);
  background-size: 9px 9px;
  mask-image: linear-gradient(225deg, #000 30%, transparent 80%);
  -webkit-mask-image: linear-gradient(225deg, #000 30%, transparent 80%);
}

/* Side text blocks */

.hero-side {
  position: absolute;
  z-index: 3;
  font-family: var(--mono);
}

.hero-side.left { left: 40px; top: 38%; }

.hero-side.left h4 {
  font-size: .66rem;
  letter-spacing: .22em;
  font-weight: 400;
  color: var(--muted);
  text-transform: uppercase;
  line-height: 2;
}

.hero-side.left h4 em { font-style: normal; color: #b7d6cf; }

.ticker-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
}

.ticker-cells { display: flex; gap: 2px; }

.ticker-cells i {
  display: block;
  width: 3px;
  background: var(--gold);
  opacity: .8;
}

.ticker-bar small {
  font-size: .6rem;
  color: var(--gold);
  letter-spacing: .1em;
}

.frame-box {
  margin-top: 46px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 18px 22px;
  position: relative;
  max-width: 200px;
  background: linear-gradient(160deg, rgba(17,226,194,.04), transparent);
}

.frame-box::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 18px;
  width: 34px;
  height: 1px;
  background: var(--teal);
  box-shadow: 0 0 8px var(--teal);
}

.frame-box p {
  font-size: .66rem;
  letter-spacing: .22em;
  color: #9db8b1;
  line-height: 2.1;
  text-transform: uppercase;
}

.frame-box .bar {
  margin-top: 12px;
  width: 54px;
  height: 2px;
  background: var(--teal);
  box-shadow: 0 0 10px var(--teal);
}

.hero-side.right { right: 40px; top: 40%; }

.hero-side.right ul { list-style: none; }

.hero-side.right li {
  font-size: .62rem;
  letter-spacing: .18em;
  color: #a8c4bd;
  text-transform: uppercase;
  padding: 5px 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero-side.right li::before {
  content: '';
  width: 5px;
  height: 5px;
  background: var(--teal);
  box-shadow: 0 0 8px var(--teal);
  flex-shrink: 0;
}

.hero-side.right li:nth-child(even)::before {
  background: var(--gold);
  box-shadow: 0 0 8px var(--gold);
}

.gauge {
  margin-top: 18px;
  border: 1px solid var(--line);
  padding: 8px 10px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.gauge-cells { display: flex; gap: 2px; }

.gauge-cells i {
  display: block;
  width: 4px;
  height: 12px;
  background: var(--gold);
  opacity: .9;
}

.gauge-cells i.dim { opacity: .25; }

.gauge small {
  font-size: .6rem;
  color: var(--muted);
}

/* Emblem */

.emblem-wrap {
  position: relative;
  z-index: 2;
  width: min(560px, 86vw);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
}

.emblem-svg { width: 100%; height: 100%; overflow: visible; }

.emblem-core {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateY(-4%);
}

.glyph-i {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(7rem, 22vw, 13rem);
  line-height: 1;
  background: linear-gradient(175deg, #f7e7ae 0%, var(--gold) 38%, #7a5d24 60%, #e8cd84 82%, #9c7c33 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 24px rgba(212,175,90,.35));
  margin-right: -.04em;
}

.o-wrap {
  position: relative;
  width: clamp(120px, 24vw, 210px);
  height: clamp(120px, 24vw, 210px);
  display: block;
}

.glyph-o {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(from 210deg, #0c8d79, #2af5d6 18%, #0a4d44 38%, #11e2c2 52%, #06352f 70%, #20d8bd 88%, #0c8d79);
  -webkit-mask: radial-gradient(circle at 50% 50%, transparent 56%, #000 57%);
  mask: radial-gradient(circle at 50% 50%, transparent 56%, #000 57%);
  filter: drop-shadow(0 0 30px rgba(17,226,194,.45));
}

.o-wrap::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid rgba(42,245,214,.45);
}

.o-candles {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}

.o-candles svg { width: 52%; height: 52%; overflow: visible; }

/* Rotating rings */

@keyframes spinSlow  { to { transform: rotate(360deg);  } }
@keyframes spinSlowR { to { transform: rotate(-360deg); } }

.ring-rot  {
  transform-origin: 300px 300px;
  animation: spinSlow 90s linear infinite;
}

.ring-rot-r {
  transform-origin: 300px 300px;
  animation: spinSlowR 120s linear infinite;
}

@media (prefers-reduced-motion: reduce) {
  .ring-rot,
  .ring-rot-r { animation: none; }
}

/* Bottom tag */

.hero-bottom-tag {
  position: absolute;
  bottom: 34px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  text-align: center;
  font-family: var(--mono);
}

.hero-bottom-tag .rule {
  width: 260px;
  height: 1px;
  margin: 0 auto 12px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.hero-bottom-tag p {
  font-size: .7rem;
  letter-spacing: .55em;
  color: var(--gold);
  text-transform: uppercase;
}

.hero-bottom-tag .dots {
  margin-top: 10px;
  display: flex;
  gap: 6px;
  justify-content: center;
}

.hero-bottom-tag .dots i {
  display: block;
  width: 3px;
  height: 3px;
  background: var(--teal);
  box-shadow: 0 0 6px var(--teal);
}


/* ── 5. Section Generic ──────────────────────────────────────── */

section {
  position: relative;
  z-index: 1;
  padding: 110px 40px;
}

.sec-head {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 64px;
}

.eyebrow {
  font-family: var(--mono);
  font-size: .62rem;
  letter-spacing: .45em;
  color: var(--teal-soft);
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.eyebrow::before,
.eyebrow::after {
  content: '';
  width: 36px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold));
}

.eyebrow::after {
  background: linear-gradient(90deg, var(--gold), transparent);
}

.sec-head h2 {
  margin-top: 20px;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.8rem, 4vw, 2.7rem);
  letter-spacing: .06em;
  line-height: 1.25;
}

.sec-head h2 .au {
  background: linear-gradient(120deg, var(--gold-light), var(--gold) 60%, var(--gold-deep));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.sec-head h2 .tl {
  background: linear-gradient(120deg, var(--teal-soft), var(--teal) 50%, #0c8d79);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.sec-head p {
  margin-top: 18px;
  color: rgba(255,255,255,0.82);
  font-weight: 400;
  font-size: 1.13rem;
  line-height: 1.65;
}


/* ── 6. Features ─────────────────────────────────────────────── */

.feat-grid {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 22px;
}

.feat {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 30px 28px;
  background: linear-gradient(165deg, rgba(17,226,194,.045), rgba(4,11,10,.4) 55%);
  position: relative;
  overflow: hidden;
  transition: border-color .3s, transform .3s, box-shadow .3s;
}

.feat::before {
  content: '';
  position: absolute;
  top: 0;
  left: 24px;
  width: 44px;
  height: 1px;
  background: var(--teal);
  box-shadow: 0 0 10px var(--teal);
  transition: width .35s;
}

.feat:hover {
  border-color: rgba(17,226,194,.4);
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(0,0,0,.45);
}

.feat:hover::before { width: 96px; }

.feat .idx {
  font-family: var(--mono);
  font-size: .6rem;
  letter-spacing: .3em;
  color: var(--gold);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}

.feat .idx::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--line-gold), transparent);
}

.feat h3 {
  font-family: var(--serif);
  font-size: 1.05rem;
  letter-spacing: .12em;
  font-weight: 600;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.feat p {
  color: var(--muted);
  font-weight: 300;
  font-size: .92rem;
}

.feat .icon {
  position: absolute;
  right: 22px;
  top: 24px;
  width: 34px;
  height: 34px;
  opacity: .85;
}


/* ── 7. Membership / Plans ───────────────────────────────────── */

.membership {
  background:
    radial-gradient(800px 420px at 18% 30%, rgba(17,226,194,.05), transparent 60%),
    radial-gradient(700px 400px at 85% 80%, rgba(212,175,90,.05), transparent 60%);
}

.member-intro {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 70px;
}

.member-logo {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  letter-spacing: .04em;
  line-height: 1.05;
}

.member-logo .io {
  background: linear-gradient(115deg, #2af5d6 0%, #11e2c2 35%, #bfa14e 70%, #f3dd99 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 18px rgba(17,226,194,.25));
}

.member-logo .cdx {
  background: linear-gradient(115deg, #f3dd99, #d4af5a 55%, #8a6a2a);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 18px rgba(212,175,90,.25));
}

.member-sub {
  margin-top: 8px;
  font-family: var(--serif);
  font-size: clamp(1rem, 2.6vw, 1.6rem);
  letter-spacing: .55em;
  color: #cfe8e2;
  display: flex;
  align-items: center;
  gap: 18px;
  font-weight: 500;
}

.member-sub::before,
.member-sub::after {
  content: '—';
  color: var(--gold);
  font-size: .8em;
}

.member-tag {
  margin-top: 26px;
  font-weight: 300;
  font-size: clamp(1rem, 2.4vw, 1.45rem);
  color: #dff2ed;
  letter-spacing: .02em;
}

.member-tag .rule {
  width: 320px;
  max-width: 70vw;
  height: 1px;
  margin: 18px auto 0;
  background: linear-gradient(90deg, transparent, var(--teal), transparent);
  box-shadow: 0 0 12px rgba(17,226,194,.5);
}

/* Plan cards grid */

.plans {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 28px;
  align-items: stretch;
}

.plan {
  position: relative;
  border-radius: 12px;
  padding: 42px 30px 34px;
  border: 1px solid rgba(17,226,194,.35);
  background: linear-gradient(180deg, rgba(10,28,25,.85), rgba(5,13,12,.92));
  box-shadow: 0 0 0 1px rgba(17,226,194,.05), 0 24px 50px rgba(0,0,0,.5), inset 0 0 40px rgba(17,226,194,.03);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform .35s cubic-bezier(.22,.68,0,1.2), box-shadow .35s ease, border-color .35s ease;
}

.plan:hover {
  transform: translateY(-8px) scale(1.03);
  border-color: rgba(17,226,194,.55);
  box-shadow:
    0 0 0 1px rgba(17,226,194,.28),
    0 32px 64px rgba(0,0,0,.6),
    0 0 50px rgba(17,226,194,.1),
    inset 0 0 60px rgba(17,226,194,.07);
}

/* Gradient border */
.plan::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 12px;
  padding: 1px;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(42,245,214,.5), transparent 40%, rgba(42,245,214,.18));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  z-index: 0;
}

/* Subtle light shimmer on hover */
.plan::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 12px;
  background: radial-gradient(ellipse 90% 55% at 50% -5%, rgba(17,226,194,.22) 0%, rgba(42,245,214,.06) 45%, transparent 70%);
  opacity: 0;
  transition: opacity .45s ease;
  pointer-events: none;
  z-index: 0;
}

.plan:hover::after { opacity: 1; }

.badge {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--mono);
  font-size: .6rem;
  letter-spacing: .26em;
  color: #1d1606;
  background: linear-gradient(120deg, #f3dd99, #d4af5a);
  padding: 7px 22px;
  border-radius: 3px;
  font-weight: 500;
  white-space: nowrap;
  clip-path: polygon(8px 0, calc(100% - 8px) 0, 100% 50%, calc(100% - 8px) 100%, 8px 100%, 0 50%);
  box-shadow: 0 0 24px rgba(212,175,90,.45);
}

.plan h3 {
  text-align: center;
  font-family: var(--mono);
  font-weight: 500;
  font-size: 1.05rem;
  letter-spacing: .42em;
  color: var(--teal-soft);
  text-transform: uppercase;
  text-shadow: 0 0 14px rgba(17,226,194,.5);
}

.plan-rule {
  width: 100%;
  height: 1px;
  margin: 18px 0 26px;
  background: linear-gradient(90deg, transparent, var(--line), transparent);
}

.plan-icon {
  width: 84px;
  height: 90px;
  margin: 0 auto 26px;
  display: block;
}

.plan-price {
  text-align: center;
  margin-bottom: 24px;
}

.plan-price .amount {
  font-family: var(--serif);
  font-size: 2.1rem;
  font-weight: 600;
  color: var(--text);
}

.plan-price .amount span {
  font-size: 1rem;
  color: var(--muted);
  font-family: var(--sans);
  font-weight: 300;
}

.plan-price small {
  display: block;
  font-family: var(--mono);
  font-size: .58rem;
  letter-spacing: .2em;
  color: var(--muted);
  margin-top: 4px;
  text-transform: uppercase;
}

.plan ul {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 13px;
  margin-bottom: 30px;
}

.plan li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: .92rem;
  font-weight: 300;
  color: #d4e8e2;
}

.plan li svg { flex: none; margin-top: 4px; }

/* Plan CTA button */

.plan-card__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-family: var(--mono);
  font-size: .66rem;
  letter-spacing: .26em;
  text-transform: uppercase;
  padding: 15px 18px;
  border-radius: 4px;
  cursor: pointer;
  border: 1px solid rgba(212,175,90,.55);
  color: var(--gold-light);
  background: linear-gradient(180deg, rgba(212,175,90,.08), rgba(212,175,90,.02));
  width: 100%;
  transition: all .25s;
}

.plan-card__cta:hover {
  box-shadow: 0 0 26px rgba(212,175,90,.3);
  border-color: var(--gold);
  background: linear-gradient(180deg, rgba(212,175,90,.16), rgba(212,175,90,.05));
}

.plan-lock {
  width: 14px;
  height: 14px;
}


/* ── 8. CTA ──────────────────────────────────────────────────── */

.cta {
  position: relative;
  text-align: center;
  overflow: hidden;
}

.cta-ring {
  position: absolute;
  left: 50%;
  bottom: -340px;
  transform: translateX(-50%);
  width: 760px;
  height: 760px;
  opacity: .5;
  pointer-events: none;
}

.cta .sec-head { margin-bottom: 38px; }

.cta-btns {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  position: relative;
  z-index: 2;
}

.btn-main {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  font-size: .7rem;
  letter-spacing: .26em;
  text-transform: uppercase;
  padding: 17px 36px;
  border-radius: 4px;
  background: linear-gradient(120deg, #f3dd99, #d4af5a);
  color: #1d1606;
  font-weight: 500;
  box-shadow: 0 0 34px rgba(212,175,90,.35);
  transition: all .25s;
}

.btn-main:hover {
  box-shadow: 0 0 54px rgba(212,175,90,.6);
  transform: translateY(-2px);
}

.btn-ghost-cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  font-size: .7rem;
  letter-spacing: .26em;
  text-transform: uppercase;
  padding: 17px 36px;
  border-radius: 4px;
  border: 1px solid rgba(17,226,194,.45);
  color: var(--teal-soft);
  box-shadow: inset 0 0 18px rgba(17,226,194,.05);
  transition: all .25s;
}

.btn-ghost-cta:hover {
  box-shadow: 0 0 26px rgba(17,226,194,.3);
  border-color: var(--teal);
}

button.btn-ghost-cta {
  background: none;
  cursor: pointer;
}

/* ── Tutorial modal ─────────────────────────────────────────────────── */
.tutorial-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tutorial-modal[hidden] { display: none; }

.tutorial-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.82);
  backdrop-filter: blur(4px);
}

.tutorial-modal-box {
  position: relative;
  width: min(900px, 94vw);
  z-index: 1;
}

.tutorial-modal-close {
  position: absolute;
  top: -40px;
  right: 0;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.4rem;
  cursor: pointer;
  opacity: .7;
  transition: opacity .2s;
}

.tutorial-modal-close:hover { opacity: 1; }

.tutorial-modal-iframe-wrap {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 0 60px rgba(0,0,0,.6);
}

.tutorial-modal-iframe-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}


/* ── 8b. CTA typography — align with membresías ─────────────── */

.cta .eyebrow {
  font-family: 'Montserrat', sans-serif;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .35em;
}

.cta .sec-head h2 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  letter-spacing: .02em;
}

/* ── 8c. Social links (CTA section) ─────────────────────────── */

.cta-social {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 40px;
  flex-wrap: wrap;
  position: relative;
  z-index: 2;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--mono);
  font-size: .78rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color .2s;
}

.social-link:hover { color: var(--teal-soft); }

.social-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.social-sep {
  color: rgba(255,255,255,.12);
  font-family: var(--mono);
  font-size: 1rem;
  user-select: none;
}


/* ── 9. Footer ───────────────────────────────────────────────── */

footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--line);
  padding: 46px 40px 38px;
  text-align: center;
  font-family: var(--mono);
}

footer .f-brand {
  font-family: var(--serif);
  letter-spacing: .2em;
  font-size: 1rem;
  margin-bottom: 10px;
}

footer .f-brand b {
  background: linear-gradient(120deg, var(--gold-light), var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

footer .f-brand span { color: var(--teal-soft); }

footer p {
  font-size: .6rem;
  letter-spacing: .3em;
  color: var(--muted);
  text-transform: uppercase;
}

.f-legal {
  margin-top: 10px;
  font-size: .6rem;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.f-legal a {
  color: var(--muted);
  text-underline-offset: 3px;
  transition: color .2s;
}

.f-legal a:hover { color: var(--teal-soft); }

footer .disclaimer {
  max-width: 680px;
  margin: 22px auto 0;
  font-family: var(--sans);
  font-weight: 300;
  font-size: .72rem;
  letter-spacing: .02em;
  color: #56716a;
  text-transform: none;
  line-height: 1.7;
}


/* ── 9b. Footer social icons ─────────────────────────────────── */

.f-social {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 22px;
  margin: 20px 0 16px;
}

.f-social__link {
  color: var(--muted);
  transition: color .22s;
  line-height: 1;
}

.f-social__link:hover { color: var(--teal-soft); }

.f-social__link svg {
  display: block;
  width: 18px;
  height: 18px;
}


/* ── 10. Modal ───────────────────────────────────────────────── */

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(4,11,10,.88);
  backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--t);
}

.modal-overlay.is-open {
  opacity: 1;
  pointer-events: all;
}

.modal {
  position: relative;
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  background: var(--clr-card);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) * 1.5);
  box-shadow: var(--glow), 0 24px 64px rgba(0,0,0,.7);
  overflow: hidden;
  transform: translateY(20px);
  transition: transform .3s ease;
}

.modal-overlay.is-open .modal { transform: translateY(0); }

.modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 1.5rem;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.modal__steps-track { display: flex; gap: .5rem; }

.modal__step-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--clr-muted);
  transition: background var(--t), box-shadow var(--t);
}

.modal__step-dot.is-active {
  background: var(--clr-green);
  box-shadow: 0 0 8px rgba(17,226,194,.55);
}

.modal__close {
  background: none;
  border: none;
  color: var(--clr-muted);
  font-size: 1rem;
  line-height: 1;
  padding: .3rem .55rem;
  border-radius: var(--radius);
  cursor: pointer;
  transition: color var(--t), background var(--t);
}

.modal__close:hover {
  color: var(--clr-green);
  background: rgba(17,226,194,.08);
}

.modal__body {
  flex: 1;
  overflow-y: auto;
  padding: 1.5rem;
  scrollbar-width: thin;
  scrollbar-color: var(--clr-muted) transparent;
}

.modal__step           { display: none; }
.modal__step.is-active { display: block; }

.modal__step-title {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: .04em;
  color: #fff;
  margin-bottom: .5rem;
}

.modal__step-subtitle {
  font-size: .8rem;
  color: var(--clr-muted);
  margin-bottom: 1.35rem;
}

.modal__terms-text {
  font-size: .77rem;
  color: #7a9a8a;
  line-height: 1.7;
  margin-bottom: 1rem;
}

.modal__terms-text strong {
  display: block;
  color: #b0d4c8;
  margin-top: 1rem;
  margin-bottom: .2rem;
}

.modal__privacy-body {
  margin-bottom: 1.25rem;
}

.modal__privacy-body p {
  font-size: .77rem;
  color: #7a9a8a;
  line-height: 1.7;
  margin-bottom: .75rem;
}

.modal__privacy-body p:last-child { margin-bottom: 0; }


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

.modal__check {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  cursor: pointer;
}

.modal__check input[type="checkbox"] {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  margin-top: 2px;
  accent-color: var(--clr-green);
  cursor: pointer;
}

.modal__check span {
  font-size: .82rem;
  color: #9ab5a5;
  line-height: 1.55;
}

.modal__check--optional {
  margin-top: 12px;
  opacity: .8;
}

.modal__check--optional span { color: #6e9180; }
.modal__check--optional em { font-style: normal; font-size: .75rem; color: #556b65; }

.modal__check--discord-skip {
  margin-top: 6px;
  padding-top: 14px;
  border-top: 1px solid rgba(88,101,242,.15);
}
.modal__check--discord-skip span { color: #8090c8; font-size: .82rem; }

.modal__field {
  display: flex;
  flex-direction: column;
  gap: .35rem;
}

.modal__field label {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--clr-muted);
}

.modal__field input,
.modal__field select {
  background: rgba(0,0,0,.32);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: .65rem .9rem;
  color: #fff;
  font-family: inherit;
  font-size: .9rem;
  outline: none;
  width: 100%;
  transition: border-color var(--t), box-shadow var(--t);
}

.modal__field input::placeholder { color: var(--clr-muted); }

.modal__field input:focus,
.modal__field select:focus {
  border-color: var(--clr-green);
  box-shadow: 0 0 0 3px rgba(17,226,194,.1);
}

.modal__field input[aria-invalid="true"],
.modal__field input[aria-invalid="true"]:focus {
  border-color: var(--clr-red);
  box-shadow: 0 0 0 3px rgba(255,68,102,.1);
}

.modal__field select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='7' viewBox='0 0 12 7'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%235a7a65' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .9rem center;
  padding-right: 2.5rem;
}

.modal__field select option { background: var(--clr-card); color: #fff; }

.modal__billing {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
}

.modal__billing-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: .65rem .9rem;
  background: rgba(0,0,0,.32);
  border: none;
  color: var(--clr-muted);
  font-family: inherit;
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .03em;
  cursor: pointer;
  transition: background var(--t), color var(--t);
}

.modal__billing-btn:first-child { border-right: 1px solid var(--border); }

.modal__billing-btn--active {
  background: rgba(17,226,194,.08);
  color: var(--clr-green);
}

.modal__billing-save {
  font-size: .62rem;
  font-weight: 800;
  letter-spacing: .05em;
  padding: .12rem .38rem;
  border-radius: 50px;
  background: rgba(17,226,194,.12);
  color: var(--clr-green);
}

.modal__billing-btn--active .modal__billing-save {
  background: rgba(17,226,194,.22);
}

.modal__field-error {
  font-size: .72rem;
  color: var(--clr-red);
  min-height: 1em;
}

.modal__err-login {
  color: var(--teal);
  font-weight: 600;
  text-decoration: underline;
  white-space: nowrap;
}

.modal__form-error {
  margin-top: 1rem;
  padding: .65rem 1rem;
  background: rgba(255,68,102,.07);
  border: 1px solid rgba(255,68,102,.28);
  border-radius: var(--radius);
  font-size: .8rem;
  font-weight: 600;
  color: var(--clr-red);
  text-align: center;
  line-height: 1.45;
}

.modal__form-error:empty { display: none !important; }

/* ── Discord step ────────────────────────────────────────── */

.modal__discord-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: .25rem 0;
  gap: .9rem;
}

.modal__discord-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.modal__discord-logo-io {
  height: 52px;
  width: auto;
  opacity: .9;
  object-fit: contain;
}

.modal__discord-logos-sep {
  font-size: 1.4rem;
  font-weight: 300;
  color: rgba(255,255,255,.35);
  line-height: 1;
}

.modal__discord-logo-discord {
  width: 44px;
  height: 44px;
  color: #7289da;
}

.modal__discord-important {
  font-family: var(--mono);
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  margin: 0;
  background: linear-gradient(100deg, #e8c97a 0%, #f5e6b0 40%, #c9a84c 70%, #e8c97a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 200% auto;
  animation: importanteShimmer 3.5s linear infinite;
}

@keyframes importanteShimmer {
  0%   { background-position: 0% center; }
  100% { background-position: 200% center; }
}

.modal__discord-msg {
  font-size: .85rem;
  color: #8fa89e;
  line-height: 1.65;
  max-width: 380px;
}

.modal__discord-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: .75rem 1.8rem;
  background: transparent;
  border: 1px solid rgba(88,101,242,.6);
  border-radius: var(--radius);
  color: #7289da;
  font-family: inherit;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background var(--t), border-color var(--t), color var(--t), box-shadow var(--t);
}

.modal__discord-btn:hover {
  background: rgba(88,101,242,.12);
  border-color: #5865f2;
  color: #fff;
  box-shadow: 0 0 18px rgba(88,101,242,.25);
}

.modal__discord-hint {
  font-size: .73rem;
  color: var(--clr-muted);
  letter-spacing: .02em;
}

.modal__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}

.modal__nav {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: rgba(17,226,194,.05);
  color: var(--clr-green);
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background var(--t), border-color var(--t), box-shadow var(--t);
}

.modal__nav:hover:not(:disabled) {
  background: rgba(17,226,194,.14);
  border-color: var(--clr-green);
  box-shadow: 0 0 12px rgba(17,226,194,.22);
}

.modal__nav:disabled {
  opacity: .28;
  cursor: not-allowed;
}

.modal__nav--next {
  width: auto;
  height: 40px;
  border-radius: 4px;
  padding: 0 1.4rem;
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .08em;
  min-width: 140px;
}

.modal__success {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 2rem;
  text-align: center;
  gap: 1rem;
}

.modal__success-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(17,226,194,.1);
  border: 1.5px solid var(--clr-green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: var(--clr-green);
  box-shadow: 0 0 22px rgba(17,226,194,.28);
  margin-bottom: .5rem;
}

.modal__success h2 {
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
}

.modal__success p {
  font-size: .85rem;
  color: var(--clr-muted);
  max-width: 340px;
  line-height: 1.6;
}

.modal__success-btn {
  margin-top: .5rem;
  padding: .75rem 2.8rem;
  background: var(--clr-green);
  border: none;
  border-radius: 4px;
  font-size: .82rem;
  font-weight: 900;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--clr-bg);
  cursor: pointer;
  transition: background var(--t), box-shadow var(--t);
}

.modal__success-btn:hover {
  background: #1af5d6;
  box-shadow: 0 0 25px rgba(17,226,194,.45);
}


/* ── 11. Keyframes ───────────────────────────────────────────── */

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20%       { transform: translateX(-8px); }
  40%       { transform: translateX(8px); }
  60%       { transform: translateX(-5px); }
  80%       { transform: translateX(5px); }
}

.shake { animation: shake .45s cubic-bezier(.36,.07,.19,.97) both; }


/* ── 11b. Video Carousel ─────────────────────────────────────── */

.vc-section {
  padding: 80px 0 60px;
  background: linear-gradient(180deg, transparent 0%, rgba(7,22,19,.5) 50%, transparent 100%);
  position: relative;
}

.vc-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 16px;
}

.vc-stage {
  flex: 1;
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background: #040c0a;
  border: 1px solid rgba(17,226,194,.18);
  box-shadow:
    0 0 40px rgba(17,226,194,.06),
    inset 0 0 60px rgba(0,0,0,.4);
  aspect-ratio: 16 / 9;
}

.vc-track {
  position: relative;
  width: 100%;
  height: 100%;
}

.vc-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.45s ease;
}

.vc-slide--active {
  opacity: 1;
  pointer-events: auto;
}

.vc-slide iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

.vc-empty {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: .08em;
}

.vc-arrow {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid rgba(17,226,194,.3);
  background: rgba(7,22,19,.7);
  color: var(--teal);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .2s, border-color .2s, transform .15s;
  backdrop-filter: blur(6px);
}

.vc-arrow:hover {
  background: rgba(17,226,194,.12);
  border-color: rgba(17,226,194,.6);
  transform: scale(1.07);
}

.vc-arrow:active {
  transform: scale(.96);
}

.vc-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 22px;
}

.vc-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: rgba(17,226,194,.25);
  cursor: pointer;
  padding: 0;
  transition: background .2s, transform .2s;
}

.vc-dot--active {
  background: var(--teal);
  transform: scale(1.3);
}

.vc-dot:hover:not(.vc-dot--active) {
  background: rgba(17,226,194,.5);
}

.vc-discord {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin: 22px auto 0;
  font-family: var(--mono);
  font-size: .68rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color .2s;
}

.vc-discord:hover { color: #5865F2; }

.vc-discord svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.vc-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 20px auto 0;
  font-family: var(--mono);
  font-size: .68rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold);
  min-height: 1em;
}

.vc-title::before,
.vc-title::after {
  content: '';
  display: block;
  width: 36px;
  height: 1px;
  background: rgba(212,175,90,.35);
  flex-shrink: 0;
}


/* ── 12. Scroll Reveal ───────────────────────────────────────── */

.rv {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .8s ease, transform .8s ease;
}

.rv.on {
  opacity: 1;
  transform: none;
}


/* ── 13. Media Queries ───────────────────────────────────────── */

@media (max-width: 1100px) {
  .hero-side.right { display: none; }
  #mapCanvas        { opacity: .45; }
}

@media (max-width: 860px) {
  .navbar { padding-inline: 1.25rem; }

  .hero { padding: 110px 20px 120px; }

  .hero-side.left  { display: none; }
  .hero-candles    { width: 180px; height: 220px; opacity: .5; }

  section          { padding: 80px 20px; }

  .member-sub { letter-spacing: .32em; }
}

@media (max-width: 768px) {
  .navbar__links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: rgba(4,11,10,.97);
    padding: 1rem 2rem 1.5rem;
    border-bottom: 1px solid var(--border);
    gap: 0;
  }

  .navbar__links.is-open { display: flex; }

  .navbar__links a {
    padding: .8rem 0;
    border-bottom: 1px solid rgba(17,226,194,.08);
  }

  .burger { display: flex; }
}

@media (max-width: 480px) {
  .modal-overlay { align-items: flex-end; padding: 0; }
  .modal         { max-height: 100vh; border-radius: var(--radius) var(--radius) 0 0; }
}


/* ── 14. Mobile — 640px ──────────────────────────────────── */

@media (max-width: 640px) {
  section { padding: 72px 18px; }

  /* Navbar */
  .nav-name { font-size: .9rem; letter-spacing: .12em; }

  /* Features grid */
  .feat-grid { grid-template-columns: 1fr; }
  .feat      { padding: 22px 18px; }

  /* Membership intro */
  .member-tag { font-size: clamp(.9rem, 3vw, 1.25rem); }

  /* Plans */
  .plan             { padding: 38px 22px 28px; }
  .plan-price .amount { font-size: 1.85rem; }

  /* Video carousel — smaller arrows */
  .vc-inner { gap: 10px; padding: 0 10px; }
  .vc-arrow { width: 40px; height: 40px; }

  /* CTA — stack buttons */
  .cta-btns { gap: 12px; }
  .btn-main,
  .btn-ghost-cta { width: min(100%, 320px); justify-content: center; }

  /* CTA social */
  .social-sep  { display: none; }
  .cta-social  { gap: 10px; flex-wrap: wrap; justify-content: center; }
  .social-link { font-size: .72rem; }

  /* Footer */
  footer    { padding: 34px 20px 26px; }
  .f-social { gap: 14px; }

  /* Modal — prevent overflow en rango 480–640px */
  .modal-overlay { padding: 1rem; }
  .modal { max-width: calc(100% - 2rem); max-height: 92vh; max-height: 92dvh; }
}


/* ── 15. Mobile — 480px ──────────────────────────────────── */

@media (max-width: 480px) {
  section { padding: 60px 16px; }

  /* Navbar */
  .navbar   { padding-inline: 1rem; }
  .nav-name { font-size: .8rem; letter-spacing: .08em; }
  .lang-btn { padding: .38rem .6rem; font-size: .6rem; }

  /* Features — force 1 col, override minmax(320px) */
  .feat-grid { grid-template-columns: 1fr; }
  .feat p    { font-size: .88rem; }

  /* CTA */
  .cta-ring   { display: none; }
  .cta-social { flex-direction: column; align-items: center; gap: 8px; }
  .btn-main,
  .btn-ghost-cta { padding: 14px 20px; font-size: .62rem; letter-spacing: .2em; }

  /* Video carousel — hide side arrows, use dots only */
  .vc-arrow { display: none; }
  .vc-stage { border-radius: 10px; }

  /* Footer */
  footer           { padding: 26px 14px 20px; }
  .f-social        { gap: 8px; }
  footer > p       { font-size: .58rem; letter-spacing: .2em; }
  footer .disclaimer { font-size: .67rem; }

  /* Modal — full viewport en móvil para evitar recorte por teclado virtual */
  .modal-overlay {
    align-items: flex-start;
    padding: 0;
  }
  .modal {
    width: 100%;
    max-width: 100%;
    border-radius: 0;
    /* dvh se encoge con el teclado; vh es el fallback para iOS < 16 */
    height: 100vh;
    height: 100dvh;
    max-height: 100vh;
    max-height: 100dvh;
  }
  .modal__body        { overscroll-behavior: contain; }
  .modal__step-title  { font-size: 1rem; }
  .modal__terms-text  { font-size: .73rem; }
  .modal__field label { font-size: .68rem; }
  .modal__field input,
  .modal__field select { padding: .55rem .8rem; font-size: .85rem; }
  .modal__check span  { font-size: .78rem; }
  .modal__footer      { padding-bottom: max(1rem, env(safe-area-inset-bottom)); }
  .modal__nav         { width: 44px; height: 44px; }
  .modal__success     { padding: 2rem 1.25rem; justify-content: center; }
}


/* ── 16. Mobile — 380px ──────────────────────────────────── */

@media (max-width: 380px) {
  /* Navbar — show logo only, hide text */
  .nav-name b,
  .nav-name span { display: none; }
  .lang-btn span { display: none; }
}
