/* ============================================================
   AZONLINE · Landing demo — estilos
   Paleta cívica: azul institucional profundo + cyan/turquesa de acento
   Responsive 320px → TV 100" vía root-font-scaling
   ============================================================ */

:root {
  --ink: #060d1a;
  --ink-soft: #0b1f3a;
  --surface: #0e2748;
  --surface-2: #103056;
  --primary: #2e8fff;
  --primary-bright: #5fb0ff;
  --accent: #2ee6c5;
  --text: #eaf1fb;
  --text-dim: #a9bdd6;
  --text-faint: #6f87a6;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.16);

  --font: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --container: 72rem;
  --radius: 1rem;
  --radius-lg: 1.5rem;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);

  /* Escala fluida */
  --step-0: clamp(1rem, 0.95rem + 0.25vw, 1.15rem);
  --step-1: clamp(1.2rem, 1.05rem + 0.6vw, 1.5rem);
  --step-2: clamp(1.6rem, 1.3rem + 1.2vw, 2.4rem);
  --step-3: clamp(2.2rem, 1.6rem + 2.6vw, 3.6rem);
  --step-hero: clamp(2.8rem, 1.9rem + 4.4vw, 5.8rem);
}

/* ── Root font scaling: de móvil a TV ── */
html {
  font-size: 100%;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
@media (min-width: 100rem) { html { font-size: 112.5%; } }
@media (min-width: 120rem) { html { font-size: 125%; } }
@media (min-width: 160rem) { html { font-size: 150%; } }
@media (min-width: 240rem) { html { font-size: 175%; } }
@media (min-width: 320rem) { html { font-size: 200%; } }

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

body {
  min-height: 100dvh;
  background: var(--ink);
  color: var(--text);
  font-family: var(--font);
  font-size: var(--step-0);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3 { line-height: 1.1; letter-spacing: -0.02em; overflow-wrap: break-word; text-wrap: balance; }
p { text-wrap: pretty; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
ul { list-style: none; }
::selection { background: var(--primary); color: #fff; }

/* ── Fondos decorativos ── */
.bg-grid {
  position: fixed; inset: 0; z-index: -2;
  background:
    linear-gradient(var(--ink), var(--ink-soft) 60%, var(--ink)),
    repeating-linear-gradient(90deg, transparent, transparent 4rem, rgba(46,143,255,0.04) 4rem, rgba(46,143,255,0.04) calc(4rem + 1px)),
    repeating-linear-gradient(0deg, transparent, transparent 4rem, rgba(46,143,255,0.04) 4rem, rgba(46,143,255,0.04) calc(4rem + 1px));
}
.bg-glow {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(ellipse 50% 40% at 50% 0%, rgba(46,143,255,0.28), transparent 70%),
    radial-gradient(ellipse 40% 40% at 85% 30%, rgba(46,230,197,0.12), transparent 70%);
}

/* ── Contenedor / helpers ── */
.nav, .hero__inner, .section, .cta, .footer {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1.1rem, 0.6rem + 2.5vw, 2.5rem);
}

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--accent);
  margin-bottom: 0.75rem;
}
.grad {
  background: linear-gradient(100deg, var(--primary-bright), var(--accent));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}

/* ── NAV ── */
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding-block: 1.4rem;
}
.nav__brand { display: inline-flex; align-items: center; gap: 0.55rem; font-weight: 800; font-size: 1.2rem; letter-spacing: 0.02em; }
.nav__dot { width: 0.7rem; height: 0.7rem; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px var(--accent); }
.nav__links { display: flex; align-items: center; gap: 1.6rem; font-size: 0.95rem; }
.nav__links > a { color: var(--text-dim); transition: color 0.25s var(--ease); }
.nav__links > a:hover { color: var(--text); }
.nav__cta {
  padding: 0.55rem 1.2rem; border-radius: 999px;
  border: 1px solid var(--line-strong); color: var(--text) !important;
}
.nav__cta:hover { border-color: var(--primary); background: rgba(46,143,255,0.12); }
@media (max-width: 34rem) { .nav__links a:not(.nav__cta) { display: none; } }

/* ── Botones ── */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.95rem 1.7rem; border-radius: 999px;
  font-weight: 600; font-size: 1rem; cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease);
}
.btn--primary {
  background: linear-gradient(180deg, var(--primary-bright), var(--primary));
  color: #fff; box-shadow: 0 10px 36px -12px rgba(46,143,255,0.7);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 14px 44px -10px rgba(46,143,255,0.85); }
.btn--ghost { border: 1px solid var(--line-strong); color: var(--text); }
.btn--ghost:hover { border-color: var(--primary); background: rgba(46,143,255,0.1); }
.btn--lg { padding: 1.1rem 2.2rem; font-size: 1.1rem; }
.btn .arrow { transition: transform 0.25s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

/* ── HERO ── */
.hero { padding-block: clamp(3.5rem, 2rem + 8vw, 8rem) clamp(3rem, 2rem + 5vw, 6rem); }
.hero__inner { text-align: center; }
.badge {
  display: inline-block; font-size: 0.8rem; font-weight: 600;
  color: var(--accent); letter-spacing: 0.12em;
  padding: 0.4rem 0.9rem; border: 1px solid var(--line-strong);
  border-radius: 999px; margin-bottom: 1.6rem;
}
.hero__title { font-size: var(--step-hero); font-weight: 800; }
.hero__lead {
  max-width: 38rem; margin: 1.6rem auto 0;
  font-size: var(--step-1); color: var(--text-dim); font-weight: 400; line-height: 1.5;
}
.hero__cta { display: flex; flex-wrap: wrap; gap: 0.9rem; justify-content: center; margin-top: 2.4rem; }
.hero__stats {
  display: flex; flex-wrap: wrap; justify-content: center; gap: clamp(1.5rem, 4vw, 4rem);
  margin-top: 3.5rem; padding-top: 2.5rem; border-top: 1px solid var(--line);
}
.hero__stats li { display: flex; flex-direction: column; }
.hero__stats strong { font-size: var(--step-2); font-weight: 800; color: var(--primary-bright); }
.hero__stats span { font-size: 0.85rem; color: var(--text-faint); text-transform: uppercase; letter-spacing: 0.1em; }

/* ── Secciones ── */
.section { padding-block: clamp(3.5rem, 2rem + 6vw, 7rem); }
.section--alt { position: relative; }
.section__head { text-align: center; margin-bottom: clamp(2.5rem, 1.5rem + 3vw, 4rem); }
.section__head h2 { font-size: var(--step-3); font-weight: 800; }

/* ── Grid de servicios ── */
.grid { display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); }
.feat {
  padding: 2rem 1.8rem; border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--surface), var(--ink-soft));
  border: 1px solid var(--line);
  box-shadow: 0 20px 50px -30px rgba(0,0,0,0.8);
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease);
}
.feat:hover { transform: translateY(-5px); border-color: rgba(46,143,255,0.45); }
.feat__ic {
  display: inline-flex; align-items: center; justify-content: center;
  width: 3.2rem; height: 3.2rem; font-size: 1.5rem; margin-bottom: 1.1rem;
  border-radius: 0.9rem; background: rgba(46,143,255,0.12); border: 1px solid var(--line-strong);
}
.feat h3 { font-size: var(--step-1); margin-bottom: 0.5rem; }
.feat p { color: var(--text-dim); font-size: 0.98rem; }

/* ── Pasos ── */
.steps { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); counter-reset: step; }
.step { position: relative; padding: 2rem 1.8rem; border-radius: var(--radius-lg); border: 1px solid var(--line); background: rgba(14,39,72,0.5); }
.step__n {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.6rem; height: 2.6rem; margin-bottom: 1rem;
  font-weight: 800; font-size: 1.2rem; color: var(--ink);
  border-radius: 50%; background: linear-gradient(180deg, var(--primary-bright), var(--accent));
}
.step h3 { font-size: var(--step-1); margin-bottom: 0.4rem; }
.step p { color: var(--text-dim); font-size: 0.98rem; }

/* ── CTA final ── */
.cta { padding-block: clamp(3rem, 2rem + 4vw, 6rem); }
.cta__card {
  text-align: center; padding: clamp(2.5rem, 1.5rem + 5vw, 5rem) 1.5rem;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(ellipse 60% 120% at 50% 0%, rgba(46,143,255,0.25), transparent 70%),
    linear-gradient(180deg, var(--surface-2), var(--ink-soft));
  border: 1px solid var(--line-strong);
}
.cta__card h2 { font-size: var(--step-3); font-weight: 800; }
.cta__card p { color: var(--text-dim); margin: 1rem auto 2rem; max-width: 32rem; font-size: var(--step-1); }

/* ── Footer ── */
.footer { padding-block: 2.5rem 3rem; border-top: 1px solid var(--line); margin-top: 2rem; }
.footer__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; color: var(--text-dim); font-size: 0.92rem; }
.footer__brand { display: inline-flex; align-items: center; gap: 0.5rem; font-weight: 800; color: var(--text); }
.footer__row a:hover { color: var(--primary-bright); }
.footer__legal { margin-top: 1.2rem; color: var(--text-faint); font-size: 0.85rem; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto; } }
