/* ============================================================
   NAWI · Súper Landing — experiencia interactiva (nawi.gold)
   Hero vivo + scrollytelling + ecosistema con modales.
   ============================================================ */
body { display: block; overflow-x: hidden; }
html { scroll-behavior: smooth; }
.wrap { max-width: 1100px; margin: 0 auto; padding: 0 24px; }

/* NAV */
.topbar { position: fixed; top: 0; left: 0; right: 0; z-index: 100; display: flex; align-items: center; justify-content: space-between; padding: 18px 32px; background: rgba(8, 12, 10, 0.86); backdrop-filter: blur(20px); border-bottom: 1px solid rgba(36, 48, 40, 0.5); transition: padding .2s; }
.topbar.shrink { padding: 12px 32px; }
.brand { display: flex; align-items: center; gap: 11px; cursor: pointer; }
.logo-mark { width: 36px; height: 36px; }
.brand-name { font-family: var(--font-display); font-weight: 500; font-size: 22px; letter-spacing: 1px; }
.brand-name b { color: var(--gold); font-weight: 400; margin: 0 .1em; }
.topbar-right { display: flex; align-items: center; gap: 12px; }
.topbar-menu { display: flex; align-items: center; flex: 1; justify-content: space-between; margin-left: 40px; gap: 24px; }
.topnav { display: flex; gap: 26px; }
.topnav a { color: var(--muted); font-size: 14px; font-weight: 500; text-decoration: none; transition: color .15s; }
.topnav a:hover { color: var(--gold); }
.nav-toggle { display: none; align-items: center; gap: 7px; background: transparent; border: 1px solid var(--line); color: var(--cream); border-radius: 8px; height: 40px; padding: 0 13px; cursor: pointer; line-height: 1; }
.nav-toggle-ico { font-size: 18px; line-height: 1; }
.nav-toggle-txt { font-size: 14px; font-weight: 600; letter-spacing: .01em; }
@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  /* En móvil TODO el menú (enlaces + idioma + botones) se despliega bajo la barra. */
  .topbar-menu { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; margin: 0; background: rgba(8,12,10,0.98); backdrop-filter: blur(20px); border-bottom: 1px solid var(--line); padding: 6px 0; }
  .topbar-menu.open { display: flex; }
  .topnav { flex-direction: column; gap: 0; }
  .topnav a { padding: 15px 24px; font-size: 16px; color: var(--cream); border-bottom: 1px solid rgba(255,255,255,.05); }
  .topbar-right { flex-direction: column; align-items: stretch; gap: 10px; padding: 14px 24px; }
  .topbar-right .lang-select { width: 100%; }
  .topbar-right .btn { width: 100%; text-align: center; }
}
.lang-select { background: var(--panel-3); color: var(--cream); border: 1px solid var(--line); border-radius: var(--r-pill); padding: 8px 12px; font-size: 13px; font-family: var(--font-ui); }
.btn { border: none; border-radius: var(--r-btn); padding: 13px 22px; font-size: 14px; font-weight: 600; display: inline-flex; align-items: center; gap: 8px; cursor: pointer; transition: transform .1s, filter .15s, border-color .2s; text-decoration: none; }
.btn:active { transform: scale(.98); }
.btn-gold { background: linear-gradient(160deg, var(--gold-hi), var(--gold)); color: #1A1000; }
.btn-gold:hover { filter: brightness(1.08); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--cream); border: 1px solid var(--line); }
.btn-ghost:hover { border-color: var(--gold); }
.btn-sm { padding: 8px 14px; font-size: 13px; }
.btn-em { background: transparent; color: var(--em); border: 1px solid var(--em); }

/* HERO */
.hero { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding: 120px 24px 80px; position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; top: 18%; left: 50%; transform: translateX(-50%); width: 820px; height: 520px; max-width: 100vw; background: radial-gradient(ellipse, var(--gold-glow) 0%, transparent 70%); pointer-events: none; }
.hero::after { content: ""; position: absolute; bottom: 8%; right: 6%; width: 380px; height: 380px; background: radial-gradient(circle, var(--em-glow), transparent 70%); pointer-events: none; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 8px 18px; border: 1px solid var(--gold); border-radius: var(--r-pill); margin-bottom: 30px; font-size: 14px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--gold); background: rgba(201,164,92,.10); position: relative; z-index: 1; }
.dot-live { width: 6px; height: 6px; border-radius: 50%; background: var(--em); box-shadow: 0 0 8px var(--em); animation: pdot 2s ease-in-out infinite; }
@keyframes pdot { 0%, 100% { box-shadow: 0 0 8px var(--em); } 50% { box-shadow: 0 0 18px var(--em), 0 0 34px var(--em); } }
.hero h1 { font-family: var(--font-display); font-size: clamp(46px, 8vw, 92px); font-weight: 700; line-height: .95; letter-spacing: -2px; color: var(--gold-hi); text-shadow: 0 4px 60px var(--gold-glow-strong); margin-bottom: 8px; position: relative; z-index: 1; }
.hero h1 em { font-style: italic; font-weight: 300; color: var(--cream); }
.hero-sub { font-family: var(--font-display); font-size: clamp(17px, 3vw, 25px); font-weight: 300; color: var(--muted); margin-bottom: 44px; position: relative; z-index: 1; line-height: 1.4; }
.hero-live { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; margin-bottom: 44px; max-width: 560px; width: 100%; position: relative; z-index: 1; }
.hero-cell { background: var(--panel-2); padding: 22px 26px; text-align: start; }
.lp-spark { display: block; width: 100%; height: 26px; margin-top: 10px; overflow: visible; }
/* Tutorial · celular con capturas reales + pasos navegables */
.tuto-grid { display: grid; grid-template-columns: 300px 1fr; gap: 48px; align-items: center; margin-top: 40px; }
.tuto-phone { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.tp-frame { width: 268px; border-radius: 38px; border: 9px solid #14140f; background: #000; box-shadow: 0 34px 90px rgba(0,0,0,.55); padding: 8px; overflow: hidden; }
.tp-shot { display: block; width: 100%; height: auto; border-radius: 28px; aspect-ratio: 739 / 1600; object-fit: cover; object-position: top center; transition: opacity .28s ease; background: #080C0A; }
.tp-shot.swapping { opacity: 0; }
.tp-cap { min-height: 20px; font-size: 13px; font-weight: 600; color: var(--gold); text-align: center; letter-spacing: .2px; }
.tuto-steps { display: flex; flex-direction: column; gap: 12px; }
.tuto-step { display: flex; gap: 16px; align-items: flex-start; width: 100%; text-align: left; background: transparent; border: 1px solid transparent; border-radius: 16px; padding: 12px 14px; cursor: pointer; transition: background .2s ease, border-color .2s ease, transform .1s ease; color: inherit; font: inherit; }
.tuto-step:hover { background: rgba(255,255,255,.02); border-color: var(--line); }
.tuto-step.is-active { background: rgba(201,150,58,.06); border-color: rgba(201,150,58,.32); }
.tuto-step:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.ts-n { flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--line); color: var(--muted); font-weight: 700; display: flex; align-items: center; justify-content: center; transition: background .2s ease, color .2s ease; }
.tuto-step.is-active .ts-n { background: var(--gold); color: #1a1204; }
.tuto-step h3 { font-size: 16px; margin-bottom: 3px; color: var(--cream); }
.tuto-step p { color: var(--muted); font-size: 13.5px; line-height: 1.55; }
/* Recorrido en video */
.tuto-video { margin-top: 56px; }
.tv-head { text-align: center; margin-bottom: 20px; }
.tv-h { font-size: 22px; color: var(--cream); }
.tv-frame { position: relative; max-width: 760px; margin: 0 auto; border-radius: 20px; overflow: hidden; border: 1px solid var(--line); background: #080C0A; box-shadow: 0 24px 70px rgba(0,0,0,.45); }
.tv-el { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; background: #000; }
.tv-soon { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; text-align: center; padding: 24px; font-size: 14px; font-weight: 600; color: var(--muted); background: rgba(8,12,10,.72); backdrop-filter: blur(2px); pointer-events: none; }
.tv-note { text-align: center; color: var(--muted); font-size: 14px; margin-top: 14px; }
@media (max-width: 760px) { .tuto-grid { grid-template-columns: 1fr; gap: 28px; justify-items: center; } .tuto-steps { width: 100%; } }
.hero-cell .lbl { font-size: 10px; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; display: flex; align-items: center; gap: 6px; }
.hero-cell .lbl::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--em); box-shadow: 0 0 6px var(--em); }
.hero-cell .val { font-family: var(--font-mono); font-size: 24px; font-weight: 500; color: var(--gold-hi); }
.hero-cell .chg { font-family: var(--font-mono); font-size: 12px; color: var(--em); margin-top: 4px; }
.meter { height: 4px; background: var(--panel-3); border-radius: var(--r-pill); margin-top: 12px; overflow: hidden; }
.meter-fill { height: 100%; width: 0; background: linear-gradient(90deg, var(--em-deep), var(--em)); box-shadow: 0 0 8px var(--em-glow); transition: width 1.6s cubic-bezier(.16, 1, .3, 1); }
.hero-note { font-size: 11px; color: var(--muted); margin-top: 8px; line-height: 1.4; }
.hero-note b { color: var(--cream); }
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; position: relative; z-index: 1; }

/* SECCIONES */
.section { padding: 90px 0; }
.eyebrow-s { font-size: 11px; letter-spacing: 2.5px; text-transform: uppercase; color: var(--em); margin-bottom: 14px; }
.h2 { font-family: var(--font-display); font-size: clamp(30px, 5vw, 52px); font-weight: 500; line-height: 1.1; color: var(--cream); margin-bottom: 18px; }
.h2 .gold { color: var(--gold-hi); }
.lead { font-size: 17px; color: var(--muted); line-height: 1.7; max-width: 620px; }

.divider { width: 100%; height: 1px; background: linear-gradient(90deg, transparent, var(--line), transparent); }

/* STATS */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; }
.stat { background: var(--panel); padding: 34px 26px; }
.stat .n { font-family: var(--font-display); font-size: 44px; font-weight: 700; color: var(--gold-hi); line-height: 1; margin-bottom: 8px; }
.stat .n.em { color: var(--em); }
.stat .l { font-size: 13px; color: var(--muted); line-height: 1.4; }

/* HOW */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(255px, 1fr)); gap: 16px; margin-top: 50px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 20px; padding: 30px; transition: border-color .2s, transform .2s; }
.card:hover { border-color: var(--gold); transform: translateY(-3px); }
.card .num { font-family: var(--font-mono); font-size: 12px; color: var(--em); letter-spacing: 2px; margin-bottom: 14px; }
.card h3 { font-family: var(--font-display); font-size: 21px; font-weight: 500; color: var(--cream); margin-bottom: 10px; }
.card p { font-size: 14px; color: var(--muted); line-height: 1.6; }

/* ECOSISTEMA (interactivo) */
.eco-bg { background: var(--panel); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 90px 0; }
.eco-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; margin-top: 50px; }
.eco-card { background: var(--panel-2); border: 1px solid var(--line); border-radius: 20px; padding: 28px; position: relative; overflow: hidden; cursor: pointer; transition: border-color .2s, transform .2s; }
.eco-card:hover { border-color: var(--em); transform: translateY(-4px); }
.eco-card::before { content: ""; position: absolute; top: -40px; inset-inline-end: -40px; width: 120px; height: 120px; background: radial-gradient(circle, var(--em-glow), transparent 70%); pointer-events: none; }
.eco-card .icon { font-size: 34px; margin-bottom: 16px; display: block; }
.eco-card .tag { display: inline-block; padding: 3px 10px; border-radius: var(--r-pill); font-size: 10px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; background: var(--em-deep); color: var(--em); margin-bottom: 12px; }
.eco-card.gold .tag { background: #2A2010; color: var(--gold-hi); }
.eco-card h3 { font-family: var(--font-display); font-size: 19px; font-weight: 500; color: var(--cream); margin-bottom: 8px; }
.eco-card p { font-size: 13px; color: var(--muted); line-height: 1.6; margin-bottom: 12px; }
.eco-more { font-size: 12px; color: var(--em); font-weight: 600; }
.eco-card.gold .eco-more { color: var(--gold-hi); }

/* MODAL ecosistema */
.modal-ov { position: fixed; inset: 0; z-index: 300; background: rgba(5, 8, 7, 0.8); backdrop-filter: blur(6px); display: none; align-items: center; justify-content: center; padding: 24px; }
.modal-ov.show { display: flex; animation: fade .25s ease; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.modal { background: linear-gradient(155deg, var(--panel-2), var(--panel)); border: 1px solid var(--line); border-radius: 24px; max-width: 520px; width: 100%; max-height: 86vh; overflow-y: auto; padding: 32px; position: relative; animation: rise .3s cubic-bezier(.16, 1, .3, 1); }
@keyframes rise { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.modal .x { position: absolute; top: 18px; inset-inline-end: 18px; background: var(--panel-3); border: 1px solid var(--line); color: var(--muted); width: 32px; height: 32px; border-radius: 50%; cursor: pointer; font-size: 15px; }
.modal .m-icon { font-size: 44px; margin-bottom: 12px; }
.modal .m-tag { display: inline-block; padding: 4px 12px; border-radius: var(--r-pill); font-size: 11px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; background: var(--em-deep); color: var(--em); margin-bottom: 14px; }
.modal h3 { font-family: var(--font-display); font-size: 26px; font-weight: 500; color: var(--gold-hi); margin-bottom: 14px; line-height: 1.15; }
.modal .m-body { font-size: 15px; color: var(--cream); line-height: 1.7; white-space: pre-line; }

/* MINAS */
.mines { display: grid; grid-template-columns: repeat(auto-fit, minmax(275px, 1fr)); gap: 16px; margin-top: 50px; }
.mine { background: var(--panel); border: 1px solid var(--line); border-radius: 20px; padding: 26px; transition: border-color .2s; }
.mine:hover { border-color: var(--em); }
.mine .badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: var(--r-pill); font-size: 10px; font-weight: 600; background: var(--em-deep); color: var(--em); margin-bottom: 14px; }
.mine .name { font-family: var(--font-display); font-size: 19px; font-weight: 500; margin-bottom: 4px; }
.mine .region { font-size: 13px; color: var(--muted); margin-bottom: 18px; }
.mine .st { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
.mine .st > div { background: var(--panel-2); border-radius: 10px; padding: 9px; }
.mine .st .l { font-size: 10px; color: var(--muted); margin-bottom: 3px; }
.mine .st .v { font-family: var(--font-mono); font-size: 13px; color: var(--cream); font-weight: 500; }

/* TRUST */
.trust { display: grid; grid-template-columns: repeat(auto-fit, minmax(275px, 1fr)); gap: 12px; margin-top: 50px; }
.trust-item { display: flex; align-items: flex-start; gap: 14px; padding: 20px; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; }
.trust-item .ti { width: 36px; height: 36px; border-radius: 10px; background: var(--em-deep); display: flex; align-items: center; justify-content: center; font-size: 16px; flex: none; }
.trust-item .tt { font-size: 14px; font-weight: 600; color: var(--cream); margin-bottom: 4px; }
.trust-item .tb { font-size: 12px; color: var(--muted); line-height: 1.5; }

/* CTA */
.cta { padding: 110px 24px; text-align: center; position: relative; overflow: hidden; }
.cta::before { content: ""; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 700px; height: 400px; max-width: 100vw; background: radial-gradient(ellipse, var(--gold-glow), transparent 70%); pointer-events: none; }
.cta-inner { position: relative; z-index: 1; max-width: 600px; margin: 0 auto; }
.cta h2 { font-family: var(--font-display); font-size: clamp(34px, 6vw, 60px); font-weight: 700; line-height: 1.1; color: var(--gold-hi); margin-bottom: 16px; letter-spacing: -1px; }
.cta p { font-size: 17px; color: var(--muted); line-height: 1.6; margin-bottom: 36px; }
.cta-note { margin-top: 22px; font-size: 12px; color: var(--muted-2); line-height: 1.6; }

/* FOOTER */
.footer { padding: 44px 24px; border-top: 1px solid var(--line); text-align: center; }
.footer .fbrand { font-family: var(--font-display); font-size: 18px; font-weight: 500; letter-spacing: 1px; margin-bottom: 12px; }
.footer .fbrand b { color: var(--gold); font-weight: 400; margin: 0 .1em; }
.footer .flegal { font-size: 11px; color: var(--muted-2); line-height: 1.6; max-width: 520px; margin: 0 auto; }

/* REVEAL al hacer scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s cubic-bezier(.16, 1, .3, 1); }
.reveal.in { opacity: 1; transform: none; }

@media (max-width: 768px) {
  .topbar { padding: 14px 18px; }
  /* El selector de idioma vive dentro del menú hamburguesa (se muestra al abrirlo). */
  .hero-live { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .dot-live { animation: none; }
}
