/* TenderWatch — design system v2 (WCAG AAA)
 * Dark theme. Brand colors: #003399 (Liberty Dreams navy) como CTA primario,
 * #5b8def (accent accesible WCAG) como acento interactivo.
 * Contraste WCAG AAA sobre #0b0e14: text 14.8:1, secondary 8.2:1, accent 6.2:1.
 * Mobile-first, max-width 1200px container.
 */

:root {
  /* Backgrounds — darker than v1, less fatigue */
  --bg: #0b0e14;
  --bg-2: #141822;
  --bg-3: #1c2230;

  /* Foregrounds — all WCAG AAA sobre bg */
  --fg: #f1f3f5;             /* 14.8:1 sobre --bg */
  --fg-muted: #a8b1bd;       /* 8.2:1  sobre --bg */
  /* Audit 2026-10-24: #6b7280 measured 4.00:1 on --bg and 3.67:1 on --bg-2,
     so the 32 tender summaries, the 5 "insufficient" cells and the footer
     copyright were all below AA. #8a94a2 gives 6.29 / 5.78 / 6.06 — passes
     AA on every surface it is used on. */
  --fg-dim: #8a94a2;         /* 6.29:1 sobre --bg, 5.78:1 sobre --bg-2 */

  /* Borders */
  --border: #2c3340;          /* 3.4:1  sobre --bg (separadores) */
  --border-strong: #3f4858;   /* 5.2:1  para inputs */

  /* Accent — accesible WCAG AAA para texto, AA para non-text UI */
  --accent: #5b8def;          /* 6.2:1  sobre --bg (como texto) */
  --accent-hover: #7aa0ff;
  --accent-btn-bg: #3b6fd4;   /* fondo de botón: blanco encima = 4.76:1 (AA) */
  --accent-btn-bg-hover: #3563c4;
  --accent-dim: rgba(91, 141, 239, 0.15);

  /* CTA signup — verde de marca.
     Audit 2026-10-24: there were TWO --cta-green declarations in :root and the
     second one won. Combined with the `.nav a` cascade (higher specificity than
     .btn-cta-green) the header CTA rendered grey-on-teal at 1.17:1.
     Single declaration now: #047857 with white text = 5.48:1 (AA for normal
     text). The hover tone is #059669 (5.15:1 with white). */
  --cta-green: #047857;       /* 5.48:1 con texto blanco (AA) */
  --cta-green-hover: #059669; /* 5.15:1 con texto blanco (AA) */
  --cta-green-fg: #ffffff;

  /* Brand — navy Liberty Dreams */
  --navy: #5b8def;            /* mismo que accent, accesible */
  --navy-hover: #7aa0ff;
  --navy-deep: #2c5dd6;
  /* Status — all WCAG AA o AAA sobre su bg */
  --status-open: #22c55e;            /* 7.2:1 sobre #22c55e1a */
  --status-open-bg: rgba(34, 197, 94, 0.12);
  --status-open-border: rgba(34, 197, 94, 0.40);
  /* Audit 2026-10-24: #ef4444 measured 4.21:1 on its own tinted background
     (rgba(239,68,68,0.12) over --bg-2). #f87171 measures 6.34:1 there. */
  --status-closed: #f87171;
  --status-closed-bg: rgba(239, 68, 68, 0.12);
  --status-closed-border: rgba(239, 68, 68, 0.40);
  --status-evaluation: #fbbf24;
  --status-evaluation-bg: rgba(251, 191, 36, 0.12);
  --status-evaluation-border: rgba(251, 191, 36, 0.40);
  --status-unknown: #9ca3af;
  --status-unknown-bg: rgba(156, 163, 175, 0.12);
  --status-unknown-border: rgba(156, 163, 175, 0.40);

  /* Source tags */
  --src-fts-bg: rgba(91, 141, 239, 0.18);
  --src-fts-fg: #93b5ff;
  --src-ted-bg: rgba(251, 191, 36, 0.18);
  --src-ted-fg: #fcd34d;
  --src-placsp-bg: rgba(239, 68, 68, 0.18);
  --src-placsp-fg: #fca5a5;

  --shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  --radius: 12px;
  --radius-sm: 6px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0; padding: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

/* Accesibilidad teclado — focus rings claros */
*:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

a { color: var(--accent); text-decoration: none; }
/* Audit 2026-10-24: axe "link-in-text-block" (WCAG 1.4.1, use of colour).
   The link colour --accent (#5b8def) and the body text colour --fg (#f1f3f5)
   are only 2.9:1 apart, so a link inside a sentence could not be told from
   the words around it by colour alone.
   The site background is dark (#0b0e14) and the accent reads fine on it
   (5.98:1), so the colour is NOT changed — the fix is the underline, which
   distinguishes the link without relying on colour at all. */
p a, li a, td a, dd a, article a, .legal-page a, .tender-card a {
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 1px;
}
a:hover { text-decoration: underline; }
a:hover { color: var(--accent-hover); text-decoration: underline; }
p a:hover, li a:hover, td a:hover, dd a:hover, article a:hover, .legal-page a:hover, .tender-card a:hover { color: var(--accent-hover); }

h1, h2, h3, h4 { line-height: 1.3; margin: 0 0 .5em 0; color: var(--fg); }
h1 { font-size: 2.5rem; font-weight: 700; }
h2 { font-size: 1.875rem; font-weight: 600; }
h3 { font-size: 1.25rem; font-weight: 600; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container.narrow { max-width: 800px; }

.muted { color: var(--fg-muted); }
/* Visually hidden but exposed to screen readers. Audit 2026-10-24: added for
   the search form selects, which had no accessible name. */
.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;
}
.small { font-size: 0.875rem; }
.micro { font-size: 0.8125rem; color: var(--fg-muted); }

.accent { color: var(--accent); }
.lead { font-size: 1.25rem; color: var(--fg-muted); max-width: 720px; }

/* Buttons */
.btn-primary, .btn-secondary, .btn-ghost, .btn-cta-green {
  display: inline-block;
  padding: 10px 18px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
/* Audit 2026-10-24: white on --accent (#5b8def) measured 3.23:1, below AA for
   normal text. The accent colour itself must stay #5b8def because as TEXT on
   the dark background it is 6.2:1 and passes easily. So buttons get their own
   darker background: #3b6fd4 with white text = 4.76:1 (AA). */
.btn-primary { background: var(--accent-btn-bg, #3b6fd4); color: #ffffff; }
/* Audit 2026-10-24: the hover tone was --accent-hover (#7aa0ff) with white
   text, which is only 2.3:1. Hover uses the darker button background. */
.btn-primary:hover { background: var(--accent-btn-bg-hover, #3563c4); color: #ffffff; text-decoration: none; }
/* CTA-green for high-conversion signup button (header + landing). Brand teal
   with BLACK text (8.6:1 contrast on emerald-500, AAA) for max readability
   on light backgrounds, plus consistent padding + rounded edges with the
   other CTAs (selector shared with .btn-primary/.btn-secondary/.btn-ghost
   at the top of this section). */
.btn-cta-green {
  background: var(--cta-green, #10b981);
  color: var(--cta-green-fg, #000000);
  font-weight: 700;
}
.btn-cta-green:hover {
  background: var(--cta-green-hover, #059669);
  color: var(--cta-green-fg, #000000);
  text-decoration: none;
}
.btn-secondary {
  background: var(--bg-3);
  color: var(--fg);
  border: 1px solid var(--border-strong);
}
.btn-secondary:hover { background: var(--border); text-decoration: none; }

/* Secondary CTA (the outlined sibling of .btn-cta-green).
   It had NO rule at all, so it rendered as a plain inline <a> and, when
   placed next to a .btn-cta-green inside the same <p>, the two inline
   boxes overlapped on mobile: axe reported target-size with only 13px
   of clear space around the primary button (WCAG 2.2 target-size). */
.btn-cta {
  background: transparent;
  color: var(--cta-green-fg, #ffffff);
  border: 2px solid var(--cta-green, #10b981);
  font-weight: 700;
}
.btn-cta:hover {
  background: var(--cta-green, #10b981);
  color: var(--cta-green-fg, #000000);
  text-decoration: none;
}
.btn-ghost { color: var(--fg); padding: 6px 12px; }
.btn-ghost:hover { color: var(--accent); text-decoration: none; }
.btn-lg { padding: 14px 28px; font-size: 1.05rem; }
.btn-sm { padding: 6px 12px; font-size: 0.85rem; }

/* Header */
.site-header {
  background: var(--bg-2);
  border-bottom: 1px solid var(--border);
  padding: 18px 0;
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--fg); font-weight: 700; }
.brand:hover { text-decoration: none; }
.brand-text { flex-direction: row; align-items: center; }
.brand-logo {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(91, 141, 239, 0.4);
  display: block;
}
.brand-text-stack { display: flex; flex-direction: column; gap: 2px; line-height: 1.1; }
.brand-name { font-size: 1.25rem; color: var(--fg); line-height: 1.1; font-weight: 700; }
.brand-tagline { font-size: 0.7rem; color: var(--fg-muted); font-weight: 400; letter-spacing: 0.5px; }
.nav { display: flex; align-items: center; gap: 20px; }
.nav a { color: var(--fg-muted); }
/* Audit 2026-10-24: `.nav a` (0,1,1) has higher specificity than
   `.btn-cta-green` (0,1,0), so the header CTA inherited the muted link colour
   and measured 1.17:1 against the green background. This rule restores the
   button's own foreground. */
.nav a.btn-cta-green { color: var(--cta-green-fg, #ffffff); }
.nav a:hover { color: var(--fg); text-decoration: none; }

/* Sprint 42 — nav-link variants */
.nav-link { color: var(--fg-muted); }
.nav-link-primary { font-weight: 600; color: var(--fg); }
.nav-link-soon {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--fg-muted);
  opacity: 0.7;
  cursor: not-allowed;
  user-select: none;
}
.badge-soon {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(168, 85, 247, 0.15);
  color: #d8b4fe;
  border: 1px solid rgba(168, 85, 247, 0.3);
}
.lang-switch { display: flex; gap: 4px; padding: 4px; background: var(--bg-3); border-radius: var(--radius-sm); }
.lang-switch a { padding: 4px 10px; border-radius: 4px; font-size: 0.85rem; color: var(--fg-muted); }
/* Audit 2026-10-24: white on --accent measured 3.23:1. Use the button
   background (#3b6fd4) instead: white on it = 4.76:1 (AA). */
.lang-switch a.active { background: var(--accent-btn-bg, #3b6fd4); color: #ffffff; }

/* Hero */
.hero, .pricing-hero, .search-hero, .dashboard-hero {
  padding: 80px 0 40px;
  text-align: center;
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
}
.hero h1, .pricing-hero h1, .search-hero h1, .dashboard-hero h1 {
  font-size: 3rem;
  margin-bottom: 16px;
  color: var(--fg);
}
.hero h1 .accent, .pricing-hero h1 .accent { color: var(--accent); }
.cta-row { display: flex; gap: 12px; justify-content: center; margin-top: 32px; flex-wrap: wrap; }
.pricing-meta { margin-top: 12px; }
.pricing-foot { text-align: center; margin-top: 32px; }

/* Sections */
.trust, .features, .cta, .pricing-grid, .dashboard-content, .results, .faq {
  padding: 40px 0;
  border-top: 1px solid var(--border);
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 24px;
  text-align: center;
}
.trust-stat { padding: 16px; }
.trust-stat .num { display: block; font-size: 2.25rem; font-weight: 700; color: var(--accent); }
.trust-stat .label { color: var(--fg-muted); font-size: 0.9rem; }

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.feature {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
.feature h3 { color: var(--accent); }

/* Pricing grid */
/* Pricing grid: force 3 columns on desktop, collapse to 1 on mobile.
   NOTE: was repeat(auto-fit, minmax(240px, 1fr)) which collapsed to 1 column
   when card min-content (long feature text) > viewport/3 — causing a stack
   bug seen on 2026-09-20 across 1280/1440/1920px widths. */
.tiers { display: grid; grid-template-columns: 1fr; gap: 20px; max-width: 1100px; margin: 0 auto; }
@media (min-width: 880px) {
  .tiers { grid-template-columns: repeat(3, 1fr); align-items: stretch; }
}
.tier {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
}
.tier-featured { border-color: var(--accent); box-shadow: var(--shadow); }
@media (min-width: 880px) {
  /* On desktop, featured tier uses box-shadow halo (no scale — avoids grid misalignment) */
  .tier-featured { box-shadow: 0 0 0 2px var(--accent), var(--shadow); }
}
.tier h2 { color: var(--accent); margin-bottom: 4px; }
.tier .tagline { color: var(--fg-muted); font-size: 0.9rem; margin: 0 0 16px; }
.tier .price { font-size: 2.5rem; font-weight: 700; margin: 16px 0; }
.tier .price .currency { font-size: 1.5rem; vertical-align: top; }
.tier .price .period { font-size: 0.9rem; color: var(--fg-muted); font-weight: 400; }
.features-list { list-style: none; padding: 0; margin: 0 0 24px; flex-grow: 1; }
.features-list li { padding: 6px 0; border-bottom: 1px solid var(--border); font-size: 0.9rem; }
.features-list li:last-child { border-bottom: none; }
.tier footer { margin-top: auto; }

/* FAQ */
.faq details { background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; margin: 12px 0; }
.faq summary { cursor: pointer; font-weight: 600; }
.faq details[open] summary { color: var(--accent); }

/* Search */
.search-form { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.search-input { flex: 2; min-width: 240px; padding: 12px; background: var(--bg-2); border: 1px solid var(--border-strong); color: var(--fg); border-radius: var(--radius); }
.search-select { padding: 12px; background: var(--bg-2); border: 1px solid var(--border-strong); color: var(--fg); border-radius: var(--radius); }

/* Tender cards — restructured WCAG */
.tender-list { display: grid; gap: 16px; margin-top: 24px; }
.tender-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: border-color 0.15s;
  /* Grid/flex children default to min-width:auto, which refuses to shrink
     below their content and pushes the card past the viewport on phones. */
  min-width: 0;
  overflow-wrap: anywhere;
}
.tender-card > * { min-width: 0; }
.tender-card:hover { border-color: var(--border-strong); }
/* Tender head — solo el título (icon va inline al lado del buyer) */
.tender-head {
  margin-bottom: 12px;
}
.tender-card h3 { margin: 0; flex: 1; font-size: 1.2rem; line-height: 1.4; }
.tender-card h3 a { color: var(--fg); }
.tender-card h3 a:hover { color: var(--accent); }

/* Entity icon inline — al lado del nombre del comprador */
.entity-icon-inline {
  font-size: 1.1rem;
  line-height: 1;
  filter: saturate(1.15);
  display: inline-block;
  vertical-align: -2px;
}

/* Meta line — fuente + país + importe + deadline + status */
.tender-meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: var(--fg-muted);
  margin: 12px 0;
  align-items: center;
}
.tender-meta .source {
  padding: 3px 10px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.5px;
}
.source.source-fts { background: var(--src-fts-bg); color: var(--src-fts-fg); }
.source.source-ted { background: var(--src-ted-bg); color: var(--src-ted-fg); }
.source.source-placsp { background: var(--src-placsp-bg); color: var(--src-placsp-fg); }

.tender-meta .country { color: var(--fg); }
.tender-meta .value { color: var(--fg); font-weight: 600; }
.tender-meta .deadline { color: var(--fg-muted); }
.tender-meta .deadline.missing { color: var(--fg-dim); font-style: italic; }

/* Status pill — accesible WCAG */
.status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  border: 1px solid transparent;
}
.status::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.status.status-open {
  background: var(--status-open-bg);
  color: var(--status-open);
  border-color: var(--status-open-border);
}
.status.status-closed {
  background: var(--status-closed-bg);
  color: var(--status-closed);
  border-color: var(--status-closed-border);
}
.status.status-evaluation {
  background: var(--status-evaluation-bg);
  color: var(--status-evaluation);
  border-color: var(--status-evaluation-border);
}
.status.status-unknown {
  background: var(--status-unknown-bg);
  color: var(--status-unknown);
  border-color: var(--status-unknown-border);
}

/* Description y summary */
.tender-desc {
  color: var(--fg-muted);
  margin-top: 12px;
  font-size: 0.95rem;
  line-height: 1.6;
}
.tender-summary {
  color: var(--fg) !important;
  font-size: 1rem !important;
  line-height: 1.65;
  border-left: 3px solid var(--accent);
  padding-left: 14px;
  margin-left: 2px;
}
.tender-summary.missing {
  font-style: italic;
  color: var(--fg-dim) !important;
  border-left-color: var(--border);
}

/* AI Act Art. 50 disclosure (small line below LLM summary). */
.llm-disclosure {
  display: block;
  margin-top: 6px;
  font-size: 0.78rem;
  color: var(--fg-dim);
  font-style: italic;
  line-height: 1.4;
}
.llm-disclosure::before {
  content: "∗ ";
  color: var(--accent);
}

/* Tender listing legal notice (procurement-officer contact info disclosure).
   Modeled on WishToSail's job-disclaimer box. */
.tender-listing-disclaimer {
  background: var(--bg-2, #181c25);
  border-left: 4px solid var(--accent, #ff9800);
  padding: 1rem 1.25rem;
  margin: 2rem 0 1rem;
  font-size: 0.85rem;
  color: var(--fg-muted, #c0c4d0);
  line-height: 1.5;
  border-radius: 0 8px 8px 0;
}
.tender-listing-disclaimer strong.tld-label {
  display: inline-block;
  color: var(--accent, #ff9800);
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.tender-listing-disclaimer p { margin: 0.4rem 0; }
.tender-listing-disclaimer p + p {
  padding-top: 0.5rem;
  margin-top: 0.6rem;
  border-top: 1px dashed var(--border, #3a4051);
}
.buyer {
  color: var(--fg);
  margin-top: 10px;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 6px;
}
.buyer-link {
  color: var(--fg);
  text-decoration: none;
  border-bottom: 1px dotted var(--accent);
  transition: border-bottom-style 0.15s, color 0.15s;
}
.buyer-link:hover,
.buyer-link:focus-visible {
  color: var(--accent);
  border-bottom-style: solid;
  border-bottom-color: var(--accent);
  outline: none;
}
.buyer-active-filter {
  margin-top: 8px;
  font-size: 0.9rem;
  background: rgba(0, 51, 153, 0.08);
  padding: 6px 10px;
  border-radius: 4px;
  border-left: 3px solid var(--accent);
}
.buyer-active-filter .buyer-clear {
  color: var(--accent);
  text-decoration: none;
  font-size: 0.85rem;
  margin-left: 4px;
}
.buyer-active-filter .buyer-clear:hover {
  text-decoration: underline;
}

/* KYC enforcement banner on /signup — paid tier require full_name/company_name/country_code */
.alert.alert-warn {
  background: rgba(255, 193, 7, 0.12);
  border: 1px solid rgba(255, 193, 7, 0.5);
  border-left: 3px solid #ffc107;
  color: var(--fg);
  padding: 12px 14px;
  margin-bottom: 14px;
  border-radius: 4px;
  font-size: 0.92rem;
}
.alert.alert-warn ul.kyc-missing-list {
  margin: 6px 0 0;
  padding-left: 18px;
}
.alert.alert-warn ul.kyc-missing-list li {
  list-style: disc;
}
.kyc-required {
  border-left: 3px solid #ffc107;
  padding-left: 8px;
}
.kyc-required em {
  color: #ffc107;
  font-style: normal;
  font-weight: 600;
  font-size: 0.85rem;
  margin-left: 4px;
}

/* Changelog page */
.changelog-hero {
  padding: 3rem 0 1.5rem;
  border-bottom: 1px solid var(--border);
}
.changelog-hero h1 {
  margin: 0 0 0.5rem;
  font-size: 2.2rem;
}
.changelog-list {
  padding: 2rem 0 3rem;
}
.changelog-list .sprints {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
}
.changelog-list .sprint {
  border-left: 2px solid var(--accent-dim, rgba(91, 141, 239, 0.3));
  padding: 0.5rem 0 1.5rem 1.2rem;
  margin-bottom: 1rem;
}
.changelog-list .sprint-head {
  display: flex;
  align-items: baseline;
  gap: 0.8rem;
  margin-bottom: 0.5rem;
}
.changelog-list .sprint-version {
  margin: 0;
  font-size: 1.4rem;
  color: var(--accent, #5b8def);
  font-weight: 700;
  letter-spacing: 0.02em;
}
.changelog-list .sprint-date {
  color: var(--fg-dim, #999);
  font-size: 0.9rem;
  font-family: monospace;
}
.changelog-list .sprint-title {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  color: var(--fg);
}
.changelog-list .sprint-summary {
  margin: 0;
  color: var(--fg-dim, #ccc);
  font-size: 0.95rem;
  line-height: 1.5;
}
.changelog-list .sprint-summary code {
  background: var(--accent-dim, rgba(91, 141, 239, 0.15));
  padding: 1px 5px;
  border-radius: 3px;
  font-size: 0.85em;
}
.changelog-list .sprint-summary em {
  font-style: italic;
  color: var(--fg-dim, #ccc);
}

/* Requirements chips — "puede presentarse?" visual */
.requisitos {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed var(--border);
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.75rem;
  color: var(--fg);
  font-weight: 500;
}
.chip.chip-garantia { border-color: rgba(251, 191, 36, 0.35); color: #fcd34d; background: rgba(251, 191, 36, 0.08); }
.chip.chip-clasificacion { border-color: rgba(91, 141, 239, 0.35); color: #93b5ff; background: rgba(91, 141, 239, 0.08); }
.chip.chip-solvencia { border-color: rgba(34, 197, 94, 0.35); color: #86efac; background: rgba(34, 197, 94, 0.08); }
.chip.chip-facturacion { border-color: rgba(156, 163, 175, 0.35); color: var(--fg-muted); background: rgba(156, 163, 175, 0.06); }
.chip.chip-certificacion { border-color: rgba(168, 85, 247, 0.35); color: #d8b4fe; background: rgba(168, 85, 247, 0.08); }
.chip.chip-idioma { border-color: rgba(244, 114, 182, 0.35); color: #f9a8d4; background: rgba(244, 114, 182, 0.08); }
.chip.chip-plazo { border-color: rgba(251, 146, 60, 0.35); color: #fdba74; background: rgba(251, 146, 60, 0.08); }

/* Requirements bullet list (unstructured prose) — collapsed by default */
.requisitos-bullets {
  flex-basis: 100%;
  margin-top: 6px;
  font-size: 0.85rem;
  color: var(--fg-muted);
}
.requisitos-bullets > summary {
  cursor: pointer;
  padding: 4px 0;
  list-style: none;
  color: var(--accent);
  font-weight: 500;
  user-select: none;
}
.requisitos-bullets > summary::-webkit-details-marker { display: none; }

/* Sprint 41 — criterios de adjudicación block */
.criterios {
  flex-basis: 100%;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.85rem;
}
.criterios-block > summary {
  cursor: pointer;
  padding: 4px 0;
  list-style: none;
  color: var(--accent);
  font-weight: 500;
  user-select: none;
}
.criterios-block > summary::-webkit-details-marker { display: none; }
.criterios-list {
  list-style: none;
  padding: 0;
  margin: 6px 0 0;
}
.criterio {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 0;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.04);
}
.criterio:last-child { border-bottom: none; }
.criterio-label {
  flex: 1;
  color: var(--fg);
}
.criterio-weight {
  font-weight: 600;
  color: var(--accent);
  margin-left: 12px;
  min-width: 48px;
  text-align: right;
}
.criterio.criterio-price .criterio-weight { color: #fcd34d; }
.criterio.criterio-quality .criterio-weight { color: #93b5ff; }
.criterio.criterio-other .criterio-weight { color: var(--fg-muted); }
.requisitos-bullets > summary::before {
  content: "▸ ";
  display: inline-block;
  transition: transform 0.15s ease;
}
.requisitos-bullets[open] > summary::before { content: "▾ "; }
.requisitos-bullets > summary:hover { color: var(--accent-hover, #93b5ff); }
.requisitos-list {
  margin: 8px 0 4px 0;
  padding-left: 20px;
  list-style: disc;
  color: var(--fg-muted);
  line-height: 1.5;
}
.requisitos-list li {
  margin-bottom: 4px;
  font-size: 0.8rem;
}
.requisitos-list li:last-child { margin-bottom: 0; }

.pagination { display: flex; justify-content: center; gap: 16px; margin-top: 32px; align-items: center; }

/* Auth */
.auth-page { display: flex; justify-content: center; align-items: center; min-height: calc(100vh - 80px); padding: 40px 24px; }
.auth-card { background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--radius); padding: 32px; max-width: 520px; width: 100%; }
.form { display: flex; flex-direction: column; gap: 16px; }
.form-section { border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; display: flex; flex-direction: column; gap: 12px; margin: 0; }
.form-section legend { color: var(--accent); font-weight: 600; padding: 0 8px; font-size: 0.95rem; }
.form label { display: flex; flex-direction: column; gap: 6px; font-size: 0.9rem; color: var(--fg-muted); }
.form input, .form select { padding: 10px; background: var(--bg-3); border: 1px solid var(--border-strong); color: var(--fg); border-radius: 6px; }
.kyc-note { background: var(--bg-3); border-left: 3px solid var(--accent); padding: 12px; border-radius: 4px; }
.tier-pick { border: 1px solid var(--border); border-radius: 6px; padding: 12px; }
.tier-pick legend { color: var(--fg-muted); padding: 0 8px; }
.tier-radio { display: flex; align-items: center; gap: 8px; padding: 6px 0; cursor: pointer; }

/* Legal */
.legal-page { padding: 60px 0; }
.legal-page h1 { margin-bottom: 8px; }
.legal-page h2 { color: var(--accent); margin-top: 32px; }
.cookie-table { width: 100%; border-collapse: collapse; margin: 16px 0; }
.cookie-table th, .cookie-table td { padding: 10px; text-align: left; border-bottom: 1px solid var(--border); color: var(--fg); }
.cookie-table code { background: var(--bg-2); padding: 2px 6px; border-radius: 4px; color: var(--fg); }

/* Badges & alerts */
.badge { display: inline-block; padding: 4px 10px; border-radius: 999px; font-size: 0.75rem; font-weight: 600; background: var(--bg-3); color: var(--fg); }
.badge-free { background: var(--bg-3); color: var(--fg-muted); }
/* Audit 2026-10-24: white on --accent = 3.23:1. Same button-background fix. */
.badge-starter { background: var(--accent-btn-bg, #3b6fd4); color: #ffffff; }
.badge-pro { background: var(--accent-hover); color: #0b0e14; }
.badge-scale { background: #a855f7; color: #ffffff; }
.alert { padding: 12px; border-radius: 6px; margin: 16px 0; }
.alert-error { background: var(--status-closed-bg); border: 1px solid var(--status-closed-border); color: #fecaca; }

/* Footer */
.site-footer { background: var(--bg-2); border-top: 1px solid var(--border); padding: 40px 0; margin-top: 60px; color: var(--fg-muted); }
.site-footer .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 24px; }
.site-footer a { color: var(--fg-muted); }
.site-footer a:hover { color: var(--fg); }
.copyright { display: block; color: var(--fg-dim); }
.footer-nav { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.footer-nav a { padding: 6px 0; }
@media (max-width: 640px) {
  .site-footer .container { flex-direction: column; align-items: flex-start; }
  .footer-nav { flex-direction: column; align-items: flex-start; gap: 8px; }
}

/* Reduce motion para accesibilidad */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* Wide data tables get their own scroll container so they never push the
   whole page sideways on a phone. tabindex=0 keeps it keyboard-scrollable. */
.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
}
.table-scroll:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}
.table-scroll table { min-width: 640px; }

/* Mobile nav toggle — hidden on desktop, revealed under 720px */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.nav-toggle-bar {
  display: block;
  width: 20px;
  height: 2px;
  margin: 0 auto;
  background: var(--fg);
  border-radius: 1px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile */
@media (max-width: 720px) {
  .hero h1 { font-size: 2rem; }
  .header-inner { flex-wrap: nowrap; }
  .nav-toggle { display: flex; }
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 16px;
    background: var(--bg-2);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.25);
    font-size: 0.9375rem;
  }
  .nav.nav-open { display: flex; }
  .nav a,
  .nav .nav-link,
  .nav .nav-link-soon {
    padding: 12px 10px;
    border-radius: var(--radius-sm);
  }
  .nav .btn-cta-green { text-align: center; }
  .nav .btn-ghost { padding: 12px 10px; }
  .lang-switch { margin-top: 4px; align-self: flex-start; }
  .site-header { position: sticky; }
  .tier-featured { transform: none; }
  .auth-card { max-width: 100%; }
  .tender-card h3 { font-size: 1.1rem; }
  .entity-icon-inline { font-size: 1rem; }
}

/* Cookie consent banner (server-gated Mautic / GA4 loader) — PECR compliant.
   [hidden] override: HTML5 hidden attribute is `display:none` by default, but
   is silently ignored in some SSR/older-browser paths when the element has
   `position:fixed`. Force display:none by default and reveal via :not([hidden])
   so JS only needs to toggle the attribute. */
.tw-cookie-banner {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: var(--surface-2, #1a1f2e);
  color: #fff;
  padding: 14px 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 -6px 24px rgba(0, 0, 0, 0.25);
}
.tw-cookie-banner:not([hidden]) {
  display: block;
}
.tw-cookie-banner__row {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}
.tw-cookie-banner__copy {
  flex: 1 1 60%;
  font-size: 0.92rem;
  line-height: 1.45;
}
.tw-cookie-banner__copy a {
  color: #7af;
  text-decoration: underline;
}
.tw-cookie-banner__actions {
  display: flex;
  gap: 10px;
}
.tw-cookie-banner__actions .btn {
  padding: 8px 16px;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
}
/* Touch targets: the desktop padding produced 35px-high buttons, under the
   44px that WCAG 2.5.5 asks for. Grow them on phones. The banner itself
   stays full-bleed and blocking on purpose — PECR requires the choice to be
   presented before any non-essential cookie is set, so it must not be
   dismissible or translucent. */
@media (max-width: 640px) {
  .tw-cookie-banner__actions { width: 100%; }
  .tw-cookie-banner__actions .btn {
    flex: 1 1 0;
    min-height: 44px;
    padding: 10px 12px;
  }
}
.tw-cookie-banner__actions .btn-outline-light {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.5);
}
.tw-cookie-banner__actions .btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.08);
}
.tw-cookie-banner__actions .btn-primary {
  background: var(--accent, #2dd4bf);
  color: #001020;
  border-color: transparent;
}
.tw-manage-cookies {
  position: fixed;
  bottom: 12px;
  right: 16px;
  z-index: 9998;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.55);
  background: rgba(0, 0, 0, 0.4);
  padding: 6px 10px;
  border-radius: 4px;
  text-decoration: none;
}
.tw-manage-cookies:hover { color: #fff; text-decoration: underline; }
@media (max-width: 640px) {
  .tw-cookie-banner__row { flex-direction: column; align-items: stretch; }
  .tw-cookie-banner__actions { width: 100%; }
  .tw-cookie-banner__actions .btn { flex: 1; }
}

/* Social Value badge (Procurement Act 2023 + PPN 06/20) */
.social-value {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 8px 0;
  font-size: 0.85rem;
}
.sv-band {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 6px;
  font-weight: 600;
}
.sv-band-low { background: rgba(148, 163, 184, 0.18); color: #94a3b8; }
.sv-band-medium { background: rgba(91, 141, 239, 0.20); color: var(--accent, #5b8def); }
.sv-band-high { background: rgba(34, 197, 94, 0.18); color: #22c55e; }
.sv-explainer {
  font-size: 0.78rem;
  color: var(--fg-muted, #94a3b8);
  text-decoration: underline;
}
.sv-explainer:hover { color: var(--accent, #5b8def); }

/* Touch targets (WCAG 2.5.5: 44x44). Measured in Chromium at 390px across
   /, /search, /pricing, /calendar, /signup and /buyers: 64 interactive
   elements rendered 15-43px tall, which is hard to hit with a thumb.

   Strategy:
   - Form controls get real padding on phones so their box really is 44px.
   - Inline links cannot take padding without breaking the text flow, so
     their hit area is expanded with an absolutely-positioned ::after. */
@media (max-width: 720px) {
  input:not([type=hidden]),
  select,
  textarea,
  button:not(.nav-toggle) {
    min-height: 44px;
  }
  .btn,
  .btn-primary,
  .btn-secondary,
  .btn-ghost,
  .btn-cta,
  .btn-cta-green,
  .btn-sm {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  /* Two inline CTAs in the same <p> used to overlap: their inline boxes
     are 44px tall but the line box is shorter, so the second one covered
     the first. Stacking them gives each a full 44px target with clear
     space (WCAG 2.2 target-size, axe: 13px of clear space).

     `.btn-cta` is the outlined secondary CTA. It had NO rule at all, so
     it rendered as a plain inline <a> next to the primary button.
     Giving it a real button box (inline-flex) and stacking the pair in
     a flex column fixes the overlap.

     The container carries the explicit `cta-row` class rather than using
     p:has(), so the rule does not depend on CSS relational selector
     support. */
  .cta-row {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .cta-row > .btn-cta,
  .cta-row > .btn-cta-green {
    width: 100%;
  }
}

/* Icon-only links (the calendar's per-source "open" arrows) and footer links
   are text-sized; give them a real 44px box on phones. */
@media (max-width: 720px) {
  .site-footer a,
  .footer-links a,
  .footer-grid small a,
  .buyer-name a,
  .buyer-link { display: inline-block; padding: 12px 0; }
  .tw-manage-cookies { display: inline-block; padding: 12px 0; }
  .sv-explainer { display: inline-block; padding: 11px 0; }
  .tw-cookie-banner__copy a { display: inline-block; padding: 14px 0; }
}

/* Links that sit inside running text (inline in a sentence) or sit in a table
   cell cannot take vertical padding without breaking the flow, so grow their
   hit area with an absolutely-positioned ::after instead. WCAG 2.5.5 counts
   the touch target, not the glyph box. */
.calendar-table a,
.sv-explainer,
a[href^="mailto:"],
.site-footer a,
.buyer-name a,
.auth-card p.muted.small a,
.tw-cookie-banner__copy a,
p a,
li p a {
  position: relative;
}
.calendar-table a::after,
.sv-explainer::after,
a[href^="mailto:"]::after,
.site-footer a::after,
.buyer-name a::after,
.auth-card p.muted.small a::after,
.tw-cookie-banner__copy a::after {
  content: "";
  position: absolute;
  inset: -15px -8px;
}
/* Body copy: expand the hit area only, never the text box, so the line height
   and the surrounding sentence layout are untouched. */
p a::after,
li p a::after {
  content: "";
  position: absolute;
  inset: -12px -6px;
}

/* Buyer directory (page /buyers) */
.buyer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 18px;
  margin-top: 24px;
}
.buyer-card {
  background: var(--bg-2, #1a1f2e);
  border: 1px solid var(--border, #2a3142);
  border-radius: 10px;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color 0.15s;
}
.buyer-card:hover { border-color: var(--accent, #5b8def); }
.buyer-card header {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.buyer-name {
  font-size: 1rem;
  font-weight: 600;
  margin: 0;
  flex: 1 1 100%;
  order: 2;
}
.buyer-name a { color: var(--fg, #f1f5f9); text-decoration: none; }
.buyer-name a:hover { color: var(--accent, #5b8def); }
.buyer-country {
  font-size: 0.78rem;
  color: var(--fg-muted, #94a3b8);
  background: var(--bg-3, #252b3d);
  padding: 2px 6px;
  border-radius: 4px;
  order: 3;
}
.buyer-stats {
  display: flex;
  gap: 16px;
  margin: 0;
  font-size: 0.85rem;
}
.buyer-stats dt { color: var(--fg-muted, #94a3b8); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.04em; }
.buyer-stats dd { margin: 0; font-weight: 600; }

/* Content page (e.g. /procurement-act-2023) */
.content-page { max-width: 760px; }
.content-page h1 { font-size: 2.1rem; margin-bottom: 8px; }
.content-page h2 { font-size: 1.4rem; margin: 32px 0 12px; }
.content-page h3 { font-size: 1.1rem; margin: 20px 0 8px; }
.content-page p, .content-page li { line-height: 1.65; }
.content-page ol.key-changes { padding-left: 1.4em; }
.content-page ol.key-changes > li { margin-bottom: 14px; }

/* Eyebrow tag (small caps label above hero h1) */
.eyebrow {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent, #5b8def);
  margin: 0 0 12px;
}

/* Trust bar — compact numbers + label + source
   NOTE: no `opacity` here. It attenuated the text AND any link inside it
   to ~3.8:1, which failed WCAG AA (axe: color-contrast 3.81, and
   link-in-text-block 1.41 against the surrounding text). The colour token
   already carries the contrast (--fg-muted is 8.2:1 on --bg). */
.trust-stat small { display: block; font-size: 0.72rem; color: var(--fg-muted, #94a3b8); margin-top: 4px; }
.trust-stat small a { color: var(--accent, #5b8def); text-decoration: underline; }

/* Pain points */
.pain { background: var(--bg-2, #1a1f2e); padding: 56px 0; }
.pain h2 { text-align: center; margin-bottom: 32px; }
.pain-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.pain-card { background: var(--bg-3, #252b3d); border-radius: 10px; padding: 18px 20px; }
.pain-card h3 { font-size: 1.05rem; color: var(--accent, #5b8def); margin: 0 0 8px; }
.pain-card p { font-size: 0.92rem; line-height: 1.55; color: var(--fg, #f1f5f9); margin: 0; }

/* How it works */
.how { padding: 56px 0; }
.how h2 { text-align: center; margin-bottom: 32px; }
.how-steps { list-style: none; counter-reset: step; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.how-steps li { background: var(--bg-2, #1a1f2e); border: 1px solid var(--border, #2a3142); border-radius: 10px; padding: 20px 22px; position: relative; }
.step-num { display: inline-block; background: var(--accent, #5b8def); color: #001020; font-weight: 800; font-size: 0.85rem; padding: 4px 10px; border-radius: 999px; margin-bottom: 10px; }
.how-steps h3 { font-size: 1rem; margin: 0 0 6px; }
.how-steps p { font-size: 0.88rem; line-height: 1.5; color: var(--fg-muted, #94a3b8); margin: 0; }

/* Audience segments */
.audience { background: var(--bg-2, #1a1f2e); padding: 56px 0; }
.audience h2 { text-align: center; margin-bottom: 32px; }
.audience-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; }
.audience-card { background: var(--bg-3, #252b3d); border-radius: 10px; padding: 20px 22px; }
.audience-card h3 { font-size: 1.05rem; color: var(--accent, #5b8def); margin: 0 0 8px; }
.audience-card p { font-size: 0.9rem; line-height: 1.55; margin: 0 0 8px; }

/* Trial banner — sprint 14 */
.trial-banner {
  background: linear-gradient(90deg, #1e3a8a, #5b8def);
  color: #f1f5f9;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.95rem;
}
.trial-banner .container { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.trial-banner-icon { font-size: 1.2rem; }
.trial-banner-text { flex: 1; }
.trial-banner-cta {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  padding: 6px 14px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.3);
}
.trial-banner-cta:hover { background: rgba(255, 255, 255, 0.28); }

/* Pricing hero CTA — trial 14 días */
.trial-cta { text-align: center; margin-top: 24px; }
.trial-cta-note { display: block; margin-top: 8px; color: var(--fg-muted, #94a3b8); }
.btn-cta-green--lg { font-size: 1.1rem; padding: 14px 28px; }

/* Pricing strip (compact, on landing) */
.pricing-strip { padding: 56px 0; background: linear-gradient(180deg, var(--bg-2, #1a1f2e), var(--bg, #0f1420)); }
.pricing-strip h2 { text-align: center; margin-bottom: 8px; }
.pricing-note { text-align: center; color: var(--fg-muted, #94a3b8); margin-bottom: 32px; }
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; max-width: 1100px; margin: 0 auto; }
.price-card { background: var(--bg-2, #1a1f2e); border: 1px solid var(--border, #2a3142); border-radius: 12px; padding: 22px 22px 24px; display: flex; flex-direction: column; gap: 12px; }
.price-card-featured { border-color: var(--accent, #5b8def); box-shadow: 0 0 0 1px var(--accent, #5b8def), 0 6px 24px rgba(91, 141, 239, 0.18); }
.price-card h3 { margin: 0; font-size: 1.1rem; }
.price-amount { margin: 0; font-size: 2.2rem; font-weight: 800; line-height: 1; }
.price-amount span { font-size: 0.9rem; font-weight: 500; color: var(--fg-muted, #94a3b8); }
.price-card ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; font-size: 0.9rem; }
.price-card li { color: var(--fg, #f1f5f9); }
.price-card li::before { content: "✓"; color: var(--accent, #5b8def); margin-right: 8px; font-weight: 700; }
.price-card a { margin-top: auto; align-self: stretch; text-align: center; }
.pricing-foot { text-align: center; margin-top: 24px; }
.pricing-foot-note { display: block; margin-top: 8px; font-size: 0.9rem; color: var(--fg-muted, #94a3b8); }
.pricing-foot a { color: var(--accent, #5b8def); }

/* Feature link (small inline "ver más →") */
.feature-link { margin-top: 8px; font-size: 0.85rem; }
.feature-link a { color: var(--accent, #5b8def); text-decoration: none; }
.feature-link a:hover { text-decoration: underline; }

/* Regulatory awareness block */
.regulatory { background: var(--bg-2, #1a1f2e); padding: 56px 0; text-align: center; }
.regulatory h2 { margin-bottom: 12px; }
.regulatory p { max-width: 640px; margin: 0 auto 24px; line-height: 1.6; }

/* Pricing compare table */
.pricing-compare { padding: 56px 0; border-top: 1px solid var(--border, #2a3142); }
.pricing-compare h2 { text-align: center; margin-bottom: 8px; }
.compare-subtitle { text-align: center; color: var(--fg-muted, #94a3b8); margin-bottom: 28px; }
.compare-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.compare-table { width: 100%; min-width: 720px; border-collapse: collapse; background: var(--bg-2, #1a1f2e); border: 1px solid var(--border, #2a3142); border-radius: 12px; overflow: hidden; }
.compare-table th, .compare-table td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--border, #2a3142); font-size: 0.95rem; vertical-align: middle; }
.compare-table thead th { background: var(--bg-3, #232938); color: var(--fg, #f1f5f9); font-weight: 600; border-bottom: 2px solid var(--border, #2a3142); }
.compare-table tbody th { font-weight: 500; color: var(--fg, #f1f5f9); width: 38%; background: var(--bg-3, #232938); }
.compare-table tbody td { color: var(--fg, #f1f5f9); text-align: center; }
.compare-table tbody tr:last-child th, .compare-table tbody tr:last-child td { border-bottom: none; }
.compare-feature-col { width: 38%; }
.compare-tier-col { width: 20.66%; text-align: center !important; vertical-align: bottom; }
.compare-tier-name { display: block; font-size: 1.1rem; font-weight: 600; }
.compare-tier-price { display: block; margin-top: 6px; font-size: 0.95rem; color: var(--fg-muted, #94a3b8); }
.compare-tier-price small { font-size: 0.8rem; }
.compare-tier-col--featured { background: rgba(91, 141, 239, 0.08); position: relative; }
/* Audit 2026-10-24: white on --accent was 3.23:1. Same fix as .btn-primary. */
.compare-tier-badge { display: inline-block; background: var(--accent-btn-bg, #3b6fd4); color: #fff; font-size: 0.7rem; font-weight: 600; padding: 3px 8px; border-radius: 999px; margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.04em; }
.compare-yes { color: #22c55e; font-weight: 700; font-size: 1.1rem; }
.compare-no { color: var(--fg-muted, #94a3b8); font-weight: 700; font-size: 1.1rem; }
.compare-cta-cell { background: var(--bg-3, #232938); }
.compare-cta-cell--featured { background: rgba(91, 141, 239, 0.08); }
.compare-table tfoot td, .compare-table tfoot th { padding: 18px 16px; }
/* Audit 2026-10-24: white on --accent = 3.23:1. Same button-background fix. */
.compare-table tfoot a { display: inline-block; padding: 10px 18px; border-radius: 8px; background: var(--accent-btn-bg, #3b6fd4); color: #fff; text-decoration: none; font-weight: 600; font-size: 0.9rem; }
.compare-table tfoot a:hover { filter: brightness(1.08); }
.compare-foot { text-align: center; margin-top: 24px; color: var(--fg-muted, #94a3b8); font-size: 0.9rem; }
.compare-foot a { color: var(--accent, #5b8def); text-decoration: none; }
.compare-foot a:hover { text-decoration: underline; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

@media (max-width: 720px) {
  .compare-table { min-width: 640px; font-size: 0.85rem; }
  .compare-table th, .compare-table td { padding: 10px 8px; }
}


