/* =========================================================
   NORDIA — estilos compartidos de las páginas nuevas
   (calculadora y demos). Mismos tokens que index.html.
   ========================================================= */
:root {
  --black: #0A0A0A;
  --titanium: #121212;
  --titanium-2: #161616;
  --white: #FFFFFF;
  --muted: #A1A1AA;
  --muted-2: #71717A;
  --border: #212121;
  --border-2: #2E2E2E;
  --blue: #0052FF;
  --blue-2: #0066FF;
  --blue-soft: rgba(0, 82, 255, .14);
  --green: #22C55E;
  --wa: #25D366;

  --font-display: 'Syne', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;

  --container: 1240px;
  --gutter: clamp(16px, 4vw, 48px);
  --radius: 10px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background-color: #07090E;
  background-image: linear-gradient(180deg, #0A0A0A 0%, #07090E 60%);
  background-attachment: fixed;
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
svg { display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
::selection { background: var(--blue); color: var(--white); }
:focus-visible { outline: 1px solid var(--blue-2); outline-offset: 4px; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.025em; line-height: 1.08; margin: 0; }
p { margin: 0; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--blue); color: var(--white); padding: 10px 16px; font-size: 14px; border-radius: 6px; }
.skip-link:focus { top: 16px; }

.aura { position: fixed; inset: 0; z-index: -2; pointer-events: none; overflow: hidden; }
.aura::before {
  content: ""; position: absolute; left: 50%; top: -420px;
  width: min(1400px, 140vw); height: 760px; transform: translateX(-50%); border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(0, 82, 255, .14), rgba(0, 82, 255, .04) 45%, transparent 70%);
  filter: blur(110px);
}

.eyebrow { display: inline-flex; align-items: center; gap: 12px; font-size: 12px; font-weight: 400; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.eyebrow::before { content: ""; width: 24px; height: 1px; background: var(--blue-2); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 15px 26px; border-radius: 6px; font-size: 14px; font-weight: 400; letter-spacing: .01em; white-space: nowrap; transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease); }
.btn svg { width: 14px; height: 14px; }
.btn-primary { background: var(--blue); color: var(--white); }
.btn-primary:hover { background: var(--blue-2); }
.btn-outline { border: 1px solid var(--border-2); color: var(--white); }
.btn-outline:hover { border-color: var(--muted-2); }
.btn-sm { padding: 9px 14px; font-size: 13px; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }

.card { background: var(--titanium); border: 1px solid var(--border); border-radius: var(--radius); }

/* ---------- NAV ---------- */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 50; background: rgba(10, 10, 10, .85); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--border); }
.nav-inner { height: 80px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.logo { font-family: var(--font-display); font-weight: 700; font-size: 20px; letter-spacing: .14em; }
.nav-links { display: flex; gap: 32px; list-style: none; margin: 0; padding: 0; }
.nav-links a { font-size: 14px; font-weight: 400; color: var(--muted); transition: color .25s; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--white); }
.nav-actions { display: flex; align-items: center; gap: 16px; }
.nav-actions .btn { padding: 11px 20px; font-size: 13px; }
.lang { display: inline-flex; align-items: center; font-size: 12px; letter-spacing: .1em; }
.lang button { padding: 6px 8px; font-weight: 400; color: var(--muted-2); transition: color .25s; position: relative; }
.lang button + button::before { content: ""; position: absolute; left: 0; top: 50%; width: 1px; height: 10px; background: var(--border-2); transform: translateY(-50%); }
.lang button:hover { color: var(--white); }
.lang button[aria-pressed="true"] { color: var(--white); font-weight: 500; }
.lang button[aria-pressed="true"]::after { content: ""; position: absolute; left: 8px; right: 8px; bottom: 0; height: 1px; background: var(--blue-2); }
.menu-btn { display: none; width: 40px; height: 40px; border: 1px solid var(--border-2); border-radius: 6px; align-items: center; justify-content: center; }
.menu-btn span, .menu-btn span::before { display: block; width: 16px; height: 1px; background: var(--white); position: relative; transition: transform .3s var(--ease); }
.menu-btn span { transform: translateY(-2.5px); }
.menu-btn span::before { content: ""; position: absolute; top: 5px; }
.menu-btn[aria-expanded="true"] span { transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] span::before { transform: translateY(-5px) rotate(-90deg); }
.mobile-menu { display: none; border-top: 1px solid var(--border); background: rgba(10, 10, 10, .97); }
.mobile-menu.is-open { display: block; }
.mobile-menu ul { list-style: none; margin: 0; padding: 8px var(--gutter) 28px; }
.mobile-menu a:not(.btn) { display: block; padding: 16px 0; border-bottom: 1px solid var(--border); font-size: 17px; color: var(--muted); }
.mobile-menu .btn { margin-top: 24px; width: 100%; }

/* ---------- PAGE HEAD ---------- */
.page-head { padding: 150px 0 48px; }
.page-head h1 { margin-top: 24px; font-size: clamp(36px, 5.4vw, 68px); max-width: 900px; letter-spacing: -0.03em; }
.page-head p { margin-top: 22px; max-width: 640px; font-size: clamp(16px, 1.3vw, 18px); color: var(--muted); }
.page-body { padding-bottom: clamp(80px, 10vw, 130px); }

/* ---------- FORM CONTROLS ---------- */
.input, .select {
  width: 100%; background: var(--black); border: 1px solid var(--border-2); border-radius: 6px;
  padding: 10px 12px; font-size: 15px; font-weight: 300; transition: border-color .25s;
}
.input:focus, .select:focus { outline: none; border-color: var(--blue-2); }
.input[type="number"] { font-variant-numeric: tabular-nums; }
.label { font-size: 12px; color: var(--muted-2); letter-spacing: .04em; }
.check { width: 18px; height: 18px; accent-color: var(--blue-2); }

/* ---------- FOOTER ---------- */
.footer { border-top: 1px solid var(--border); padding: 56px 0 36px; }
.footer-top { padding-bottom: 32px; border-bottom: 1px solid var(--border); }
.footer-social { display: flex; gap: 10px; margin-top: 22px; }
.footer-social a { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border: 1px solid var(--border-2); border-radius: 50%; color: var(--muted); transition: color .25s var(--ease), border-color .25s var(--ease), background-color .25s var(--ease), transform .25s var(--ease); }
.footer-social a:hover { color: var(--white); border-color: var(--blue-2); background-color: var(--blue-soft); transform: translateY(-2px); }
.footer-social a:focus-visible { outline: 2px solid var(--blue-2); outline-offset: 3px; }
.footer-social svg { width: 17px; height: 17px; fill: currentColor; }
.footer-bottom { padding-top: 24px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--muted-2); }
.footer-bottom a { color: var(--muted); }
.footer-bottom a:hover { color: var(--white); }

/* ---------- WHATSAPP (botón verde) ---------- */
.btn-wa { background: var(--wa); color: #06210F; font-weight: 500; }
.btn-wa:hover { background: #2EE372; }
.btn-wa svg { width: 18px; height: 18px; fill: currentColor; }

@media (max-width: 1080px) {
  .nav-links { display: none; }
  .menu-btn { display: inline-flex; }
  .nav-actions > .btn { display: none; }
}
@media (max-width: 760px) {
  .nav-inner { height: 68px; gap: 12px; }
  .logo { font-size: 18px; }
  .page-head { padding-top: 120px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
