/* AxVolt · sitio público. Vidrio líquido sobre un fondo de luces en movimiento. */
:root {
  --bg: #050b14;
  --ink: #f4f7fb;
  --muted: #a3b1c6;
  --accent: #12b76a;
  --accent-2: #2dd4bf;
  --accent-3: #38bdf8;
  --glass: rgba(255, 255, 255, 0.07);
  --glass-strong: rgba(255, 255, 255, 0.11);
  --glass-line: rgba(255, 255, 255, 0.16);
  --glass-shine: rgba(255, 255, 255, 0.35);
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  --radius: 26px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.6 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  overflow-x: hidden;
}
a { color: #6ee7b7; }

/* ── Fondo: luces de colores que flotan detrás del vidrio ─────────────────── */
.aurora { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.aurora span {
  position: absolute;
  width: 55vmax;
  height: 55vmax;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.55;
  animation: drift 22s ease-in-out infinite alternate;
}
.aurora span:nth-child(1) { background: radial-gradient(circle, #12b76a 0%, transparent 65%); top: -20vmax; left: -15vmax; }
.aurora span:nth-child(2) { background: radial-gradient(circle, #0ea5e9 0%, transparent 65%); top: 10vmax; right: -25vmax; animation-duration: 26s; animation-delay: -6s; }
.aurora span:nth-child(3) { background: radial-gradient(circle, #14b8a6 0%, transparent 65%); bottom: -30vmax; left: 20vmax; animation-duration: 30s; animation-delay: -12s; }
.aurora::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse at 50% 30%, #000 30%, transparent 75%);
}
@keyframes drift {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(6vmax, 4vmax) scale(1.08); }
  100% { transform: translate(-4vmax, 8vmax) scale(0.95); }
}

/* ── Vidrio líquido ───────────────────────────────────────────────────────── */
.glass {
  position: relative;
  background: linear-gradient(145deg, var(--glass-strong), var(--glass));
  border: 1px solid var(--glass-line);
  border-radius: var(--radius);
  backdrop-filter: blur(22px) saturate(170%);
  -webkit-backdrop-filter: blur(22px) saturate(170%);
  box-shadow: var(--shadow), inset 0 1px 0 var(--glass-shine);
}
/* Brillo del borde que sigue al puntero (lo mueve el script) */
.glass::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: radial-gradient(300px circle at var(--mx, 50%) var(--my, 0%), rgba(255, 255, 255, 0.55), transparent 60%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0.7;
}

.wrap { max-width: 1100px; margin: 0 auto; padding: 0 16px; }

/* ── Barra superior flotante ─────────────────────────────────────────────── */
header.top { position: sticky; top: 12px; z-index: 10; padding: 0 16px; }
header.top .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  max-width: 1100px;
  padding: 10px 14px 10px 18px;
  border-radius: 999px;
  background: rgba(10, 18, 32, 0.55);
  border: 1px solid var(--glass-line);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35), inset 0 1px 0 var(--glass-shine);
  animation: drop 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
@keyframes drop { from { opacity: 0; transform: translateY(-24px) scale(0.98); } to { opacity: 1; transform: none; } }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; text-decoration: none; color: var(--ink); letter-spacing: -0.02em; }
.brand img { width: 30px; height: 30px; filter: drop-shadow(0 0 12px rgba(18, 183, 106, 0.7)); }
nav.links { display: flex; gap: 4px; flex-wrap: wrap; font-size: 14px; }
nav.links a { color: var(--muted); text-decoration: none; padding: 7px 12px; border-radius: 999px; transition: background 0.25s, color 0.25s; }
nav.links a:hover { color: var(--ink); background: rgba(255, 255, 255, 0.08); }

main { padding: 56px 0 72px; }

/* ── Portada ─────────────────────────────────────────────────────────────── */
.hero { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; min-height: 72vh; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px 6px 8px; border-radius: 999px; font-size: 13px; font-weight: 600; color: #bbf7d0;
  background: rgba(18, 183, 106, 0.12); border: 1px solid rgba(18, 183, 106, 0.35);
}
.eyebrow .pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 rgba(18, 183, 106, 0.7); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(18, 183, 106, 0); } 100% { box-shadow: 0 0 0 0 rgba(18, 183, 106, 0); } }
.hero h1 { font-size: clamp(38px, 6.4vw, 72px); line-height: 1.02; letter-spacing: -0.045em; margin: 20px 0 18px; font-weight: 800; }
.grad {
  background: linear-gradient(100deg, #34d399, #2dd4bf 35%, #38bdf8 70%, #34d399);
  background-size: 250% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: sheen 6s linear infinite;
}
@keyframes sheen { to { background-position: -250% 0; } }
.hero p.lead { font-size: clamp(17px, 2vw, 20px); color: var(--muted); margin: 0 0 30px; max-width: 560px; }
.row { display: flex; gap: 12px; flex-wrap: wrap; }
.btn {
  position: relative; display: inline-flex; align-items: center; gap: 8px; overflow: hidden;
  background: linear-gradient(135deg, #16c97a, #0ea371); color: #04140c; text-decoration: none; font-weight: 800;
  padding: 14px 24px; border-radius: 999px; box-shadow: 0 10px 30px rgba(18, 183, 106, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.45);
  transition: transform 0.25s, box-shadow 0.25s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 16px 40px rgba(18, 183, 106, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.45); }
.btn::after { content: ''; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.5) 50%, transparent 70%); transform: translateX(-120%); transition: transform 0.7s; }
.btn:hover::after { transform: translateX(120%); }
.btn.ghost { background: rgba(255, 255, 255, 0.08); color: var(--ink); border: 1px solid var(--glass-line); box-shadow: inset 0 1px 0 var(--glass-shine); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.stats { display: flex; gap: 28px; margin-top: 36px; flex-wrap: wrap; }
.stats strong { display: block; font-size: 26px; letter-spacing: -0.03em; }
.stats span { color: var(--muted); font-size: 14px; }

/* Maqueta del celular con la app */
.phone {
  justify-self: center; width: min(330px, 86vw); aspect-ratio: 9 / 19; border-radius: 48px; padding: 12px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.04));
  border: 1px solid var(--glass-line); box-shadow: 0 40px 100px rgba(0, 0, 0, 0.6), inset 0 1px 0 var(--glass-shine);
  animation: float 7s ease-in-out infinite;
}
@keyframes float { 50% { transform: translateY(-14px) rotate(-1deg); } }
.screen { position: relative; height: 100%; border-radius: 38px; overflow: hidden; background: #0d1a14; }
.map {
  position: absolute; inset: 0;
  background:
    linear-gradient(115deg, transparent 47%, rgba(255, 255, 255, 0.08) 47.5%, rgba(255, 255, 255, 0.08) 49%, transparent 49.5%),
    linear-gradient(20deg, transparent 60%, rgba(255, 255, 255, 0.07) 60.5%, rgba(255, 255, 255, 0.07) 62%, transparent 62.5%),
    linear-gradient(160deg, transparent 30%, rgba(255, 255, 255, 0.06) 30.5%, rgba(255, 255, 255, 0.06) 31.5%, transparent 32%),
    radial-gradient(circle at 70% 25%, rgba(56, 189, 248, 0.25), transparent 35%),
    radial-gradient(circle at 25% 60%, rgba(18, 183, 106, 0.22), transparent 40%),
    #0b1712;
}
.island { position: absolute; top: 10px; left: 50%; width: 96px; height: 28px; transform: translateX(-50%); background: #000; border-radius: 999px; z-index: 3; }
.chipbar { position: absolute; top: 52px; left: 12px; right: 12px; display: flex; gap: 6px; z-index: 2; }
.chip { font-size: 11px; font-weight: 700; padding: 7px 10px; border-radius: 999px; background: rgba(255, 255, 255, 0.14); border: 1px solid var(--glass-line); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.chip.on { background: rgba(18, 183, 106, 0.3); border-color: rgba(18, 183, 106, 0.6); }
.pin { position: absolute; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--accent); color: #04140c; font-weight: 900; font-size: 15px; box-shadow: 0 0 0 6px rgba(18, 183, 106, 0.25), 0 8px 18px rgba(0, 0, 0, 0.4); animation: bob 3s ease-in-out infinite; }
.pin.b { background: #38bdf8; box-shadow: 0 0 0 6px rgba(56, 189, 248, 0.25), 0 8px 18px rgba(0, 0, 0, 0.4); animation-delay: -1s; }
.pin.c { animation-delay: -2s; }
@keyframes bob { 50% { transform: translateY(-6px); } }
.sheet { position: absolute; left: 10px; right: 10px; bottom: 10px; padding: 14px; border-radius: 26px; z-index: 2; }
.sheet h4 { margin: 0; font-size: 15px; }
.sheet small { color: var(--muted); font-size: 11px; }
.meter { height: 8px; border-radius: 999px; background: rgba(255, 255, 255, 0.12); margin: 12px 0 8px; overflow: hidden; }
.meter i { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, #12b76a, #2dd4bf, #38bdf8); animation: fill 4.5s cubic-bezier(0.4, 0, 0.2, 1) 0.8s infinite; }
@keyframes fill { 0% { width: 8%; } 80%, 100% { width: 86%; } }
.kpis { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); }
.kpis b { color: var(--ink); font-size: 14px; }
.cta-mini { margin-top: 10px; text-align: center; font-weight: 800; font-size: 13px; padding: 10px; border-radius: 999px; background: linear-gradient(135deg, #16c97a, #0ea371); color: #04140c; }

/* ── Secciones ───────────────────────────────────────────────────────────── */
.section-title { font-size: clamp(28px, 4vw, 42px); letter-spacing: -0.035em; margin: 96px 0 10px; line-height: 1.1; }
.section-lead { color: var(--muted); margin: 0 0 28px; max-width: 620px; font-size: 18px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.card { padding: 24px; transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), background 0.35s; }
.card:hover { transform: translateY(-6px); background: linear-gradient(145deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.06)); }
.card h3 { margin: 0 0 8px; font-size: 18px; letter-spacing: -0.01em; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }
.icon {
  display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: 16px; border-radius: 14px; font-size: 22px;
  background: linear-gradient(145deg, rgba(18, 183, 106, 0.35), rgba(45, 212, 191, 0.12)); border: 1px solid rgba(110, 231, 183, 0.35);
}
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: stretch; }
.big { padding: clamp(24px, 4vw, 40px); }
.big h3 { font-size: clamp(22px, 3vw, 30px); margin: 0 0 12px; letter-spacing: -0.03em; }
.big p { color: var(--muted); margin: 0 0 18px; }
.ticks { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 10px; }
.ticks li { padding-left: 30px; position: relative; }
.ticks li::before { content: '✓'; position: absolute; left: 0; top: 0; width: 20px; height: 20px; display: grid; place-items: center; border-radius: 50%; font-size: 12px; font-weight: 900; color: #04140c; background: var(--accent); }

/* ── Páginas de texto (privacidad, términos…) ────────────────────────────── */
article { padding: clamp(22px, 5vw, 48px); max-width: 860px; margin: 0 auto; }
article h1 { font-size: clamp(28px, 5vw, 40px); line-height: 1.12; margin: 0 0 8px; letter-spacing: -0.03em; }
article h2 { font-size: 21px; margin: 34px 0 8px; letter-spacing: -0.01em; }
article h3 { font-size: 17px; margin: 22px 0 6px; }
article p, article li { color: #dbe4f0; }
.meta { color: var(--muted); font-size: 14px; margin: 0 0 26px; }
.notice { background: rgba(18, 183, 106, 0.14); color: #bbf7d0; border: 1px solid rgba(18, 183, 106, 0.35); border-radius: 16px; padding: 14px 16px; }
table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 8px 0; }
th, td { text-align: left; vertical-align: top; padding: 11px 8px; border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
th { color: var(--muted); font-weight: 600; }
.table-wrap { overflow-x: auto; }

footer { color: var(--muted); font-size: 14px; padding: 28px 0 44px; }
footer .wrap { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; border-top: 1px solid rgba(255, 255, 255, 0.1); padding-top: 24px; }
footer a { color: var(--muted); }
footer a:hover { color: var(--ink); }

/* ── Transiciones de carga ───────────────────────────────────────────────── */
.loader {
  position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; background: var(--bg);
  transition: opacity 0.6s ease, visibility 0.6s;
}
.loader img { width: 64px; height: 64px; filter: drop-shadow(0 0 24px rgba(18, 183, 106, 0.9)); animation: charge 1.1s ease-in-out infinite; }
@keyframes charge { 50% { transform: scale(1.12); filter: drop-shadow(0 0 40px rgba(45, 212, 191, 1)); } }
body.ready .loader { opacity: 0; visibility: hidden; }
/* Lo que entra al cargar: aparece desde abajo, uno tras otro */
.rise { opacity: 0; transform: translateY(26px); filter: blur(6px); transition: opacity 0.9s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.9s cubic-bezier(0.2, 0.8, 0.2, 1), filter 0.9s; transition-delay: calc(var(--d, 0) * 110ms); }
body.ready .rise.in { opacity: 1; transform: none; filter: none; }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; min-height: auto; gap: 40px; text-align: left; }
  .split { grid-template-columns: 1fr; }
  header.top .wrap { border-radius: 24px; }
  .section-title { margin-top: 72px; }
}
@media (max-width: 560px) {
  header.top .wrap { flex-wrap: nowrap; border-radius: 999px; }
  nav.links a:not(:last-child) { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .rise { opacity: 1; transform: none; filter: none; }
}
