:root{
  --bg: #0b0d12;
  --bg2:#0f1424;
  --card:#11182b;
  --card2:#0e1322;
  --text:#eef2ff;
  --muted:#a7b0cc;
  --line: rgba(255,255,255,.10);
  --primary:#7c5cff;
  --primary2:#4de6ff;
  --shadow: 0 20px 60px rgba(0,0,0,.40);
  --radius: 18px;

  --container: 1120px;
  --gutter: 16px;
  --section: 40px;
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
html{ color-scheme: dark; }
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Apple Color Emoji","Segoe UI Emoji";
  color:var(--text);
  background: var(--bg);
}

a{ color:inherit; text-decoration:none; }
a:hover{ text-decoration: underline; }

img,svg,video{ max-width:100%; height:auto; }
button{ font:inherit; }
::selection{ background: rgba(124,92,255,.35); }

/* A11y */
.skipLink{
  position:absolute;
  left:-999px;
  top:12px;
  padding:10px 12px;
  border-radius: 12px;
  background: rgba(17,24,43,.95);
  border:1px solid rgba(255,255,255,.14);
}
.skipLink:focus{ left:12px; z-index:999; }

:focus-visible{
  outline: 2px solid rgba(77,230,255,.9);
  outline-offset: 3px;
  border-radius: 10px;
}

.container{
  width: min(var(--container), calc(100vw - (var(--gutter) * 2)));
  margin-inline:auto;
}

.muted{ color:var(--muted); }
.tiny{ font-size:.86rem; line-height:1.35; }

/* Mobile first: MONO chico en celular */
.mono{
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 12px; /* ✅ SOLO mobile por default */
}

/* Keep anchor offsets under sticky header */
section{ scroll-margin-top: 84px; }

/* Topbar */
.topbar{
  position:sticky;
  top:0;
  z-index:50;
  background: rgba(11,13,18,.55);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.topbar__inner{
  position: relative; /* ✅ necesario para el dropdown del nav en mobile */
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:14px 0;
  gap:12px;
}

.brand{ display:flex; align-items:center; gap:12px; }
.brand__mark{
  width:38px; height:38px;
  display:grid; place-items:center;
  border-radius:12px;
  background: linear-gradient(135deg, rgba(124,92,255,.35), rgba(77,230,255,.25));
  border:1px solid var(--line);
}
.brand__text{ display:flex; flex-direction:column; gap:2px; }

/* =========================
   HAMBURGUESA (MOBILE FIRST)
   ========================= */

/* Botón hamburguesa */
.navToggle{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:44px;
  height:44px;
  border-radius: 14px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.04);
  color: var(--text);
  cursor:pointer;
}

.navToggle__bars{
  width:18px;
  height:2px;
  background: currentColor;
  position: relative;
  border-radius: 999px;
}
.navToggle__bars::before,
.navToggle__bars::after{
  content:"";
  position:absolute;
  left:0;
  width:18px;
  height:2px;
  background: currentColor;
  border-radius: 999px;
}
.navToggle__bars::before{ top:-6px; }
.navToggle__bars::after{ top:6px; }

/* Nav mobile (cerrado por defecto) */
.nav{
  display:none;
  position:absolute;
  top: calc(100% + 10px);
  left:0;
  right:0;
  padding:12px;
  border-radius: var(--radius);
  border:1px solid var(--line);
  background: rgba(17,24,43,.95);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
}

.nav.nav--open{
  display:grid;
  gap:6px;
}

.nav a{
  display:block;
  padding:12px 12px;
  border-radius: 14px;
  color:var(--muted);
  font-weight:800;
  font-size:.95rem;
}
.nav a:hover{
  color:var(--text);
  text-decoration:none;
  background: rgba(255,255,255,.04);
}

/* Hero */
.hero{ padding:42px 0 10px; }
.hero__grid{
  display:grid;
  grid-template-columns: 1fr;
  gap:22px;
}

.pill{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:8px 12px;
  border-radius:999px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.04);
  color: var(--muted);
  font-weight:800;
  letter-spacing:.2px;
}

h1{
  margin:14px 0 12px;
  font-size: clamp(2rem, 7vw, 3rem);
  line-height:1.05;
}

.lead{
  color: var(--muted);
  font-size: 1.03rem;
  line-height: 1.6;
  max-width: 62ch;
}

.ctaRow{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  margin:18px 0 12px;
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding:12px 16px;
  border-radius: 14px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.04);
  color: var(--text);
  font-weight:900;
  cursor:pointer;
  transition: transform .06s ease, background .2s ease, border-color .2s ease, opacity .2s ease;
  user-select:none;
}
.btn:hover{ transform: translateY(-1px); background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.18); text-decoration:none; }
.btn:active{ transform: translateY(0); }

.btn--primary{
  background: linear-gradient(135deg, rgba(124,92,255,.95), rgba(77,230,255,.55));
  border-color: rgba(255,255,255,.16);
  box-shadow: 0 16px 40px rgba(124,92,255,.22);
}
.btn--primary:hover{ background: linear-gradient(135deg, rgba(124,92,255,1), rgba(77,230,255,.65)); }

.btn--ghost{ background: rgba(255,255,255,.03); }

.heroNote{
  padding:12px 14px;
  border-radius: 14px;
  border:1px dashed rgba(255,255,255,.18);
  background: rgba(255,255,255,.03);
  color: var(--muted);
  margin: 12px 0 16px;
}

.cards{
  display:grid;
  grid-template-columns: 1fr;
  gap:12px;
  margin-top: 12px;
}

.card{
  background: linear-gradient(180deg, rgba(17,24,43,.92), rgba(14,19,34,.92));
  border:1px solid var(--line);
  border-radius: var(--radius);
  padding:14px;
  box-shadow: var(--shadow);
}
.card__label{ color:var(--muted); font-weight:800; font-size:.9rem; }
.card__value{ font-weight:950; font-size:1.2rem; margin-top:6px; }

.progress{
  margin-top:14px;
  padding:14px;
  border:1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,255,255,.03);
}
.progress__meta{
  display:flex;
  justify-content:space-between;
  gap:10px;
  flex-wrap:wrap;
  margin-bottom:10px;
  font-weight:800;
}
.progress__bar{
  width:100%;
  height:12px;
  border-radius:999px;
  border:1px solid var(--line);
  background: rgba(0,0,0,.25);
  overflow:hidden;
}
.progress__fill{
  height:100%;
  border-radius:999px;
  background: linear-gradient(90deg, rgba(124,92,255,1), rgba(77,230,255,1));
}

.panel{
  background: linear-gradient(180deg, rgba(17,24,43,.92), rgba(14,19,34,.92));
  border:1px solid var(--line);
  border-radius: var(--radius);
  padding:16px;
  box-shadow: var(--shadow);
}

.h3{ margin:0 0 8px; font-size:1.2rem; }
.h4{ margin:0 0 8px; font-size:1.05rem; color: var(--text); }

.steps{
  margin: 10px 0 0;
  padding-left: 18px;
  color: var(--muted);
  line-height:1.6;
}
.checks{
  list-style:none;
  margin:0;
  padding:0;
  display:grid;
  gap:8px;
  color: var(--muted);
}
.checks li::before{
  content:"✓";
  color: rgba(77,230,255,.9);
  margin-right:10px;
  font-weight:950;
}
.divider{
  height:1px;
  background: var(--line);
  margin:14px 0;
}

/* Sections */
.section{
  padding: var(--section) 0;
  content-visibility: auto;
  contain-intrinsic-size: 1px 900px;
}
.sectionHead{ margin-bottom: 18px; }
.sectionHead h2{ margin:0 0 6px; font-size: clamp(1.4rem, 4.5vw, 1.65rem); }
.sectionHead p{ margin:0; }

.section--spaced{ padding-top: calc(var(--section) + 26px); }
.sectionHead--wide{ margin-bottom: 0; }

.grid2{
  display:grid;
  grid-template-columns: 1fr;
  gap:14px;
}

.method{
  border:1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(17,24,43,.92), rgba(14,19,34,.92));
  box-shadow: var(--shadow);
  overflow:hidden;
}
.method__top{
  padding:14px 14px 10px;
  border-bottom: 1px solid var(--line);
}
.method__top h3{ margin:8px 0 6px; }
.method__body{ padding:14px; display:grid; gap:12px; }

.kv{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  justify-content:space-between;
  gap:10px;
  padding:10px;
  border-radius: 14px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.03);
}
.kv__k{ color: var(--muted); font-weight:900; min-width: 120px; }
.kv__v{
  width:100%;
  display:flex;
  gap:10px;
  align-items:center;
  justify-content:space-between;
}
.copy{
  border:1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.04);
  color: var(--text);
  font-weight:950;
  padding:8px 10px;
  border-radius: 12px;
  cursor:pointer;
}
.copy:hover{ background: rgba(255,255,255,.07); }

/* Share */
.shareBox{
  border:1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,255,255,.03);
  padding:14px;
}
.shareRow{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
}
.shareUrl{
  display:flex;
  gap:10px;
  align-items:center;
  flex-wrap:wrap;
  word-break: break-word;
}
.shareBtns{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top: 12px;
}

/* Timeline */
.timeline{ display:grid; gap:12px; }
.update{
  border:1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,255,255,.03);
  padding:14px;
}
.update__head{
  display:flex;
  justify-content:space-between;
  gap:10px;
  align-items:flex-start;
  flex-wrap:wrap;
}
.update h3{ margin:0; }
.tag{
  display:inline-flex;
  padding:6px 10px;
  border-radius: 999px;
  border:1px solid var(--line);
  color: var(--muted);
  font-weight:950;
  font-size:.82rem;
  background: rgba(255,255,255,.04);
}
.update ul{ margin:10px 0 0; color: var(--muted); line-height:1.6; }

/* FAQ */
.faq{ display:grid; gap:10px; }
details{
  border:1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,255,255,.03);
  padding:12px 14px;
}
summary{ cursor:pointer; font-weight:950; }
.faq__content{ color: var(--muted); margin-top:10px; }

/* Footer */
.footer{
  border-top:1px solid var(--line);
  padding:18px 0 26px;
  background: rgba(0,0,0,.10);
}
.footer__inner{
  display:flex;
  flex-direction:column;
  gap:10px;
}

/* Toast */
.toast{
  position: fixed;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(17,24,43,.95);
  border:1px solid rgba(255,255,255,.14);
  color: #fff;
  padding:10px 14px;
  border-radius: 999px;
  box-shadow: 0 18px 50px rgba(0,0,0,.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
}
.toast--show{
  opacity: 1;
  transform: translateX(-50%) translateY(-4px);
}

/* Noscript */
.noscript{
  margin-top: 16px;
  padding:12px 14px;
  border-radius: 14px;
  border:1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.03);
  color: var(--muted);
}

/* Breakpoints (mobile-first) */
@media (min-width: 640px){
  .cards{ grid-template-columns: repeat(3, 1fr); }
  .kv{ flex-direction:row; align-items:flex-start; }
  .kv__v{ justify-content:flex-end; text-align:right; }
  .footer__inner{ flex-direction:row; justify-content:space-between; align-items:center; }

  /* Desktop/tablet: MONO vuelve a tamaño normal */
  .mono{ font-size: 1rem; }
}

@media (min-width: 980px){
  .hero__grid{ grid-template-columns: 1.4fr .9fr; gap:26px; }
  .grid2{ grid-template-columns: repeat(2, 1fr); }

  /* Desktop: nav visible, hamburguesa oculta */
  .navToggle{ display:none; }
  .nav{
    display:flex !important;
    position: static;
    padding:0;
    border:0;
    background: transparent;
    box-shadow:none;
    backdrop-filter:none;
    gap:14px;
  }
  .nav a{
    display:inline-flex;
    padding:8px 10px;
    border-radius: 999px;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  *{ transition: none !important; animation: none !important; }
}