/* =============================================================
   NetPulso — hoja de estilo unica del sitio
   1. Tokens · 2. Reset · 3. Utilidades · 4. Tipografia
   5. Componentes · 6. Secciones · 7. Efectos · 8. Responsive
   9. Reduced-motion · 10. Print
   ============================================================= */

/* =============================================================
   1. Tokens
   ============================================================= */
:root {
  /* Fondo casi negro con un punto de azul: el instrumento se lee mejor
     sobre oscuro, y deja que los datos sean lo unico que brilla. */
  --bg:        #06080e;
  --bg-2:      #090d16;
  --surface:   #0d1220;
  --surface-2: #141c2e;
  --line:      #1d2739;
  --line-soft: #161e2c;

  --txt:       #f3f6fb;
  --muted:     #8d9ab2;
  --faint:     #5c6a82;

  --accent:    #00e8a5;   /* verde senal: el dato vivo            */
  --accent-2:  #5b7cfa;   /* indigo electrico: el dato de apoyo   */
  --warn:      #ffb020;
  --bad:       #ff5a5f;
  --good:      #00e8a5;

  --sans:    "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Sora", var(--sans);
  --mono:    "JetBrains Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;

  --gutter: clamp(1rem, 4vw, 2rem);
  --maxw: 1120px;
  --radius: 20px;
  --radius-sm: 12px;

  --ease-out:  cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.25, 0.46, 0.45, 0.94);

  --shadow: 0 28px 70px -34px rgba(0, 0, 0, .95);
  --glow: 0 0 0 1px rgba(0, 232, 165, .18), 0 14px 40px -18px rgba(0, 232, 165, .45);
  color-scheme: dark;
}

/* =============================================================
   2. Reset y base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html { -webkit-text-size-adjust: 100%; tab-size: 2; scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--txt);
  background-color: var(--bg);
  /* Retícula de puntos muy tenue: da sensación de panel de medición
     sin robar protagonismo a los números. */
  background-image:
    radial-gradient(60rem 34rem at 50% -16rem, rgba(0, 232, 165, .10), transparent 68%),
    radial-gradient(44rem 30rem at 108% 10rem, rgba(91, 124, 250, .09), transparent 70%),
    radial-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: auto, auto, 26px 26px;
  background-repeat: no-repeat, no-repeat, repeat;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  overscroll-behavior-y: none;
}

img, svg, video, canvas { display: block; max-width: 100%; }
/* Los botones son inline-flex, asi que el atributo hidden necesita ganar */
[hidden] { display: none !important; }
img { height: auto; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
p { text-wrap: pretty; }
h1, h2, h3, h4 {
  text-wrap: balance; line-height: 1.04; letter-spacing: -0.035em;
  font-family: var(--display); font-weight: 600;
}
::selection { background: var(--accent); color: #04170f; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

/* =============================================================
   3. Utilidades
   ============================================================= */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; top: -100px; left: 1rem; z-index: 9999;
  padding: .6rem 1rem; background: var(--accent); color: #04170f;
  border-radius: 8px; font-weight: 600;
}
.skip-link:focus { top: 1rem; }
.center { text-align: center; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }

/* Etiqueta pequena en versalitas, el sello del panel de instrumentos */
.eyebrow {
  font-family: var(--mono); font-size: .68rem; font-weight: 500;
  letter-spacing: .22em; text-transform: uppercase; color: var(--faint);
}

/* =============================================================
   4. Tipografia
   ============================================================= */
h1 { font-size: clamp(1.65rem, 5.4vw, 2.8rem); font-weight: 700; }
h2 { font-size: clamp(1.35rem, 3.6vw, 1.95rem); margin-bottom: .6rem; }
h3 { font-size: clamp(1.05rem, 2.4vw, 1.2rem); margin-bottom: .35rem; }
.lede { color: var(--muted); font-size: clamp(.95rem, 2.2vw, 1.06rem); }
.prose p { margin-bottom: 1rem; color: #c8d3e6; }
.prose h2 { margin-top: 2.2rem; }
.prose h3 { margin-top: 1.6rem; }
.prose ul { margin: 0 0 1rem 1.1rem; color: #c8d3e6; }
.prose li { margin-bottom: .4rem; }
.prose strong { color: var(--txt); }
.prose code { font-family: var(--mono); font-size: .88em; color: var(--accent); }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

/* =============================================================
   5. Componentes
   ============================================================= */

/* --- cabecera --- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  backdrop-filter: blur(16px);
  background: rgba(6, 8, 14, .8);
  border-bottom: 1px solid var(--line-soft);
}
.header-inner { display: flex; align-items: center; gap: 1rem; min-height: 58px; }
.brand {
  display: flex; align-items: center; gap: .6rem;
  font-family: var(--display); font-weight: 600;
  letter-spacing: -0.04em; font-size: 1.12rem; color: var(--txt);
}
.brand-mark { width: 30px; height: 24px; flex: none; color: var(--accent); }
.brand b { color: var(--accent); font-weight: 700; }
.site-nav { margin-left: auto; }
.site-nav ul { display: flex; gap: .15rem; list-style: none; padding: 0; margin: 0; }
.site-nav a {
  display: block; padding: .4rem .62rem; border-radius: 8px;
  font-size: .86rem; color: var(--muted); white-space: nowrap;
  transition: color .2s var(--ease-out), background-color .2s var(--ease-out);
}
.site-nav a:hover { color: var(--txt); background: var(--surface); }
.site-nav a[aria-current="page"] {
  color: var(--accent); background: rgba(0, 232, 165, .09);
  box-shadow: inset 0 0 0 1px rgba(0, 232, 165, .22);
}

/* --- botones --- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .8rem 1.4rem; border-radius: 999px;
  font-weight: 600; font-size: .94rem;
  background: var(--surface-2); border: 1px solid var(--line);
  transition: transform .2s var(--ease-out), background-color .2s var(--ease-out),
              border-color .2s var(--ease-out), box-shadow .2s var(--ease-out);
}
.btn:hover { background: #1a2438; border-color: #2a3750; }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .45; cursor: not-allowed; }

.btn-primary {
  background: linear-gradient(135deg, var(--accent), #34d8ff);
  color: #04170f; border: 0; box-shadow: var(--glow);
}
.btn-primary:hover { background: linear-gradient(135deg, #21f7bb, #57e0ff); }

.btn-xl {
  padding: 1.1rem 2.8rem; font-size: 1.1rem; font-family: var(--display);
  font-weight: 700; letter-spacing: -0.02em;
}
.btn-ghost { background: transparent; border: 1px solid var(--line); color: var(--muted); }
.btn-ghost:hover { color: var(--txt); background: var(--surface); }
.btn-sm { padding: .5rem .9rem; font-size: .84rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: .55rem; justify-content: center; margin-top: 1rem; }

/* --- tarjeta de herramienta --- */
.tool-card {
  position: relative;
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(1rem, 3.4vw, 1.9rem);
}
/* Filo luminoso superior: el detalle que da aire de instrumento caro */
.tool-card::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, .055), transparent 38%);
}
.tool-card::after {
  content: ""; position: absolute; top: -1px; left: 18%; right: 18%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 232, 165, .55), transparent);
  pointer-events: none;
}
.tool-card > * { position: relative; }

.tool-noscript { display: none; text-align: center; color: var(--warn); padding: 1.4rem 0; font-size: .95rem; }
.no-js .tool-noscript { display: block; }
.no-js [data-needs-js] { display: none !important; }

/* --- velocimetro --- */
.gauge-wrap { display: grid; place-items: center; gap: .5rem; }
.gauge-stage { position: relative; width: min(100%, 340px); }
.gauge { width: 100%; aspect-ratio: 1 / 0.74; }
/* La cifra vive en la mitad baja del dial, por debajo de las etiquetas de
   la escala: asi nunca se pisan, ni en pantallas estrechas. */
.gauge-readout {
  position: absolute; left: 0; right: 0; top: 44%;
  text-align: center; pointer-events: none;
}
.gauge-readout b {
  display: block; font-family: var(--display); font-weight: 700;
  font-size: clamp(2.4rem, 12vw, 3.4rem); line-height: .95;
  font-variant-numeric: tabular-nums; letter-spacing: -0.05em;
  text-shadow: 0 0 34px rgba(0, 232, 165, .28);
}
.gauge-readout span {
  font-family: var(--mono); font-size: .72rem; font-weight: 500;
  letter-spacing: .24em; text-transform: uppercase; color: var(--faint);
}
/* Cifra grande fuera del velocimetro (la IP, la latencia destacada) */
.bigvalue {
  display: block; font-family: var(--display); font-weight: 700;
  font-size: clamp(1.55rem, 7.4vw, 2.5rem); line-height: 1.08;
  letter-spacing: -0.045em; font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere; margin: .25rem 0 .7rem;
  text-shadow: 0 0 34px rgba(0, 232, 165, .2);
}
/* Valores largos (una IPv6, por ejemplo): mismo peso, menos cuerpo */
.bigvalue.is-long {
  font-size: clamp(.95rem, 3.4vw, 1.35rem);
  letter-spacing: -0.01em; line-height: 1.3; word-break: break-all;
}

.gauge-phase {
  font-family: var(--mono); font-size: .72rem; font-weight: 500;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--faint); min-height: 1.4em; text-align: center;
}
.gauge-phase b { color: var(--accent); font-weight: 700; }

/* --- metricas --- */
.metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; margin-top: 1rem; }
.metric {
  position: relative; overflow: hidden;
  background: rgba(255, 255, 255, .022);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  padding: .7rem .5rem; text-align: center;
  transition: border-color .25s var(--ease-out), background-color .25s var(--ease-out);
}
.metric.is-live {
  border-color: rgba(0, 232, 165, .5); background: rgba(0, 232, 165, .07);
}
/* Barrido luminoso sobre la metrica que se esta midiendo ahora mismo */
.metric.is-live::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(0, 232, 165, .13), transparent);
  animation: sweep 1.6s linear infinite;
}
.metric dt {
  font-family: var(--mono); font-size: .62rem; font-weight: 500;
  letter-spacing: .16em; text-transform: uppercase; color: var(--faint);
}
.metric dd {
  font-family: var(--display); font-size: clamp(1.05rem, 4.6vw, 1.5rem);
  font-weight: 600; font-variant-numeric: tabular-nums;
  letter-spacing: -0.03em; margin: .18rem 0 0;
}
.metric dd small {
  font-family: var(--mono); font-size: .5em; color: var(--muted);
  font-weight: 500; margin-left: .25em; letter-spacing: .04em;
}

/* --- filas de datos (IP, SSL, conexion) --- */
.datalist { margin: 0; }
.datarow {
  display: grid; grid-template-columns: minmax(7rem, 34%) 1fr; gap: .6rem;
  padding: .64rem .2rem; border-bottom: 1px solid var(--line-soft);
  align-items: baseline;
}
.datarow:last-child { border-bottom: 0; }
.datarow dt {
  font-family: var(--mono); font-size: .68rem; font-weight: 500;
  letter-spacing: .1em; text-transform: uppercase; color: var(--faint);
}
.datarow dd { margin: 0; font-weight: 500; overflow-wrap: anywhere; }
.datarow dd.big {
  font-family: var(--display); font-size: 1.35rem; font-weight: 600;
  letter-spacing: -0.03em; font-variant-numeric: tabular-nums;
}

/* --- formularios --- */
.field { display: flex; gap: .5rem; flex-wrap: wrap; }
.field input[type="text"] {
  flex: 1 1 15rem; min-width: 0;
  font-family: var(--mono); font-size: .95rem;
  padding: .88rem 1rem; border-radius: 12px;
  background: rgba(0, 0, 0, .35); border: 1px solid var(--line);
  transition: border-color .2s var(--ease-out), box-shadow .2s var(--ease-out);
}
.field input::placeholder { color: var(--faint); }
.field input:focus {
  border-color: var(--accent); outline: none;
  box-shadow: 0 0 0 3px rgba(0, 232, 165, .12);
}
.field .btn { flex: 0 0 auto; }

/* --- estados y avisos --- */
.status {
  display: flex; align-items: flex-start; gap: .55rem;
  padding: .75rem .9rem; border-radius: 12px; font-size: .88rem;
  border: 1px solid var(--line); background: rgba(255, 255, 255, .025); color: var(--muted);
}
.status--ok   { border-color: rgba(0, 232, 165, .42); background: rgba(0, 232, 165, .07); color: #a7f3dc; }
.status--warn { border-color: rgba(255, 176, 32, .42); background: rgba(255, 176, 32, .07); color: #ffdca8; }
.status--bad  { border-color: rgba(255, 90, 95, .42); background: rgba(255, 90, 95, .07); color: #ffc4c6; }

.badge {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .22rem .6rem; border-radius: 999px;
  font-family: var(--mono); font-size: .72rem; font-weight: 500;
  letter-spacing: .02em; border: 1px solid var(--line); color: var(--muted);
}
.badge--ok   { border-color: rgba(0, 232, 165, .5); color: var(--good); background: rgba(0, 232, 165, .09); }
.badge--warn { border-color: rgba(255, 176, 32, .5); color: var(--warn); background: rgba(255, 176, 32, .09); }
.badge--bad  { border-color: rgba(255, 90, 95, .5); color: var(--bad); background: rgba(255, 90, 95, .09); }

.privacy-note {
  display: flex; align-items: center; justify-content: center; gap: .45rem;
  margin-top: .95rem; font-size: .82rem; color: var(--faint); text-align: center;
}
.privacy-note svg { width: 15px; height: 15px; flex: none; color: var(--accent); }
.limits-note { margin-top: .45rem; font-size: .78rem; color: var(--faint); text-align: center; }

/* --- barra de progreso --- */
.bar { height: 6px; border-radius: 99px; background: rgba(255, 255, 255, .07); overflow: hidden; }
.bar > i { display: block; height: 100%; width: 0%; background: linear-gradient(90deg, var(--accent-2), var(--accent)); transition: width .25s var(--ease-soft); }

/* --- historial --- */
.history { margin-top: 1.1rem; font-size: .84rem; }
.history table { width: 100%; border-collapse: collapse; }
.history th, .history td {
  text-align: right; padding: .42rem .3rem;
  border-bottom: 1px solid var(--line-soft);
  font-family: var(--mono); font-variant-numeric: tabular-nums; font-size: .82rem;
}
.history th:first-child, .history td:first-child { text-align: left; color: var(--faint); }
.history th {
  color: var(--faint); font-weight: 500; font-size: .64rem;
  text-transform: uppercase; letter-spacing: .14em;
}
.history caption {
  text-align: left; color: var(--faint); font-size: .72rem; padding-bottom: .4rem;
  font-family: var(--mono); letter-spacing: .04em;
}

/* --- huecos de anuncios (placeholders vacios) --- */
.ad-slot {
  display: grid; place-items: center; gap: .18rem;
  border: 1px dashed #263349;
  border-radius: var(--radius-sm);
  color: var(--faint); background: rgba(255, 255, 255, .012);
  text-align: center;
}
.ad-slot b {
  font-family: var(--mono); font-size: .68rem; font-weight: 500;
  letter-spacing: .3em; text-transform: uppercase; color: #556480;
}
.ad-slot small { font-family: var(--mono); font-size: .64rem; color: #3f4d66; letter-spacing: .06em; }
/* Cuando el hueco lleva un anuncio real dentro, el recuadro punteado y su
   etiqueta sobran: el anuncio se muestra solo, sin marco de relleno. */
.ad-slot[data-ad-montado] {
  border: 0; background: none; display: block; min-height: 0;
}
.ad-slot--leaderboard { min-height: 100px; margin: 1.8rem 0; }
.ad-slot--incontent   { min-height: 250px; margin: 2rem 0; }
.ad-slot--box         { min-height: 250px; width: 100%; }
.ad-slot--toast       { min-height: 90px; width: 100%; }
@media (min-width: 960px) { .ad-slot--leaderboard { min-height: 90px; } }

/* --- pop-up de anuncio (interstitial tras la descarga) --- */
.ad-dialog {
  /* margin:auto es lo que centra un <dialog> modal; el reset global lo
     habia puesto a 0, asi que hay que devolverselo. */
  margin: auto;
  width: min(92vw, 400px); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 0;
  background: var(--surface); color: var(--txt);
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .95);
}
.ad-dialog::backdrop { background: rgba(3, 5, 10, .74); }
.ad-dialog-head {
  display: flex; align-items: center; gap: .6rem;
  padding: .85rem 1rem; border-bottom: 1px solid var(--line-soft);
}
.ad-dialog-head p { font-size: .84rem; color: var(--muted); margin: 0; }
.ad-dialog-head p b { color: var(--accent); }
.ad-dialog-close {
  margin-left: auto; width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center; color: var(--muted);
  border: 1px solid var(--line); flex: none; font-size: 18px; line-height: 1;
}
.ad-dialog-close:hover { color: var(--txt); background: var(--surface-2); }
.ad-dialog-body { padding: 1rem; }
.ad-dialog-foot { padding: 0 1rem 1rem; }
.ad-dialog-foot .btn { width: 100%; }

/* --- notificacion de esquina --- */
.ad-toast {
  position: fixed; right: 1rem; bottom: 1rem; z-index: 70;
  width: min(84vw, 260px);
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-sm); box-shadow: var(--shadow);
  padding: .7rem; opacity: 0; transform: translateY(14px);
  transition: opacity .35s var(--ease-out), transform .35s var(--ease-out);
  pointer-events: none;
}
.ad-toast[data-open="1"] { opacity: 1; transform: none; pointer-events: auto; }
.ad-toast-head { display: flex; align-items: center; gap: .4rem; margin-bottom: .45rem; }
.ad-toast-head b {
  font-family: var(--mono); font-size: .62rem; font-weight: 500;
  letter-spacing: .24em; text-transform: uppercase; color: #556480;
}
.ad-toast-close {
  margin-left: auto; width: 22px; height: 22px; border-radius: 50%;
  display: grid; place-items: center; color: var(--faint); font-size: 15px; line-height: 1;
}
.ad-toast-close:hover { color: var(--txt); background: var(--surface-2); }

/* --- FAQ --- */
.faq { display: grid; gap: .55rem; }
.faq details {
  border: 1px solid var(--line-soft); border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, .018); overflow: hidden;
  transition: border-color .2s var(--ease-out);
}
.faq details[open] { border-color: rgba(0, 232, 165, .25); }
.faq summary {
  cursor: pointer; padding: .88rem 1rem; font-weight: 600;
  list-style: none; display: flex; gap: .6rem; align-items: flex-start;
  font-size: .95rem; font-family: var(--display); letter-spacing: -0.015em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; margin-left: auto; color: var(--accent);
  font-size: 1.2rem; line-height: 1; flex: none;
  transition: transform .25s var(--ease-out);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding: 0 1rem 1rem; color: #bccbe2; font-size: .92rem; }

/* --- pasos "como funciona" --- */
.steps { display: grid; gap: 1rem; grid-template-columns: 1fr; }
.step { display: flex; gap: .85rem; align-items: flex-start; }
.step-num {
  flex: none; width: 32px; height: 32px; border-radius: 10px;
  display: grid; place-items: center;
  font-family: var(--mono); font-weight: 700; font-size: .82rem;
  background: rgba(0, 232, 165, .1); color: var(--accent);
  border: 1px solid rgba(0, 232, 165, .28);
}
.step p { color: var(--muted); font-size: .9rem; margin: .2rem 0 0; }

/* --- rejilla de herramientas --- */
.tool-grid { display: grid; gap: .8rem; grid-template-columns: 1fr; }
.tool-link {
  display: block; padding: 1.05rem; border-radius: var(--radius-sm);
  border: 1px solid var(--line-soft); background: rgba(255, 255, 255, .018);
  transition: border-color .2s var(--ease-out), transform .2s var(--ease-out), background-color .2s var(--ease-out);
}
.tool-link:hover { border-color: var(--accent); transform: translateY(-3px); background: rgba(0, 232, 165, .05); }
.tool-link strong {
  display: block; font-family: var(--display); font-weight: 600;
  letter-spacing: -0.025em; margin-bottom: .2rem;
}
.tool-link span { font-size: .86rem; color: var(--muted); }
.tool-link[aria-current="page"] { opacity: .4; pointer-events: none; }

/* =============================================================
   6. Secciones
   ============================================================= */
.hero { padding: clamp(1rem, 3.2vw, 2.1rem) 0 0; }
.hero-head { text-align: center; margin-bottom: clamp(.8rem, 2.4vw, 1.25rem); }
.hero-head h1 { margin-bottom: .35rem; }
.hero-head .lede { max-width: 48ch; margin-inline: auto; }

.section { padding: clamp(1.6rem, 4vw, 2.8rem) 0; }
.section-narrow { max-width: 760px; margin-inline: auto; }

.honest {
  border: 1px solid var(--line); border-left: 3px solid var(--warn);
  border-radius: var(--radius-sm); background: rgba(255, 176, 32, .045);
  padding: 1.05rem 1.15rem;
}
.honest h3 { color: var(--warn); }
.honest ul { margin: .5rem 0 0 1.05rem; color: #dae3f2; font-size: .9rem; }
.honest li { margin-bottom: .35rem; }

.site-footer {
  border-top: 1px solid var(--line-soft); margin-top: 2rem;
  padding: 1.7rem 0 2.3rem; color: var(--faint); font-size: .85rem;
}
.footer-inner { display: flex; flex-wrap: wrap; gap: .8rem 1.4rem; align-items: center; }
.site-footer a:hover { color: var(--txt); }
.footer-links { display: flex; flex-wrap: wrap; gap: .8rem 1.1rem; margin-left: auto; }

/* =============================================================
   7. Efectos
   ============================================================= */
[data-reveal] { opacity: 0; transform: translateY(14px); }
[data-reveal].is-in { opacity: 1; transform: none; transition: opacity .6s var(--ease-out), transform .6s var(--ease-out); }
.no-js [data-reveal] { opacity: 1; transform: none; }

@keyframes pulse-dot { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .3; transform: scale(.75); } }
.live-dot {
  display: inline-block; width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 10px rgba(0, 232, 165, .8);
  animation: pulse-dot 1.1s infinite;
}

@keyframes sweep { from { transform: translateX(-100%); } to { transform: translateX(100%); } }

@keyframes spin { to { transform: rotate(360deg); } }
.spinner {
  display: inline-block;
  width: 15px; height: 15px; border-radius: 50%; flex: none;
  border: 2px solid rgba(255, 255, 255, .16); border-top-color: var(--accent);
  animation: spin .8s linear infinite;
}

/* =============================================================
   8. Responsive
   ============================================================= */
@media (min-width: 540px) { .tool-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 720px) {
  .steps { grid-template-columns: repeat(3, 1fr); }
  .gauge-stage { width: min(100%, 400px); }
}
@media (min-width: 960px) { .tool-grid { grid-template-columns: repeat(4, 1fr); } }

/* Cabecera compacta en movil: la navegacion se desliza en horizontal */
@media (max-width: 719px) {
  .site-nav { margin-left: auto; overflow-x: auto; scrollbar-width: none; }
  .site-nav::-webkit-scrollbar { display: none; }
  .site-nav a { padding: .34rem .42rem; font-size: .76rem; }
  .brand-name { display: none; }
}

/* =============================================================
   9. Reduced-motion (solo efectos intrusivos)
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .live-dot { animation: none; }
  .metric.is-live::after { animation: none; }
  [data-reveal] { opacity: 1; transform: none; }
}

/* =============================================================
   10. Print
   ============================================================= */
@media print {
  .site-header, .site-footer, .ad-slot, .ad-toast, .btn { display: none !important; }
  body { background: #fff; color: #000; }
}
