@font-face {
  font-family: "Piazzolla Var";
  src: url("../fonts/piazzolla-var.2c05841f5a65.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Public Sans Var";
  src: url("../fonts/publicsans-var.45ac3f4b61c1.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("../fonts/plexmono-500.6708425c446b.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("../fonts/plexmono-600.e71a597e376e.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --ground: #faf6ef;
  --surface: #ffffff;
  --ink: #1c1a17;
  --ink-soft: rgba(28, 26, 23, 0.66);
  --ink-softer: rgba(28, 26, 23, 0.62);
  --hair: rgba(28, 26, 23, 0.13);
  --hair-strong: rgba(28, 26, 23, 0.22);
  --accent: #cccc4b;
  --accent-deep: #cccc4b;
  --accent-text: #6b5e0e;
  --on-accent: #faf6ef;
}

* { 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(--ground);
  color: var(--ink);
  font-family: "Public Sans Var", "Public Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

.serif { font-family: "Piazzolla Var", "Piazzolla", Georgia, serif; }
.mono {
  font-family: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  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 { border-bottom: 1px solid var(--hair); padding-top: 10px; padding-bottom: 10px; }
.masthead-inner {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--ink-softer);
}

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

/* NAV */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 246, 239, 0.92);
  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: "Piazzolla Var", "Piazzolla", Georgia, serif;
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  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: 700;
  border-radius: 6px;
  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: 0 10px 24px rgba(107, 94, 14, 0.28); }
.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 */
.hero { position: relative; padding-top: clamp(56px, 8vw, 104px); padding-bottom: clamp(52px, 7vw, 92px); overflow: hidden; }
.hero-glow {
  position: absolute;
  top: -200px;
  right: -180px;
  width: 640px;
  height: 640px;
  background: radial-gradient(circle, rgba(204, 204, 75, 0.18) 0%, rgba(204, 204, 75, 0) 68%);
  pointer-events: none;
  z-index: 0;
}
.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr 0.85fr; gap: 52px; align-items: center; }
.hero h1 {
  margin: 0 0 22px 0;
  font-size: clamp(2.4rem, 4vw + 0.8rem, 3.9rem);
  line-height: 1.07;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.hero h1 .accent-word { color: var(--accent-text); }
.lede { margin: 0 0 34px 0; font-size: 1.12rem; line-height: 1.56; color: var(--ink-soft); max-width: 46ch; }
/* 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: "IBM Plex Mono", ui-monospace, monospace;
  letter-spacing: 0.02em;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--hair-strong);
  border-radius: 6px;
}
.search-form-input::placeholder { color: var(--ink-softer); font-family: "Public Sans Var", sans-serif; letter-spacing: normal; }
.search-form-input:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 2px; }
.search-form-btn { flex: none; height: 52px; }
.search-form-hint { margin: 10px 0 0; font-size: 0.82rem; color: var(--ink-softer); }
.search-form-trust { margin: 8px 0 0; font-size: 0.68rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent-text); }
.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: 10px;
  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(--ground); }
.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: "Piazzolla Var", "Piazzolla", Georgia, serif; 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 */
.footer-links { display: flex; gap: 22px; flex-wrap: wrap; font-size: 0.84rem; }
.footer-links a { color: var(--ink-softer); }
.footer-links a:hover { color: var(--accent-text); }

/* 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(--accent-deep); }
.jd-tag--closed { color: var(--ink-softer); background: var(--hair); }
.jd-tag--pending { color: var(--ink-soft); background: transparent; border: 1px solid var(--hair-strong); }

/* 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: 10px; }
.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; 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; }
}

/* METHOD (homepage — proof/methodology strip below the hero) */
.method { padding-top: clamp(8px, 1.5vw, 16px); padding-bottom: clamp(48px, 7vw, 84px); }
.method-lede { margin: 0 0 24px 0; font-size: 1rem; line-height: 1.6; color: var(--ink-soft); max-width: 64ch; }

/* 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; }

.section-head { max-width: 60ch; margin-bottom: 52px; }
.section-head h2 {
  margin: 0;
  font-family: "Piazzolla Var", "Piazzolla", Georgia, serif;
  font-size: clamp(1.8rem, 2vw + 1rem, 2.5rem);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.16;
  color: var(--ink);
}

/* STEPS */
.how { padding-top: clamp(68px, 9vw, 120px); padding-bottom: clamp(68px, 9vw, 120px); }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; }
.step { padding: 4px 36px; border-left: 1px solid var(--hair); }
.step:first-child { border-left: none; padding-left: 0; }
.step-num { font-size: 0.95rem; font-weight: 600; color: var(--accent-deep); margin-bottom: 24px; }
.step-icon { margin-bottom: 20px; color: var(--ink); }
.step h3 { margin: 0 0 12px 0; font-size: 1.15rem; font-weight: 700; color: var(--ink); letter-spacing: -0.005em; }
.step p { margin: 0; font-size: 0.97rem; line-height: 1.62; color: var(--ink-soft); }

/* TRUST */
.trust { padding-top: clamp(68px, 9vw, 120px); padding-bottom: clamp(68px, 9vw, 120px); background: var(--surface); border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair); }
.trust-inner { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: 60px; align-items: center; }
.trust-copy h2 {
  margin: 0 0 26px 0;
  font-family: "Piazzolla Var", "Piazzolla", Georgia, serif;
  font-size: clamp(1.8rem, 2vw + 1rem, 2.5rem);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.16;
  color: var(--ink);
}
.principles { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 20px; }
.principles li { font-size: 1rem; line-height: 1.62; color: var(--ink-soft); padding-top: 20px; border-top: 1px solid var(--hair); }
.principles li:first-child { padding-top: 0; border-top: none; }
.principles strong { color: var(--ink); font-weight: 700; }
.trust-visual { display: flex; justify-content: center; }
.trust-visual svg { width: 100%; max-width: 460px; height: auto; }

/* PROOF */
.proof { background: var(--accent-deep); 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.01em; color: var(--ink); line-height: 1; margin-bottom: 18px; }
.proof-text { margin: 0; font-size: 1.05rem; line-height: 1.55; color: rgba(28, 26, 23, 0.72); }

/* CTA */
.cta { padding-top: clamp(84px, 10vw, 132px); padding-bottom: clamp(84px, 10vw, 132px); text-align: center; }
.cta h2 {
  margin: 0 auto 18px auto;
  max-width: 26ch;
  font-family: "Piazzolla Var", "Piazzolla", Georgia, serif;
  font-size: clamp(1.8rem, 2.4vw + 1rem, 2.7rem);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.18;
  color: var(--ink);
}
.cta p { margin: 0 auto 32px auto; max-width: 48ch; font-size: 1.03rem; line-height: 1.6; color: var(--ink-soft); }

/* FOOTER */
.footer { border-top: 1px solid var(--hair); padding-top: 36px; padding-bottom: 36px; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 22px; flex-wrap: wrap; }
.footer-brand { display: flex; flex-direction: column; gap: 10px; max-width: 340px; }
.footer-desc { margin: 0; font-size: 0.82rem; line-height: 1.55; color: var(--ink-softer); }
.footer-meta { display: flex; gap: 26px; flex-wrap: wrap; font-size: 0.84rem; color: var(--ink-softer); }
.footer-copy { font-size: 0.8rem; color: var(--ink-softer); }

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-graphic { display: none; }
  .trust-inner { grid-template-columns: 1fr; }
  .trust-visual { order: -1; }
  .steps { grid-template-columns: 1fr; gap: 36px; }
  .step { border-left: none; padding-left: 0; border-top: 1px solid var(--hair); padding-top: 30px; }
  .step:first-child { border-top: none; padding-top: 0; }

  /* 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(--ground);
    border-bottom: 1px solid var(--hair);
    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: 220px; opacity: 1; }

  .footer-inner { flex-direction: column; align-items: flex-start; }
}
