/* ==========================================================================
   Mosaico Público — styles.css
   Vanilla CSS, mobile-first, WCAG-AA. No build step.
   Brand (sober/editorial, derived from the logo's green→blue mosaic "M"):
     warm off-white ground #f7f5f1 · deep slate ink #1f242b
     slate-blue accent #3f5d8a (hover #314a70, tint #eef2f7) · muted logo green #4e8a55 (whisper only)
   Headings: Fraunces (refined serif) · Body/UI: Inter
   ========================================================================== */

/* ----- Design tokens --------------------------------------------------- */
:root {
  /* Brand palette ------------------------------------------------------- */
  --ink: #1f242b;          /* deep slate ink (headings, primary text) */
  --magenta: #3f5d8a;      /* PRIMARY ACCENT — slate-blue (links, buttons, focus, rules) */
  --magenta-600: #314a70;  /* darker slate-blue for hover (keeps AA on the warm ground) */
  --magenta-050: #eef2f7;  /* soft slate-blue tint for surfaces/callouts */
  --green: #4e8a55;        /* SECONDARY — muted logo green, decorative/large only */
  --grey: #5b6470;         /* muted slate-grey */

  /* Legacy token names remapped to the new brand so every rule inherits   */
  --navy: var(--ink);            /* dark surfaces / primary text */
  --navy-700: #181c22;           /* slightly deeper ink */
  --navy-900: #13171c;           /* deepest ink (footer) */
  --gold: var(--magenta);        /* accent */
  --gold-600: var(--magenta-600);/* accent hover */
  --gold-100: var(--magenta-050);/* accent tint */

  --bg: #f7f5f1;           /* warm off-white ground (not stark white) */
  --bg-card: #ffffff;      /* cards/surfaces (a hair warm alt: #fcfbf9) */
  --text: var(--ink);
  --text-muted: #5b6470;   /* readable muted slate (AA on the warm ground) */
  --line: #e7e3db;         /* warm hairline rules */
  --line-strong: #d8d2c8;  /* stronger warm rule */

  --maxw: 1140px;
  --gap: clamp(1rem, 3vw, 2rem);
  --radius: 14px;
  --radius-sm: 8px;
  /* Subtle, restrained depth (warm-toned, low saturation) */
  --shadow-sm: 0 1px 2px rgba(31, 36, 43, .04), 0 1px 3px rgba(31, 36, 43, .04);
  --shadow-md: 0 4px 18px rgba(31, 36, 43, .07);
  --shadow-lg: 0 12px 36px rgba(31, 36, 43, .10);

  --ff-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --ff-serif: "Fraunces", Georgia, "Times New Roman", serif;

  --step--1: clamp(.83rem, .80rem + .15vw, .92rem);
  --step-0: clamp(1rem, .96rem + .2vw, 1.125rem);
  --step-1: clamp(1.2rem, 1.1rem + .5vw, 1.45rem);
  --step-2: clamp(1.5rem, 1.3rem + .9vw, 2rem);
  --step-3: clamp(1.95rem, 1.6rem + 1.7vw, 2.9rem);
  --step-4: clamp(2.4rem, 1.9rem + 2.6vw, 3.9rem);
}

/* ----- Reset / base ---------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

body {
  margin: 0;
  font-family: var(--ff-sans);
  font-size: var(--step-0);
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

h1, h2, h3, h4 {
  font-family: var(--ff-serif);
  font-weight: 500;
  font-optical-sizing: auto;
  line-height: 1.14;
  color: var(--navy);
  margin: 0 0 .5em;
  letter-spacing: -.005em;
}
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); }
p { margin: 0 0 1rem; }

/* Inline body links use the deeper slate-blue so normal-size text clears WCAG-AA
   (#314a70 ≈ 9.1:1 on the warm ground; --magenta #3f5d8a is the standard accent for UI) */
a { color: var(--magenta-600); text-decoration-color: var(--magenta-600); text-underline-offset: 3px; }
a:hover { color: var(--magenta); }

ul, ol { margin: 0 0 1rem; padding-left: 1.25rem; }

/* ----- Accessibility helpers ------------------------------------------ */
.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 999;
  background: var(--navy);
  color: #fff;
  padding: .7rem 1.1rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  text-decoration: none;
  transition: top .15s ease;
}
.skip-link:focus { top: 1rem; color: #fff; }

:where(a, button, input, textarea, select, [tabindex]):focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
  border-radius: 4px;
}

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

/* ----- Layout ---------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: clamp(1.1rem, 4vw, 2rem);
}
.section { padding-block: clamp(3rem, 7vw, 6rem); }
.section--tight { padding-block: clamp(2.2rem, 5vw, 4rem); }
.section--alt { background: #fff; }
.section--navy { background: var(--navy); color: #f4f5f8; }
.section--navy h1, .section--navy h2, .section--navy h3 { color: #fff; }

.lede { font-size: var(--step-1); color: var(--text-muted); max-width: 56ch; }
.section--navy .lede { color: #c8cfdd; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-family: var(--ff-sans);
  font-size: var(--step--1);
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold-600);
  margin-bottom: .8rem;
}
/* Decorative green whisper — the only place the secondary logo green appears */
.eyebrow::before {
  content: "";
  width: 1.6rem;
  height: 2px;
  border-radius: 2px;
  background: var(--green);
  flex: 0 0 auto;
}
.section--navy .eyebrow { color: var(--gold); }
.text-center .eyebrow, .eyebrow.center-x { justify-content: center; }

.section-head { max-width: 64ch; margin-bottom: clamp(1.6rem, 4vw, 2.6rem); }
.text-center { text-align: center; }
.center-x { margin-inline: auto; }

/* ----- Buttons --------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--ff-sans);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1;
  padding: .9rem 1.5rem;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform .15s ease, background-color .15s ease, color .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--primary { background: var(--magenta); color: #fff; }
.btn--primary:hover { background: var(--magenta-600); color: #fff; }
.btn--solid { background: var(--ink); color: #fff; }
.btn--solid:hover { background: var(--magenta); color: #fff; }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn--ghost:hover { border-color: var(--magenta); color: var(--magenta-600); background: rgba(63, 93, 138, .06); }
.section--navy .btn--ghost { color: #fff; border-color: rgba(255, 255, 255, .4); }
.section--navy .btn--ghost:hover { border-color: #fff; background: rgba(255, 255, 255, .08); }
.btn .arrow { transition: transform .15s ease; }
.btn:hover .arrow { transform: translateX(3px); }

.btn-row { display: flex; flex-wrap: wrap; gap: .9rem; }

/* ----- Header / nav ---------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 70px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  font-family: var(--ff-serif);
  font-weight: 600;
  font-size: 1.2rem;
  color: var(--navy);
  text-decoration: none;
  letter-spacing: -.01em;
}
.brand:hover { color: var(--ink); }
.brand-mark { height: 32px; width: auto; flex: 0 0 auto; }
@media (min-width: 861px) { .brand-mark { height: 36px; } }
.site-footer .brand-mark { height: 34px; }
.brand-name strong { display: block; line-height: 1; }
.brand-name span { display: block; font-family: var(--ff-sans); font-size: .62rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--grey); margin-top: 3px; }

/* Real logo lockup (header/footer) */
.brand-logo { display: block; width: auto; height: 40px; }
@media (min-width: 861px) { .brand-logo { height: 44px; } }
.site-footer .brand-logo { height: 40px; }

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px; height: 44px;
  padding: 0 10px;
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.nav-toggle span { display: block; height: 2px; background: var(--navy); border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-menu { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: .3rem; }
.nav-menu a {
  display: inline-block;
  padding: .55rem .85rem;
  font-weight: 600;
  font-size: .98rem;
  color: var(--navy);
  text-decoration: none;
  border-radius: var(--radius-sm);
}
.nav-menu a:hover { background: rgba(63, 93, 138, .07); color: var(--magenta-600); }
.nav-menu a[aria-current="page"] { color: var(--gold-600); }
.nav-menu a[aria-current="page"]::after { content: ""; display: block; height: 2px; background: var(--gold); margin-top: 3px; border-radius: 2px; }
.nav-menu .nav-cta { margin-left: .4rem; }
.nav-menu .nav-cta a { background: var(--magenta); color: #fff; padding: .6rem 1.1rem; }
.nav-menu .nav-cta a:hover { background: var(--magenta-600); color: #fff; }

@media (max-width: 860px) {
  .nav-menu {
    position: absolute;
    left: 0; right: 0; top: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: .15rem;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    padding: .8rem clamp(1.1rem, 4vw, 2rem) 1.2rem;
    display: none;
  }
  .nav-menu.is-open { display: flex; }
  .nav-menu a { padding: .8rem .6rem; font-size: 1.05rem; }
  .nav-menu a[aria-current="page"]::after { display: none; }
  .nav-menu .nav-cta { margin: .4rem 0 0; }
  .nav-menu .nav-cta a { text-align: center; }
}
@media (min-width: 861px) { .nav-toggle { display: none; } }

/* ----- Hero ------------------------------------------------------------ */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(63, 93, 138, .07), transparent 60%),
    radial-gradient(700px 600px at -10% 110%, rgba(78, 138, 85, .05), transparent 55%),
    var(--bg);
  padding-block: clamp(3.5rem, 9vw, 7rem);
}
.hero-grid {
  display: grid;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: center;
}
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.1fr .9fr; } }
.hero h1 { margin-bottom: 1rem; }
.hero .lede { margin-bottom: 1.8rem; }

/* Decorative mosaic motif (CSS only) */
.mosaic-art {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 1fr;
  gap: 10px;
  aspect-ratio: 1 / 1;
  max-width: 420px;
  margin-inline: auto;
  width: 100%;
}
.mosaic-art .tile {
  border-radius: 10px;
  background: #5376B0; /* royal blue (brand mosaic) */
  opacity: .95;
}
.mosaic-art .tile.g { background: #6CA85F; } /* dark green */
.mosaic-art .tile.l { background: #B9F39F; } /* mint */
.mosaic-art .tile.w { background: #8CD0F5; } /* sky blue */
.mosaic-art .tile.span2 { grid-column: span 2; }
.mosaic-art .tile.row2 { grid-row: span 2; }
@media (prefers-reduced-motion: no-preference) {
  .mosaic-art .tile { animation: tile-in .6s ease backwards; }
  .mosaic-art .tile:nth-child(1) { animation-delay: .02s; }
  .mosaic-art .tile:nth-child(2) { animation-delay: .06s; }
  .mosaic-art .tile:nth-child(3) { animation-delay: .10s; }
  .mosaic-art .tile:nth-child(4) { animation-delay: .14s; }
  .mosaic-art .tile:nth-child(5) { animation-delay: .18s; }
  .mosaic-art .tile:nth-child(6) { animation-delay: .22s; }
  .mosaic-art .tile:nth-child(7) { animation-delay: .26s; }
  .mosaic-art .tile:nth-child(8) { animation-delay: .30s; }
  .mosaic-art .tile:nth-child(9) { animation-delay: .34s; }
}
@keyframes tile-in { from { opacity: 0; transform: scale(.85); } to { opacity: .9; transform: scale(1); } }

/* ----- Grids ----------------------------------------------------------- */
.grid { display: grid; gap: var(--gap); }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: 1fr; }
@media (min-width: 620px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 920px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

/* ----- Cards ----------------------------------------------------------- */
.card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.3rem, 3vw, 1.8rem);
  box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  height: 100%;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--line-strong); }
.card h3 { font-size: var(--step-1); margin-bottom: .4rem; }
.card p { color: var(--text-muted); margin-bottom: 0; }
.card .card-icon {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: var(--gold-100);
  color: var(--navy);
  margin-bottom: 1rem;
}
.card .card-icon svg { width: 24px; height: 24px; }

/* Benefit card with big numeral */
.benefit { position: relative; }
.benefit .num {
  font-family: var(--ff-serif);
  font-size: 2.6rem;
  line-height: 1;
  color: var(--gold);
  margin-bottom: .6rem;
}

/* Step / process */
.steps { counter-reset: step; }
.step { position: relative; padding-left: 0; }
.step .step-badge {
  display: inline-grid; place-items: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  font-family: var(--ff-serif);
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

/* ----- Service catalogue (grouped) ------------------------------------ */
.svc-group { margin-top: clamp(2.2rem, 5vw, 3.4rem); }
.svc-group-head {
  display: flex;
  align-items: baseline;
  gap: .8rem;
  margin-bottom: 1.3rem;
  padding-bottom: .8rem;
  border-bottom: 2px solid var(--line);
}
.svc-group-head .gnum {
  font-family: var(--ff-serif);
  font-size: 1.4rem;
  color: var(--gold-600);
  flex: 0 0 auto;
}
.svc-group-head h3 { margin: 0; font-size: var(--step-2); }
.svc-list { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 700px) { .svc-list { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .svc-list { grid-template-columns: repeat(3, 1fr); } }
.svc-item {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius-sm);
  padding: 1.1rem 1.2rem;
  box-shadow: var(--shadow-sm);
  transition: transform .15s ease, box-shadow .15s ease;
}
.svc-item:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.svc-item h4 { font-family: var(--ff-sans); font-size: 1.02rem; font-weight: 700; color: var(--navy); margin: 0 0 .35rem; line-height: 1.25; }
.svc-item p { font-size: var(--step--1); color: var(--text-muted); margin: 0; }

/* ----- Core list (Núcleo) --------------------------------------------- */
.core-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
@media (min-width: 760px) { .core-list { grid-template-columns: repeat(2, 1fr); } }
.core-list li {
  display: flex; gap: 1rem;
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: var(--radius);
  padding: 1.2rem 1.3rem;
}
.core-list .ck { flex: 0 0 auto; color: var(--gold); margin-top: 2px; }
.core-list strong { display: block; color: #fff; font-family: var(--ff-serif); font-weight: 600; font-size: 1.12rem; margin-bottom: .2rem; }
.core-list span { color: #c8cfdd; font-size: var(--step--1); }

/* ----- Methodology table ---------------------------------------------- */
.method-grid { display: grid; gap: var(--gap); grid-template-columns: 1fr; }
@media (min-width: 700px) { .method-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .method-grid { grid-template-columns: repeat(4, 1fr); } }
.method-card { background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem 1.4rem; box-shadow: var(--shadow-sm); }
.method-card .mlabel { font-family: var(--ff-sans); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: .78rem; color: var(--gold-600); margin-bottom: .6rem; }
.method-card .mq { font-family: var(--ff-serif); font-size: 1.15rem; color: var(--navy); line-height: 1.25; }

/* ----- FAQ (accordion) ------------------------------------------------- */
.faq { max-width: 820px; margin-inline: auto; }
.faq details {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  margin-bottom: .8rem;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 1.1rem 1.3rem;
  font-family: var(--ff-serif);
  font-size: 1.12rem;
  font-weight: 600;
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .chev { flex: 0 0 auto; transition: transform .2s ease; color: var(--gold-600); }
.faq details[open] summary .chev { transform: rotate(180deg); }
.faq .faq-body { padding: 0 1.3rem 1.2rem; color: var(--text-muted); }
.faq .faq-body p { margin: 0; }

/* ----- Forms ----------------------------------------------------------- */
.form { display: grid; gap: 1.1rem; }
.form-row { display: grid; gap: 1.1rem; grid-template-columns: 1fr; }
@media (min-width: 560px) { .form-row.cols-2 { grid-template-columns: repeat(2, 1fr); } }
.field { display: flex; flex-direction: column; gap: .4rem; }
.field label { font-weight: 600; font-size: .95rem; color: var(--navy); }
.field .req { color: var(--gold-600); }
.field input, .field textarea {
  font-family: inherit;
  font-size: 1rem;
  color: var(--text);
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: .8rem .9rem;
  width: 100%;
}
.field input:focus, .field textarea:focus { border-color: var(--navy); }
.field textarea { resize: vertical; min-height: 130px; }
.form .hint { font-size: var(--step--1); color: var(--text-muted); }
.form-status {
  display: none;
  padding: 1rem 1.2rem;
  border-radius: var(--radius-sm);
  background: var(--gold-100);
  border: 1px solid var(--gold);
  color: var(--navy-900);
  font-weight: 600;
}
.form-status.is-visible { display: block; }

/* honeypot */
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* split panel for contact */
.split { display: grid; gap: clamp(2rem, 5vw, 3.5rem); align-items: start; }
@media (min-width: 920px) { .split { grid-template-columns: 1.1fr .9fr; } }
.info-card {
  background: var(--navy);
  color: #e8ecf4;
  border-radius: var(--radius);
  padding: clamp(1.6rem, 4vw, 2.4rem);
  box-shadow: var(--shadow-md);
}
.info-card h2, .info-card h3 { color: #fff; }
.info-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.2rem; }
.info-list li { display: flex; gap: .9rem; align-items: flex-start; }
.info-list .ico { flex: 0 0 auto; color: var(--gold); margin-top: 2px; }
.info-list a { color: #fff; }
.info-list .label { display: block; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); margin-bottom: .15rem; }
.social-row { display: flex; gap: .7rem; flex-wrap: wrap; margin-top: .3rem; }
.social-row a {
  display: inline-flex; align-items: center; gap: .45rem;
  padding: .5rem .9rem;
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: 999px;
  color: #fff; text-decoration: none; font-size: .9rem; font-weight: 600;
}
.social-row a:hover { border-color: var(--gold); color: var(--gold); }

/* ----- Closing band ---------------------------------------------------- */
.closing-band {
  background:
    radial-gradient(700px 400px at 80% 0%, rgba(63, 93, 138, .28), transparent 60%),
    var(--ink);
  color: #fff;
}
.closing-band .lede { color: #cdd4e1; }

/* ----- Prose (legal pages) -------------------------------------------- */
.prose { max-width: 72ch; }
.prose h2 { font-size: var(--step-2); margin-top: 2.2rem; }
.prose h2:first-of-type { margin-top: 0; }
.prose p { color: var(--text); }
.prose a { font-weight: 600; }
.callout {
  background: var(--gold-100);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius-sm);
  padding: 1rem 1.2rem;
  margin: 1.5rem 0;
  color: var(--navy-900);
}

/* ----- Breadcrumbs ----------------------------------------------------- */
.breadcrumbs { font-size: var(--step--1); color: var(--text-muted); padding-top: 1.4rem; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; padding: 0; margin: 0; }
.breadcrumbs li::after { content: "/"; margin-left: .4rem; color: var(--line-strong); }
.breadcrumbs li:last-child::after { content: ""; }
.breadcrumbs a { color: var(--text-muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--navy); text-decoration: underline; }
.breadcrumbs [aria-current="page"] { color: var(--navy); font-weight: 600; }

/* ----- Footer ---------------------------------------------------------- */
.site-footer { background: var(--navy-900); color: #b9c2d6; padding-block: clamp(2.6rem, 6vw, 4rem) 1.5rem; }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: 1fr; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.site-footer h4 { color: #fff; font-family: var(--ff-sans); font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 1rem; }
.site-footer a { color: #cdd4e1; text-decoration: none; }
.site-footer a:hover { color: var(--gold); text-decoration: underline; }
.footer-brand .brand { color: #fff; margin-bottom: .9rem; }
.footer-brand .brand-name span { color: var(--gold); }
.footer-tagline { font-size: var(--step--1); color: #9aa6c0; max-width: 40ch; }
.footer-nav ul, .footer-legal ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; }
.footer-bottom {
  margin-top: 2.4rem;
  padding-top: 1.4rem;
  border-top: 1px solid rgba(255, 255, 255, .12);
  font-size: var(--step--1);
  color: #8a96b3;
  display: flex; flex-wrap: wrap; gap: .6rem 1.2rem; justify-content: space-between; align-items: center;
}
.footer-bottom a { color: #b9c2d6; }

/* ----- Reveal-on-scroll (progressive enhancement) --------------------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
  .reveal.is-in { opacity: 1; transform: none; }
}

/* ----- 404 ------------------------------------------------------------- */
.notfound { text-align: center; padding-block: clamp(4rem, 12vw, 8rem); }
.notfound .code { font-family: var(--ff-serif); font-size: clamp(4rem, 16vw, 8rem); color: var(--gold); line-height: 1; }

/* ======================================================================
   INTELLIGENCE UNIT COMPONENTS  (Mosaico Público · Unidad de Inteligencia)
   Built on the existing tokens. Risk palette is muted/institutional.
   ====================================================================== */
:root {
  --risk-alto: #b3402f;     /* high risk — restrained brick red */
  --risk-alto-bg: #f7e7e3;
  --risk-medio: #b07c1c;    /* medium — amber */
  --risk-medio-bg: #f6eed9;
  --risk-bajo: #3f7d52;     /* low — green */
  --risk-bajo-bg: #e6f0e8;
  --risk-na: #8a8f98;       /* unknown / not yet coded */
  --risk-na-bg: #eceae6;
}

/* ----- Eyebrow / kicker on data pages --------------------------------- */
.measure { max-width: 72ch; }
.lede.measure, p.measure { max-width: 72ch; }

/* ----- Stat row (landing + profiles) ---------------------------------- */
.stat-grid { display: grid; gap: 1rem; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 760px) { .stat-grid { grid-template-columns: repeat(4, 1fr); } }
.stat {
  background: var(--bg-card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.2rem 1.3rem; box-shadow: var(--shadow-sm);
}
.stat .n { font-family: var(--ff-serif); font-size: clamp(1.8rem, 4vw, 2.6rem); line-height: 1; color: var(--magenta-600); }
.stat .l { display: block; margin-top: .4rem; font-size: var(--step--1); color: var(--text-muted); }

/* ----- Risk chips ------------------------------------------------------ */
.risk {
  display: inline-flex; align-items: center; gap: .4rem;
  font-family: var(--ff-sans); font-weight: 700; font-size: .72rem;
  letter-spacing: .06em; text-transform: uppercase;
  padding: .28rem .6rem; border-radius: 999px; white-space: nowrap;
}
.risk::before { content: ""; width: .5rem; height: .5rem; border-radius: 50%; background: currentColor; }
.risk--alto { color: var(--risk-alto); background: var(--risk-alto-bg); }
.risk--medio { color: var(--risk-medio); background: var(--risk-medio-bg); }
.risk--bajo { color: var(--risk-bajo); background: var(--risk-bajo-bg); }
.risk--na { color: var(--risk-na); background: var(--risk-na-bg); }

/* ----- The three-layer system (landing) ------------------------------- */
.layers { display: grid; gap: var(--gap); grid-template-columns: 1fr; counter-reset: layer; }
@media (min-width: 920px) { .layers { grid-template-columns: repeat(3, 1fr); } }
.layer {
  background: var(--bg-card); border: 1px solid var(--line); border-top: 3px solid var(--magenta);
  border-radius: var(--radius); padding: 1.6rem 1.5rem; box-shadow: var(--shadow-sm); height: 100%;
}
.layer .lnum { font-family: var(--ff-sans); font-weight: 700; font-size: .76rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-600); }
.layer h3 { margin: .35rem 0 .5rem; }
.layer p { color: var(--text-muted); margin-bottom: 0; }
.layer .lmeta { display: block; margin-top: .9rem; font-size: var(--step--1); color: var(--grey); border-top: 1px solid var(--line); padding-top: .7rem; }

/* ----- Region cards (landing) ----------------------------------------- */
.region-card {
  background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.5rem; box-shadow: var(--shadow-sm); height: 100%; display: flex; flex-direction: column;
}
.region-card h3 { display: flex; align-items: baseline; justify-content: space-between; gap: .6rem; }
.region-card h3 .ct { font-family: var(--ff-sans); font-size: .8rem; font-weight: 700; color: var(--grey); }
.region-card p { color: var(--text-muted); }

/* ----- Indicator architecture (methodology + landing teaser) ---------- */
.dim-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .7rem; }
.dim-list li {
  display: grid; grid-template-columns: auto 1fr; gap: .2rem 1rem; align-items: baseline;
  border-bottom: 1px solid var(--line); padding-bottom: .7rem;
}
.dim-list .dname { font-family: var(--ff-serif); font-size: 1.08rem; color: var(--navy); }
.dim-list .dtrad { font-family: var(--ff-sans); font-size: .7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--gold-600); justify-self: end; }
.dim-list .dnote { grid-column: 1 / -1; color: var(--text-muted); font-size: var(--step--1); margin: 0; }

/* domain score rows (profiles) */
.dom-rows { display: grid; gap: 1rem; }
.dom-row { background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 1rem 1.1rem; box-shadow: var(--shadow-sm); }
.dom-row-head { display: flex; align-items: center; justify-content: space-between; gap: .8rem; margin-bottom: .55rem; }
.dom-row-head .dom-name { font-family: var(--ff-serif); font-size: 1.1rem; color: var(--navy); }
.dom-bar { height: 8px; border-radius: 999px; background: var(--gold-100); overflow: hidden; }
.dom-fill { height: 100%; border-radius: 999px; }
.dom-fill--alto { background: var(--risk-alto); }
.dom-fill--medio { background: var(--risk-medio); }
.dom-fill--bajo { background: var(--risk-bajo); }
.dom-row .dom-note { margin: .6rem 0 0; font-size: var(--step--1); color: var(--text-muted); }

/* ----- Mosaico de Medios feed ----------------------------------------- */
.feed-controls { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.4rem; }
.feed-controls .seg { display: inline-flex; flex-wrap: wrap; gap: .35rem; }
.chip {
  font-family: var(--ff-sans); font-weight: 600; font-size: .85rem;
  padding: .4rem .85rem; border-radius: 999px; cursor: pointer;
  background: var(--bg-card); color: var(--navy); border: 1px solid var(--line-strong);
  transition: background-color .12s ease, color .12s ease, border-color .12s ease;
}
.chip:hover { border-color: var(--magenta); color: var(--magenta-600); }
.chip[aria-pressed="true"] { background: var(--magenta); color: #fff; border-color: var(--magenta); }
.feed-count { font-size: var(--step--1); color: var(--text-muted); margin-bottom: 1rem; }

.feed { display: grid; gap: 0; }
.feed-item { border-bottom: 1px solid var(--line); padding: 1.2rem 0; }
.feed-item:first-child { border-top: 1px solid var(--line); }
.feed-item .fi-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-bottom: .45rem; }
.feed-item .fi-outlet { font-family: var(--ff-sans); font-weight: 700; font-size: .82rem; color: var(--navy); }
.feed-item h3 { font-size: var(--step-1); margin: 0 0 .3rem; }
.feed-item h3 a { color: var(--navy); text-decoration: none; }
.feed-item h3 a:hover { color: var(--magenta-600); text-decoration: underline; }
.feed-item p { color: var(--text-muted); margin: 0; font-size: var(--step-0); }

.tag {
  font-family: var(--ff-sans); font-size: .68rem; font-weight: 700; letter-spacing: .05em;
  text-transform: uppercase; padding: .22rem .5rem; border-radius: 5px; white-space: nowrap;
  background: var(--gold-100); color: var(--gold-600);
}
.tag--region { background: var(--navy); color: #fff; }
.tag--lang { background: transparent; color: var(--grey); border: 1px solid var(--line-strong); }
.tag--date { background: transparent; color: var(--grey); font-weight: 600; letter-spacing: .02em; text-transform: none; padding-left: 0; }

/* ----- Country index grid --------------------------------------------- */
.country-grid { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 620px) { .country-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .country-grid { grid-template-columns: repeat(3, 1fr); } }
.country-card {
  background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.3rem 1.4rem; box-shadow: var(--shadow-sm); height: 100%; display: flex; flex-direction: column;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
  text-decoration: none; color: inherit;
}
a.country-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--line-strong); }
.country-card .cc-head { display: flex; align-items: center; gap: .6rem; margin-bottom: .2rem; }
.country-card .cc-flag { font-size: 1.6rem; line-height: 1; }
.country-card .cc-name { font-family: var(--ff-serif); font-size: 1.25rem; color: var(--navy); }
.country-card .cc-region { font-size: var(--step--1); color: var(--grey); }
.country-card .cc-headline { color: var(--text-muted); font-size: var(--step--1); margin: .6rem 0 1rem; flex: 1; }
.country-card .cc-foot { display: flex; align-items: center; justify-content: space-between; gap: .6rem; }
.score-dots { display: inline-flex; gap: .28rem; }
.score-dots .d { width: .62rem; height: .62rem; border-radius: 50%; background: var(--risk-na); }
.score-dots .d--alto { background: var(--risk-alto); }
.score-dots .d--medio { background: var(--risk-medio); }
.score-dots .d--bajo { background: var(--risk-bajo); }

/* ----- Profile layout -------------------------------------------------- */
.profile-head { display: grid; gap: 1rem; align-items: end; }
.profile-head .ph-flag { font-size: 3rem; line-height: 1; }
.profile-head .ph-status { font-size: var(--step--1); color: var(--grey); }
.profile-cols { display: grid; gap: var(--gap); grid-template-columns: 1fr; }
@media (min-width: 920px) { .profile-cols { grid-template-columns: 1.6fr 1fr; align-items: start; } }
.factbox { background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem 1.5rem; box-shadow: var(--shadow-sm); }
.factbox h3 { font-size: var(--step-1); margin-bottom: .8rem; }
.factbox + .factbox { margin-top: 1rem; }
.factbox ul { margin: 0; padding-left: 1.1rem; }
.factbox li { margin-bottom: .5rem; color: var(--text); }
.factbox .src { font-size: var(--step--1); color: var(--grey); margin-top: .9rem; border-top: 1px solid var(--line); padding-top: .7rem; }

/* big number callout (concentration) */
.bignum { font-family: var(--ff-serif); font-size: clamp(2.6rem, 7vw, 4rem); line-height: 1; color: var(--risk-alto); }
.bignum-label { font-size: var(--step--1); color: var(--text-muted); }

/* ----- Data table ------------------------------------------------------ */
.dtable { width: 100%; border-collapse: collapse; font-size: var(--step-0); }
.dtable th, .dtable td { text-align: left; padding: .7rem .6rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.dtable thead th { font-family: var(--ff-sans); font-size: .74rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--grey); }
.dtable td strong { color: var(--navy); }

/* ----- Map legend / placeholder --------------------------------------- */
.legend { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1rem; }
.legend .li { display: inline-flex; align-items: center; gap: .45rem; font-size: var(--step--1); color: var(--text-muted); }
.legend .sw { width: .9rem; height: .9rem; border-radius: 3px; }
.legend .sw--alto { background: var(--risk-alto); }
.legend .sw--medio { background: var(--risk-medio); }
.legend .sw--bajo { background: var(--risk-bajo); }
.legend .sw--na { background: var(--risk-na); }

/* ----- Disclosure / COI note ------------------------------------------ */
.disclosure {
  background: var(--gold-100); border: 1px solid var(--line-strong); border-left: 4px solid var(--magenta);
  border-radius: var(--radius-sm); padding: 1.1rem 1.3rem; color: var(--navy-900); font-size: var(--step--1);
}
.disclosure strong { color: var(--navy-900); }

/* empty / loading state for JS-rendered regions */
.js-empty { color: var(--text-muted); font-size: var(--step--1); padding: 1rem 0; }

/* ----- Regional reports (public panorama — aggregates, no firehose) ---- */
.report-grid { display: grid; gap: var(--gap); grid-template-columns: 1fr; }
@media (min-width: 760px) { .report-grid { grid-template-columns: repeat(3, 1fr); } }
.report-card {
  background: var(--bg-card); border: 1px solid var(--line); border-top: 3px solid var(--magenta);
  border-radius: var(--radius); padding: 1.5rem 1.4rem; box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; height: 100%;
}
.report-head { display: flex; align-items: baseline; justify-content: space-between; gap: .6rem; }
.report-head h3 { margin: 0; font-size: var(--step-1); }
.report-vol { font-family: var(--ff-serif); font-size: 1.9rem; color: var(--magenta-600); line-height: 1; text-align: right; flex: 0 0 auto; }
.report-vol span { display: block; font-family: var(--ff-sans); font-size: .6rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--grey); margin-top: 3px; }
.report-sub { color: var(--text-muted); font-size: var(--step--1); margin: .55rem 0 1rem; }
.report-topics { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1rem; }
.report-outlets { font-size: var(--step--1); color: var(--text-muted); margin: 0 0 1rem; line-height: 1.5; }
.report-outlets span { font-weight: 700; color: var(--navy); }
.report-shared { margin-top: auto; border-top: 1px solid var(--line); padding-top: .9rem; }
.report-shared-h { font-family: var(--ff-sans); font-weight: 700; font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; color: var(--gold-600); margin-bottom: .5rem; }
.report-shared-item { font-size: var(--step--1); margin-bottom: .4rem; }
.report-shared-item a { font-weight: 600; }
.report-shared-meta { color: var(--grey); }
.report-shared-empty { font-size: var(--step--1); color: var(--grey); font-style: italic; margin: 0; }
.report-analysis { margin: .2rem 0 1rem; padding: .9rem 1rem; background: var(--gold-100); border-radius: var(--radius-sm); }
.report-analysis-h { font-family: var(--ff-sans); font-weight: 700; font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; color: var(--magenta-600); margin-bottom: .4rem; }
.report-analysis p { font-size: var(--step--1); color: var(--text); margin: 0 0 .5rem; line-height: 1.55; }
.report-analysis p:last-child { margin-bottom: 0; }

/* ===================================================================== */
/* Refresh 2026-06 — logo real, banner editorial y armonización de marca  */
/* ===================================================================== */
:root {
  --green: #1aa85b;        /* brand mosaic green (revived as live secondary accent) */
  --green-600: #14823f;    /* darker green for hover/contrast */
  --green-050: #e8f6ee;    /* soft green tint */
}

/* Logo lockup: mosaic mark + wordmark -------------------------------- */
.brand-mark { height: 32px; width: auto; flex: 0 0 auto; }
@media (min-width: 861px) { .brand-mark { height: 36px; } }
.site-footer .brand-mark { height: 34px; }
.brand { gap: .6rem; }

/* Hero editorial photo (replaces the CSS mosaic motif) --------------- */
.hero-photo {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}
.hero { padding-block: clamp(3rem, 8vw, 6rem); }

/* Brand-green as a restrained secondary accent ----------------------- */
.eyebrow::before { background: var(--green); }
.section--navy .eyebrow::before { background: var(--green); }
.hero .stat .n, .stat-grid .stat .n { color: var(--green-600); }
.layer .lnum { color: var(--green-600); }
.btn--primary:hover { background: var(--magenta-600); }
.region-card { border-top: 3px solid var(--green); }
.country-card:hover { border-color: var(--green); }

/* Language switch (ES / EN) ----------------------------------------- */
.nav-menu .nav-lang { margin-left: .15rem; }
.lang-switch {
  display: inline-flex; align-items: center;
  padding: .4rem .7rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  font-family: var(--ff-sans); font-weight: 700; font-size: .8rem;
  letter-spacing: .06em; color: var(--navy); text-decoration: none;
}
.lang-switch:hover { border-color: var(--magenta); color: var(--magenta-600); background: rgba(63,93,138,.06); }
@media (max-width: 860px) { .nav-menu .nav-lang { margin: .4rem 0 0; } .lang-switch { width: 100%; justify-content: center; padding: .8rem; } }
