/* ==========================================================================
   Tracking Digital Media — Hoja de estilos principal
   Versión 1.0 · Noviembre 2026
   Índice:
   1. Fuentes          5. Hero            9.  Planes
   2. Variables        6. Cómo funciona   10. App
   3. Base             7. Funciones       11. CTA y pie de página
   4. Encabezado       8. Comparación     12. Páginas internas y utilidades
   ========================================================================== */

/* 1. Fuentes (alojadas localmente: sin peticiones a terceros) */
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-var-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Space Grotesk";
  src: url("../fonts/space-grotesk-500-latin.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Space Grotesk";
  src: url("../fonts/space-grotesk-600-latin.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Space Grotesk";
  src: url("../fonts/space-grotesk-700-latin.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

/* 2. Variables de marca */
:root {
  --navy: #0D253F;
  --navy-700: #15304F;
  --navy-600: #1B3A5C;
  --navy-line: #23405F;
  --steel: #537694;
  --steel-300: #8FB0CC;
  --steel-100: #E6EDF3;
  --ink: #0D253F;
  --ink-2: #33475E;
  --ink-3: #44576C;
  --ink-4: #5B6E82;
  --line: #E3E8EE;
  --line-2: #C9D6E2;
  --bg: #F6F7F9;
  --white: #FFFFFF;
  --on-navy: #C9D9E7;
  --on-navy-2: #B9C9D8;
  --accent-alt: #E07A2E;

  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Space Grotesk", "Inter", system-ui, sans-serif;

  --radius-sm: 10px;
  --radius: 12px;
  --radius-lg: 18px;
  --radius-xl: 20px;
  --container: 1200px;
  --shadow-navy: 0 30px 60px -20px rgba(13, 37, 63, 0.45);
}

/* 3. Base */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }

a { color: var(--navy); }
a:hover { color: var(--steel); }

h1, h2, h3 { margin: 0; font-family: var(--font-display); color: inherit; }
p { margin: 0; }

:focus-visible { outline: 3px solid var(--steel); outline-offset: 3px; border-radius: 4px; }

.container { max-width: var(--container); margin: 0 auto; padding-left: 24px; padding-right: 24px; }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  padding: 12px 16px; border-radius: var(--radius-sm);
  background: var(--navy); color: var(--white); text-decoration: none; font-weight: 600;
}
.skip-link:focus { top: 16px; color: var(--white); }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.eyebrow {
  font-size: 13px; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--steel);
}
.eyebrow--light { color: var(--steel-300); }

.section { padding: 96px 0; }
.section--white { background: var(--white); }
.section--muted { background: var(--bg); }
.section--navy { background: var(--navy); color: var(--white); }

.section-head { display: flex; flex-direction: column; gap: 12px; max-width: 640px; }
.section-head--center { align-items: center; text-align: center; margin: 0 auto; }
.section-title {
  font-size: clamp(32px, 3.6vw, 44px); line-height: 1.1;
  letter-spacing: -0.02em; font-weight: 700;
}
.lead { font-size: 17px; line-height: 1.6; color: var(--ink-3); }

/* Botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 44px; padding: 12px 20px; border-radius: var(--radius);
  font: inherit; font-size: 15px; font-weight: 600; line-height: 1.2;
  text-decoration: none; cursor: pointer; border: 1.5px solid transparent;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn--lg { padding: 16px 28px; font-size: 16px; }
.btn--block { width: 100%; }
.btn--primary { background: var(--navy); color: var(--white); }
.btn--primary:hover { background: var(--navy-600); color: var(--white); }
.btn--ghost { background: transparent; color: var(--navy); }
.btn--ghost:hover { background: var(--steel-100); color: var(--navy); }
.btn--outline { background: transparent; color: var(--navy); border-color: var(--line-2); }
.btn--outline:hover { background: var(--steel-100); color: var(--navy); }
.btn--light { background: var(--white); color: var(--navy); }
.btn--light:hover { background: var(--steel-100); color: var(--navy); }

/* 4. Encabezado */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(180%) blur(8px);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 72px; }
.brand { display: flex; align-items: center; flex: 0 0 auto; }
.brand img { height: 40px; width: auto; }

.nav-toggle {
  display: none; align-items: center; justify-content: center;
  width: 44px; height: 44px; border: 1.5px solid var(--line-2); border-radius: var(--radius-sm);
  background: var(--white); color: var(--navy); cursor: pointer;
}
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

.site-nav { display: flex; align-items: center; gap: 32px; }
.nav-list { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; }
.nav-list a { color: var(--ink-2); text-decoration: none; font-size: 15px; font-weight: 500; }
.nav-list a:hover { color: var(--navy); }
.nav-actions { display: flex; align-items: center; gap: 8px; }

@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 16px;
    padding: 16px 24px 24px; background: var(--white);
    border-bottom: 1px solid var(--line); box-shadow: 0 20px 30px -20px rgba(13, 37, 63, 0.25);
  }
  .site-nav.is-open { display: flex; }
  .nav-list { flex-direction: column; gap: 0; }
  .nav-list a { display: block; padding: 12px 0; font-size: 17px; border-bottom: 1px solid var(--line); }
  .nav-actions { flex-direction: column; align-items: stretch; }
  .no-js .site-nav { display: flex; position: static; box-shadow: none; padding: 0 0 16px; }
  .no-js .nav-toggle { display: none; }
  .no-js .header-inner { flex-wrap: wrap; }
}

/* 5. Hero */
.hero { background: var(--white); }
.hero-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 56px; padding-top: 88px; padding-bottom: 96px; }
.hero-copy { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.hero-visual { flex: 1 1 460px; min-width: 0; }

.badge {
  display: inline-flex; align-self: flex-start; align-items: center; gap: 8px;
  padding: 6px 12px; border-radius: 999px; background: var(--steel-100);
  color: #3F5F7D; font-size: 13px; font-weight: 600; letter-spacing: 0.02em;
}
.hero-title {
  font-size: clamp(40px, 5.2vw, 64px); line-height: 1.02;
  letter-spacing: -0.03em; font-weight: 700;
}
.hero-text { font-size: 19px; line-height: 1.6; color: var(--ink-3); max-width: 540px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; padding-top: 8px; }
.hero-note { font-size: 14px; color: var(--ink-4); }

/* Panel de ranking (visual del producto, datos de ejemplo) */
.panel { margin: 0; background: var(--navy); border-radius: var(--radius-xl); padding: 24px; box-shadow: var(--shadow-navy); color: var(--white); }
.panel-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding-bottom: 20px; border-bottom: 1px solid var(--navy-line);
}
.panel-kicker { display: block; font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--steel-300); }
.panel-title { display: block; font-family: var(--font-display); font-size: 20px; font-weight: 600; margin-top: 4px; }
.tag { font-size: 12px; font-weight: 600; color: var(--navy); background: var(--steel-300); padding: 4px 10px; border-radius: 999px; white-space: nowrap; }

.rank-list { list-style: none; margin: 0; padding: 12px 0 0; display: flex; flex-direction: column; gap: 4px; }
.rank-row { display: flex; align-items: center; gap: 14px; padding: 12px 8px; }
.rank-pos { width: 24px; font-family: var(--font-display); font-size: 15px; font-weight: 600; color: var(--steel-300); }
.rank-name { flex: 0 0 110px; font-size: 15px; font-weight: 500; }
.rank-track { display: block; flex: 1 1 auto; height: 10px; background: var(--navy-600); border-radius: 999px; overflow: hidden; }
.rank-bar { display: block; height: 100%; border-radius: 999px; background: var(--steel); }
.rank-row--me .rank-bar { background: var(--white); }
.rank-row--me .rank-name { font-weight: 700; }
.rank-trend { width: 44px; text-align: right; font-size: 13px; font-weight: 600; color: var(--on-navy); font-variant-numeric: tabular-nums; }

.w-92 { width: 92%; } .w-78 { width: 78%; } .w-64 { width: 64%; } .w-51 { width: 51%; } .w-38 { width: 38%; }

.panel-stats { display: flex; gap: 12px; flex-wrap: wrap; padding-top: 20px; margin-top: 8px; border-top: 1px solid var(--navy-line); }
.panel-stat { flex: 1 1 120px; background: var(--navy-700); border-radius: var(--radius); padding: 14px 16px; }
.panel-stat dt { font-size: 12px; color: var(--steel-300); }
.panel-stat dd { margin: 4px 0 0; font-size: 15px; font-weight: 600; }

/* Franja "Hecho para" */
.audience { background: var(--bg); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.audience-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; padding-top: 28px; padding-bottom: 28px; }
.audience-label { font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-4); }
.audience-list { display: flex; flex-wrap: wrap; gap: 12px 32px; list-style: none; margin: 0; padding: 0; }
.audience-list li { font-family: var(--font-display); font-size: 18px; font-weight: 600; }

/* 6. Cómo funciona y tarjetas */
.stack-48 { display: flex; flex-direction: column; gap: 48px; }
.cards { display: flex; flex-wrap: wrap; gap: 24px; list-style: none; margin: 0; padding: 0; }
.card {
  flex: 1 1 300px; background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 32px; display: flex; flex-direction: column; gap: 14px;
}
.step-num { font-family: var(--font-display); font-size: 44px; font-weight: 700; color: var(--steel); line-height: 1; }
.card-title { font-size: 22px; font-weight: 700; }
.card-text { font-size: 16px; line-height: 1.6; color: var(--ink-3); }

/* 7. Funciones */
.features-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; }
.features-head .lead { max-width: 400px; }
.cards--features { gap: 20px; }
.cards--features .card { flex-basis: 340px; background: #FBFCFD; padding: 28px; }
.cards--features .card-title { font-size: 20px; }
.cards--features .card-text { font-size: 15px; }
.icon-box { width: 48px; height: 48px; border-radius: var(--radius); background: var(--steel-100); color: var(--navy); display: flex; align-items: center; justify-content: center; }

/* 8. Comparación de dominios */
.split { display: flex; flex-wrap: wrap; align-items: center; gap: 56px; }
.split-copy { flex: 1 1 400px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.split-visual { flex: 1 1 520px; min-width: 0; }
.checklist { list-style: none; margin: 0; padding: 4px 0 0; display: flex; flex-direction: column; gap: 14px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; font-size: 16px; line-height: 1.5; }
.checklist svg { flex: 0 0 auto; margin-top: 1px; color: var(--steel); }

.table-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-xl); padding: 8px; box-shadow: 0 20px 40px -24px rgba(13, 37, 63, 0.25); }
.table-scroll { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.data-table caption { text-align: left; padding: 16px 16px 12px; font-size: 13px; font-weight: 600; color: var(--ink-4); }
.data-table th {
  text-align: right; padding: 12px 16px; background: #F1F4F7;
  font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3);
}
.data-table th:first-child { text-align: left; border-radius: 10px 0 0 10px; }
.data-table th:last-child { border-radius: 0 10px 10px 0; }
.data-table td { padding: 16px; text-align: right; color: var(--ink-2); font-variant-numeric: tabular-nums; border-bottom: 1px solid #EEF2F5; }
.data-table td:first-child { text-align: left; font-weight: 600; color: var(--ink); }
.data-table tr:last-child td { border-bottom: 0; }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 10px; vertical-align: 0; }
.dot--1 { background: var(--navy); } .dot--2 { background: var(--steel); } .dot--3 { background: var(--steel-300); }
.dot--4 { background: var(--line-2); } .dot--5 { background: var(--accent-alt); }

@media (max-width: 520px) {
  .data-table { font-size: 13px; }
  .data-table th { font-size: 10px; padding: 10px 6px; }
  .data-table td { padding: 12px 6px; }
}

/* 9. Planes */
.pricing { display: flex; flex-direction: column; align-items: center; gap: 40px; }
.plans { width: 100%; display: flex; flex-wrap: wrap; gap: 20px; align-items: stretch; list-style: none; margin: 0; padding: 0; }
.plan { flex: 1 1 320px; border: 1px solid var(--line); border-radius: var(--radius-xl); padding: 32px; display: flex; flex-direction: column; gap: 24px; background: var(--white); }
.plan--featured { background: var(--navy); color: var(--white); border-color: var(--navy); box-shadow: 0 30px 60px -24px rgba(13, 37, 63, 0.5); }
.plan-head { display: flex; flex-direction: column; gap: 8px; }
.plan-name-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.plan-name { font-size: 22px; font-weight: 700; }
.plan-desc { font-size: 15px; color: var(--ink-4); }
.plan--featured .plan-desc { color: var(--on-navy-2); }
.plan-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px; }
.plan-amount { font-family: var(--font-display); font-size: 48px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; }
.plan-period { font-size: 15px; color: var(--ink-4); }
.plan--featured .plan-period { color: var(--on-navy-2); }
.plan-features { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; font-size: 15px; color: var(--ink-2); flex: 1 1 auto; }
.plan--featured .plan-features { color: #E3ECF4; }
.plan-note { font-size: 14px; color: var(--ink-4); text-align: center; }

/* 10. App */
.app-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 56px; padding-top: 88px; padding-bottom: 88px; }
.app-copy { flex: 1 1 440px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.app-copy .lead { color: var(--on-navy); max-width: 480px; }
.subscribe { display: flex; flex-wrap: wrap; gap: 10px; padding-top: 4px; max-width: 480px; }
.subscribe input[type="email"] {
  flex: 1 1 220px; min-width: 0; min-height: 48px; padding: 12px 16px; border-radius: var(--radius);
  border: 1.5px solid #2F4F72; background: var(--navy-700); color: var(--white); font: inherit; font-size: 15px;
}
.subscribe input[type="email"]::placeholder { color: #8FA6BC; }
.subscribe input[type="email"]:focus { border-color: var(--steel-300); outline: none; }
.subscribe .hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-status { min-height: 1.5em; font-size: 15px; color: var(--on-navy); }
.form-status.is-error { color: #FFB4A8; }
.form-status.is-ok { color: #A8E6C1; }
.form-legal { font-size: 13px; color: var(--on-navy-2); }
.form-legal a { color: var(--white); }

.app-visual { flex: 1 1 360px; min-width: 0; display: flex; justify-content: center; }
.phone { width: 260px; height: 520px; border-radius: 40px; background: var(--white); padding: 12px; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.6); }
.phone-screen { width: 100%; height: 100%; border-radius: 30px; background: var(--bg); overflow: hidden; display: flex; flex-direction: column; color: var(--navy); }
.phone-head { background: var(--white); padding: 28px 18px 16px; display: flex; flex-direction: column; gap: 6px; border-bottom: 1px solid var(--line); }
.phone-kicker { font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--steel); }
.phone-title { font-family: var(--font-display); font-size: 22px; font-weight: 700; }
.phone-sub { font-size: 12px; color: var(--ink-4); }
.phone-list { list-style: none; margin: 0; padding: 16px 14px; display: flex; flex-direction: column; gap: 10px; }
.phone-item { background: var(--white); border-radius: var(--radius); padding: 10px 12px; display: flex; flex-direction: column; gap: 8px; }
.phone-item-row { display: flex; justify-content: space-between; font-size: 12px; font-weight: 600; }
.phone-item-row span:last-child { color: var(--steel); }
.phone-track { display: block; height: 6px; background: var(--steel-100); border-radius: 999px; overflow: hidden; }
.phone-bar { display: block; height: 100%; border-radius: 999px; background: var(--steel-300); }
.phone-item--me .phone-bar { background: var(--navy); }

/* 11. CTA y pie de página */
.cta-box {
  background: var(--white); border: 1px solid var(--line); border-radius: 28px; padding: 56px 40px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 32px;
}
.cta-copy { flex: 1 1 420px; display: flex; flex-direction: column; gap: 12px; }
.cta-title { font-size: clamp(28px, 3.2vw, 40px); line-height: 1.1; letter-spacing: -0.02em; font-weight: 700; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.site-footer { background: var(--navy); color: var(--on-navy-2); }
.footer-inner { display: flex; flex-direction: column; gap: 48px; padding-top: 64px; padding-bottom: 32px; }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 40px; }
.footer-brand { flex: 1 1 300px; max-width: 380px; display: flex; flex-direction: column; gap: 16px; }
.footer-brand img { height: 44px; width: auto; align-self: flex-start; }
.footer-brand p { font-size: 15px; line-height: 1.6; }
.footer-cols { display: flex; flex-wrap: wrap; gap: 56px; }
.footer-col h2 { font-family: var(--font-sans); font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--white); margin-bottom: 12px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; font-size: 15px; }
.site-footer a { color: var(--on-navy-2); text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.footer-email { font-weight: 600; }
.footer-bottom { border-top: 1px solid var(--navy-line); padding-top: 24px; font-size: 14px; }

/* 12. Páginas internas (404, aviso de privacidad) */
.page { background: var(--white); }
.page-inner { max-width: 760px; margin: 0 auto; padding: 72px 24px 96px; }
.page-inner h1 { font-size: clamp(32px, 4vw, 44px); letter-spacing: -0.02em; line-height: 1.1; margin-bottom: 16px; }
.page-inner h2 { font-size: 22px; margin: 40px 0 12px; }
.page-inner p, .page-inner li { font-size: 16px; line-height: 1.7; color: var(--ink-2); }
.page-inner p + p { margin-top: 12px; }
.page-inner ul { padding-left: 22px; }
.page-meta { color: var(--ink-4); font-size: 14px; }
.center-page { min-height: 60vh; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 20px; }
.big-code { font-family: var(--font-display); font-size: 96px; font-weight: 700; color: var(--steel); line-height: 1; }

@media (max-width: 640px) {
  .section { padding: 72px 0; }
  .hero-inner { padding-top: 56px; padding-bottom: 72px; gap: 40px; }
  .card { padding: 24px; }
  .cta-box { padding: 40px 24px; }
  .rank-name { flex-basis: 84px; font-size: 14px; }
  .audience-inner { flex-direction: column; align-items: flex-start; }
}
