@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-var.260c81a4759b.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope-var.938c6e8019b6.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

/* DESIGN SYSTEM — every colour, face, radius, shadow and space used by the
   site's CSS comes from these tokens. Palette: Midnight Navy (institutional),
   Deep Slate (text), Premium Teal (actions / technology), Champagne Gold
   (rare prestige detail), Silver Mist and white (surfaces). */
:root {
  --navy: #101f35;
  --slate: #263548;
  --teal: #20b6a5;
  --teal-ink: #0c6f64;   /* teal for text on light surfaces (AA contrast) */
  --gold: #c5a46d;
  --mist: #e9eef3;
  --panel: #f4f7fa;      /* lighter mist: inset panels */
  --white: #ffffff;

  --ground: var(--panel);
  --surface: var(--white);
  --ink: var(--navy);
  --ink-soft: #3a4a5e;
  --ink-softer: #5a6a7d;
  --hair: rgba(16, 31, 53, 0.1);
  --hair-strong: rgba(16, 31, 53, 0.2);
  --accent: var(--teal);
  --accent-deep: var(--teal);
  --accent-text: var(--teal-ink);
  --on-accent: var(--navy);
  --on-navy: #ffffff;
  --on-navy-soft: rgba(233, 238, 243, 0.78);
  --hair-on-navy: rgba(233, 238, 243, 0.16);

  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: "Manrope", "Inter", -apple-system, BlinkMacSystemFont, sans-serif;

  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(16, 31, 53, 0.06), 0 1px 3px rgba(16, 31, 53, 0.05);
  --shadow-md: 0 8px 24px rgba(16, 31, 53, 0.08), 0 2px 6px rgba(16, 31, 53, 0.05);
  --shadow-teal: 0 8px 22px rgba(32, 182, 165, 0.32);

  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 40px;
  --space-5: clamp(56px, 8vw, 104px);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  /* Offsets any #anchor jump (e.g. "Buscar" buttons linking to #buscar) by
     the sticky nav's own height (~70px) plus breathing room, so the target
     lands below the pinned header instead of behind it. */
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--accent-text); }
.hero a:not(.btn):hover, .footer a:hover { color: var(--teal); }
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
  border-radius: 2px;
}

h1, h2, h3 { text-wrap: balance; }

.serif { font-family: var(--font-display); }
.mono {
  font-family: var(--font-body);
  font-variant-numeric: tabular-nums;
}

.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding-left: clamp(20px, 5vw, 64px);
  padding-right: clamp(20px, 5vw, 64px);
}

/* MASTHEAD */
.masthead { background: var(--navy); padding-top: 9px; padding-bottom: 9px; }
.masthead-inner {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--on-navy-soft);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal-ink);
  margin: 0 0 22px 0;
}
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); flex: none; }

/* NAV */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--hair);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 18px;
  padding-bottom: 18px;
}
.wordmark {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-align: center;
  flex: none;
}
.wordmark-mark { width: 24px; height: 24px; flex: none; }
.wordmark-text { display: flex; flex-direction: column; line-height: 1.15; }
/* The nav logo is a compact horizontal lockup — the vertical, icon-over-text
   badge treatment (the default .wordmark) belongs in spacious contexts like
   the footer, not a sticky header that's pinned on screen through the whole
   session. On mobile this alone is the difference between the header eating
   ~108px or ~70px of a phone viewport, permanently. */
.nav .wordmark { flex-direction: row; align-items: center; gap: 10px; font-size: 1.05rem; }
.nav .wordmark-text { flex-direction: row; gap: 5px; line-height: 1; }
.nav .wordmark-mark { width: 34px; height: 34px; }
.footer .wordmark { flex-direction: row; align-items: center; gap: 8px; font-size: 0.98rem; }
.footer .wordmark-text { flex-direction: row; gap: 5px; line-height: 1; }
.footer .wordmark-mark { width: 30px; height: 30px; }

.nav-links { display: flex; align-items: center; gap: 28px; flex: 1; justify-content: center; }
.nav-links a { font-size: 0.92rem; font-weight: 500; color: var(--ink-soft); }
.nav-links a:hover { color: var(--ink); }
.nav-links a.is-active { color: var(--ink); border-bottom: 1.5px solid var(--accent); padding-bottom: 2px; }
.nav-right { display: flex; align-items: center; gap: 14px; flex: none; }
.nav-toggle-input { position: absolute; opacity: 0; pointer-events: none; }
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 34px;
  height: 34px;
  cursor: pointer;
  flex: none;
}
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform 0.2s ease, opacity 0.2s ease; }
.nav-toggle-input:checked ~ .nav-right .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle-input:checked ~ .nav-right .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-toggle-input:checked ~ .nav-right .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 22px;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  border-radius: var(--r-sm);
  white-space: nowrap;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn-primary { background: var(--accent-deep); color: var(--ink); }
.btn-primary:hover { color: var(--ink); transform: translateY(-1px); box-shadow: var(--shadow-teal); }
.btn-ghost { color: var(--on-navy); border-color: var(--hair-on-navy); background: rgba(255, 255, 255, 0.04); }
.btn-ghost:hover { color: var(--on-navy); border-color: var(--teal); transform: translateY(-1px); }
.btn-lg { height: 52px; padding: 0 26px; font-size: 1rem; }
.btn-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink);
  border-bottom: 1.5px solid var(--hair-strong);
}
.btn-link:hover { border-color: var(--accent-text); color: var(--ink); }

/* HERO — Midnight Navy, the institutional anchor of the page */
.hero {
  position: relative;
  padding-top: clamp(56px, 8vw, 112px);
  padding-bottom: clamp(56px, 8vw, 104px);
  overflow: hidden;
  background: var(--navy);
  color: var(--on-navy);
}
.hero-glow {
  position: absolute;
  top: -220px;
  right: -160px;
  width: 720px;
  height: 720px;
  background: radial-gradient(circle, rgba(32, 182, 165, 0.16) 0%, rgba(32, 182, 165, 0) 66%);
  pointer-events: none;
  z-index: 0;
}
.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr 0.8fr; gap: 56px; align-items: center; }
.hero .eyebrow { color: var(--teal); }
.hero h1 {
  margin: 0 0 22px 0;
  font-size: clamp(2.2rem, 3.6vw + 0.8rem, 3.6rem);
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--on-navy);
}
.hero h1 .accent-word { color: var(--teal); }
.lede { margin: 0 0 34px 0; font-size: 1.125rem; line-height: 1.6; color: var(--ink-soft); max-width: 52ch; }
.hero .lede { color: var(--on-navy-soft); }
/* SEARCH FORM (shared: hero + results bar) */
.hero-search { margin-bottom: 40px; }
.search-form { display: flex; gap: 10px; max-width: 480px; }
.search-form-input {
  flex: 1 1 auto;
  height: 52px;
  padding: 0 18px;
  font-size: 1.02rem;
  font-family: var(--font-body);
  letter-spacing: 0.02em;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--hair-strong);
  border-radius: var(--r-sm);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.search-form-input:hover { border-color: var(--slate); }
.search-form-input::placeholder { color: var(--ink-softer); font-family: var(--font-body); letter-spacing: normal; }
.search-form-input:focus-visible { outline: none; border-color: var(--teal); box-shadow: 0 0 0 4px rgba(32, 182, 165, 0.28); }
.search-form-btn { flex: none; height: 52px; }
.search-form-hint { margin: 10px 0 0; font-size: 0.82rem; color: var(--ink-softer); }
.hero .search-form-hint { color: var(--on-navy-soft); }
.search-form-trust { margin: 8px 0 0; font-size: 0.7rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--teal-ink); }
.hero .search-form-trust { color: var(--teal); }
.search-form--compact { max-width: 380px; }
.search-form--compact .search-form-input,
.search-form--compact .search-form-btn { height: 44px; font-size: 0.92rem; }

.hero-stats { display: flex; gap: 40px; flex-wrap: wrap; }
.stat-num { font-size: 1.4rem; font-weight: 600; color: var(--ink); }
.stat-label { font-size: 0.8rem; color: var(--ink-softer); margin-top: 4px; }

.hero-graphic { position: relative; display: flex; justify-content: center; }
.hero-graphic svg { width: 100%; max-width: 400px; height: auto; }
.pulse-ring { transform-origin: center; animation: pulse 2.6s ease-out infinite; }
@keyframes pulse {
  0% { opacity: 0.55; transform: scale(0.7); }
  75% { opacity: 0; transform: scale(1.9); }
  100% { opacity: 0; transform: scale(1.9); }
}
@media (prefers-reduced-motion: reduce) {
  .pulse-ring { animation: none; }
}

/* STATUS PILL (shared: radar-list cards, results table, radar index) */
.results-status { display: inline-flex; align-items: center; gap: 8px; font-size: 0.86rem; flex: none; }
.results-status .dot { width: 7px; height: 7px; border-radius: 50%; flex: none; }
.results-status--active .dot { background: var(--accent-deep); }
.results-status--active { color: var(--ink); }
.results-status--pending .dot { background: var(--ink-softer); }
.results-status--pending { color: var(--ink-softer); }

/* RADAR LIST (shared: homepage preview + /radares/ index — the platform's
   family of radars, presented as a list of siblings rather than one radar
   standing in for the whole product). Cards, not a table: works unshrunk
   on a phone, and reads the same at any width. */
.radar-list { display: flex; flex-direction: column; gap: 12px; margin: 28px 0; }
.radar-list-item {
  display: block;
  position: relative;
  padding: 18px 20px;
  background: var(--surface);
  border: 1px solid var(--hair);
  border-radius: var(--r-md);
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}
a.radar-list-item { cursor: pointer; padding-right: 44px; }
a.radar-list-item::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 20px;
  width: 8px;
  height: 8px;
  border-top: 2px solid var(--ink-softer);
  border-right: 2px solid var(--ink-softer);
  transform: translateY(-50%) rotate(45deg);
  transition: border-color 0.15s ease, transform 0.15s ease;
}
a.radar-list-item:hover {
  border-color: var(--accent-text);
  background: var(--ground);
  box-shadow: 0 2px 10px rgba(28, 26, 23, 0.06);
}
a.radar-list-item:hover::after {
  border-color: var(--accent-text);
  transform: translateY(-50%) rotate(45deg) translate(2px, -2px);
}
.radar-list-item--soon { background: var(--panel); }
.radar-list-item-main { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 12px; margin-bottom: 6px; }
.radar-list-item-name { font-family: var(--font-display); font-size: 1.04rem; font-weight: 600; color: var(--ink); }
.radar-list-item-desc { margin: 0; font-size: 0.88rem; line-height: 1.56; color: var(--ink-soft); max-width: 60ch; }
.radar-list-item-stats { display: flex; gap: 10px 24px; flex-wrap: wrap; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--hair); }
.radar-list-item-stat-num { font-size: 0.98rem; font-weight: 600; color: var(--ink); word-break: break-word; }
.radar-list-item-stat-label { font-size: 0.76rem; color: var(--ink-softer); margin-top: 1px; }

/* RADAR BREADCRUMB (radar detail pages) — keeps the parent product visible
   even when a radar page is reached directly, e.g. a shared link. */
.radar-breadcrumb { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 7px; font-size: 0.78rem; color: var(--ink-softer); margin-bottom: 16px; }
.radar-breadcrumb a { color: var(--ink-softer); }
.radar-breadcrumb a:hover { color: var(--accent-text); }

/* FOOTER NAV */

/* TAG (shared: claim-window status — radar page panels + results table) */
.jd-tag { display: inline-flex; align-items: center; flex: none; padding: 3px 10px; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.02em; text-transform: none; border-radius: 999px; }
.jd-tag--open { color: var(--ink); background: var(--teal); }
.jd-tag--closed { color: var(--ink-softer); background: var(--mist); }
.jd-tag--pending { color: var(--ink-soft); background: transparent; border: 1px solid var(--gold); }

/* FACT STRIP (shared: home methodology strip + radar page legal terms) */
.fact-strip { display: flex; flex-wrap: wrap; margin: 0 0 24px 0; padding: 0 22px; background: var(--surface); border: 1px solid var(--hair); border-radius: var(--r-md); }
.fact-item {
  display: flex;
  align-items: baseline;
  gap: 9px;
  flex: 1 1 280px;
  padding: 13px 0;
  font-size: 0.84rem;
  color: var(--ink-softer);
  border-top: 1px solid var(--hair);
}
.fact-item:nth-child(-n+3) { border-top: none; }
.fact-item .dot { width: 6px; height: 6px; border-radius: 50%; flex: none; background: var(--accent); position: relative; top: -1px; }
.fact-num { font-weight: 700; color: var(--ink); flex: none; }

@media (max-width: 640px) {
  .fact-item { flex-basis: 100%; }
  .fact-item:nth-child(-n+3) { border-top: 1px solid var(--hair); }
  .fact-item:first-child { border-top: none; }
}


/* RADARS INDEX (/radares/) */
.radars-index { padding-top: clamp(56px, 8vw, 100px); padding-bottom: clamp(56px, 8vw, 100px); }
.radars-index h1 { margin: 0 0 18px 0; font-size: clamp(2rem, 3vw + 0.6rem, 2.8rem); line-height: 1.1; font-weight: 600; letter-spacing: -0.02em; }
.radars-index .lede { margin-bottom: 8px; max-width: 62ch; }

/* PROOF */
.proof { background: var(--navy); color: var(--on-navy); padding-top: clamp(64px, 8vw, 100px); padding-bottom: clamp(64px, 8vw, 100px); }
.proof-inner { text-align: center; max-width: 720px; margin: 0 auto; }
.proof-num { font-size: clamp(2.4rem, 5vw, 4rem); font-weight: 600; letter-spacing: -0.02em; color: var(--teal); line-height: 1; margin-bottom: 18px; }
.proof-text { margin: 0; font-size: 1.05rem; line-height: 1.55; color: var(--on-navy-soft); }


/* FOOTER */
.footer { background: var(--navy); color: var(--on-navy-soft); padding-top: 48px; padding-bottom: 40px; --wm-halo: var(--navy); }
.footer .wordmark { color: var(--on-navy); }

.footer-desc { margin: 0; font-size: 0.82rem; line-height: 1.55; color: var(--on-navy-soft); }
.footer-copy { font-size: 0.8rem; color: var(--on-navy-soft); }

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-graphic { display: none; }

  /* The hero's full-width stacked search stays; the compact bar used on
     every results/radar page keeps its single-row layout on mobile too —
     stacking it here would turn a slim utility bar into two full rows at
     the very top of a page whose entire point is the content below it. */
  .search-form:not(.search-form--compact) { flex-direction: column; max-width: none; }
  .search-form:not(.search-form--compact) .search-form-input,
  .search-form:not(.search-form--compact) .search-form-btn { width: 100%; }

  /* Secondary, low-value chrome — reclaim the vertical space on a phone. */
  .masthead { display: none; }

  .nav-toggle { display: flex; width: 44px; height: 44px; }
  .nav-links {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--hair);
    box-shadow: var(--shadow-md);
    padding: 4px 20px 20px;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.25s ease, opacity 0.2s ease;
  }
  .nav-links a { padding: 13px 2px; font-size: 1rem; }
  .nav-toggle-input:checked ~ .nav-links { max-height: 420px; opacity: 1; }
  .nav-cta { display: none; }

  }

/* NAV CTA + FOOTER (dynamic pages) */
.nav-cta { height: 38px; padding: 0 16px; font-size: 0.86rem; }

/* RADAR CARD DETAILS */
.radar-facts { margin: 12px 0 0; display: grid; gap: 8px 28px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.radar-facts dt { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-softer); }
.radar-facts dd { margin: 2px 0 0; font-size: 0.86rem; line-height: 1.5; color: var(--ink-soft); }
.radar-cta { display: inline-block; margin-top: 14px; font-size: 0.88rem; font-weight: 700; color: var(--accent-text); }

/* LOGO MARK — ring follows the text colour; dot is Premium Teal */
.wm-halo { fill: var(--wm-halo, #ffffff); }
.wm-dot { fill: var(--teal); }

/* SEARCH — focus, progress and loading states */
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.search-form { position: relative; }
.search-progress { position: absolute; left: 0; right: 0; bottom: -8px; height: 3px; border-radius: 3px; overflow: hidden; opacity: 0; transition: opacity 0.15s ease; }
.search-progress::after { content: ""; position: absolute; inset: 0 auto 0 0; width: 35%; background: var(--teal); border-radius: 3px; animation: search-slide 1.1s ease-in-out infinite; }
.search-form.is-loading .search-progress { opacity: 1; }
.search-form.is-loading .search-form-btn { pointer-events: none; opacity: 0.85; }
.btn-spinner { display: none; width: 14px; height: 14px; border: 2px solid rgba(16, 31, 53, 0.3); border-top-color: var(--navy); border-radius: 50%; animation: spin 0.7s linear infinite; }
.search-form.is-loading .btn-spinner { display: inline-block; }
@keyframes search-slide { 0% { transform: translateX(-100%); } 100% { transform: translateX(300%); } }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .search-progress::after, .btn-spinner { animation-duration: 3s; }
}

/* FOOTER */
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1.3fr 1.3fr; gap: 40px 32px; align-items: start; }
.footer-brand { display: flex; flex-direction: column; gap: 14px; max-width: 360px; }
.footer-col-title { margin: 0 0 14px; font-size: 0.74rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--on-navy); }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-col a { font-size: 0.9rem; color: var(--on-navy-soft); overflow-wrap: anywhere; }
.footer-col a:hover { color: var(--teal); }
.footer-bottom { display: flex; justify-content: space-between; align-items: baseline; gap: 12px 32px; flex-wrap: wrap; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--hair-on-navy); }
.footer-independence { margin: 0; max-width: 72ch; font-size: 0.8rem; line-height: 1.55; color: var(--on-navy-soft); }
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; max-width: none; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}
