/* Grupo San Anselmo — sitio institucional.
   Sistema visual tomado de la portada pública de chat.gruposananselmo.com (landing.css):
   mismos tokens, tipografía Inter / JetBrains Mono (servidas localmente), aurora, rejilla de 56px,
   botones negros y tarjetas blancas con bordes #e7e9e3. */

/* ── Fuentes locales (SIL Open Font License, ver /assets/fonts/*-OFL.txt) ── */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/fonts/inter-400.ttf) format("truetype");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/assets/fonts/inter-500.ttf) format("truetype");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/assets/fonts/inter-600.ttf) format("truetype");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/assets/fonts/inter-700.ttf) format("truetype");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(/assets/fonts/inter-800.ttf) format("truetype");
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/fonts/jetbrains-mono-400.ttf) format("truetype");
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/assets/fonts/jetbrains-mono-500.ttf) format("truetype");
}

/* ── Tokens (idénticos a landing.css) ── */
:root {
  --green: #7fad40;
  --green-deep: #4f7322;
  --green-ink: #2c4214;
  --amber: #f3b52f;
  --amber-soft: #fbe3a8;
  --ink: #0b0d0a;
  --ink-2: #3d4239;
  --ink-3: #6c7266;
  --line: #e7e9e3;
  --line-2: #d7dbd1;
  --bg: #ffffff;
  --bg-2: #f7f8f5;
  --dark-muted: #b9bfb3;
  --radius: 14px;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color-scheme: light;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: normal;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  list-style: none;
}

address {
  font-style: normal;
}

b,
strong {
  font-weight: 700;
}

h1,
h2,
h3,
h4 {
  font-weight: 700;
}

a:focus-visible,
button:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--green-deep);
  outline-offset: 4px;
  border-radius: 6px;
}

main:focus {
  outline: none;
}

section[id] {
  scroll-margin-top: 88px;
}

.wrap,
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

.container-narrow {
  max-width: 1040px;
}

[hidden] {
  display: none !important;
}

.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;
}

.skip-link {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--ink);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: none;
}

.icon {
  display: inline-block;
  flex: none;
  width: 0.85em;
  height: 0.85em;
  margin-left: 0.3em;
  vertical-align: -0.05em;
}

/* ── Botones ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-weight: 600;
  font-size: 15px;
  line-height: 1.2;
  border-radius: 12px;
  padding: 13px 22px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s, border-color 0.2s;
}

.btn .icon {
  margin-left: 0;
}

.btn-primary {
  background: var(--ink);
  color: #fff;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.12) inset, 0 8px 24px -10px rgba(11, 13, 10, 0.55);
}

.btn-primary:hover {
  background: #1c2119;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.12) inset, 0 14px 32px -12px rgba(11, 13, 10, 0.6);
}

.btn-ghost,
.btn-secondary {
  border-color: var(--line-2);
  color: var(--ink);
  background: #fff;
}

.btn-ghost:hover,
.btn-secondary:hover {
  border-color: var(--ink-3);
}

.btn-sm {
  padding: 9px 16px;
  font-size: 14px;
  border-radius: 10px;
}

.arrow {
  display: inline-block;
  transition: transform 0.2s;
}

.btn:hover .arrow {
  transform: translateX(3px);
}

.btn:active {
  transform: translateY(0);
}

@media (hover: hover) and (pointer: fine) {
  .btn:hover {
    transform: translateY(-2px);
  }
}

/* ── Cabecera ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  background: rgba(255, 255, 255, 0.72);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}

.site-header.scrolled {
  border-bottom-color: var(--line);
}

.nav {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 72px;
}

/* El logotipo se usa tal cual (sobre blanco, sin recolorear ni deformar). */
.brand {
  flex: none;
  display: block;
  border-radius: 8px;
}

.brand img {
  height: 56px;
  width: auto;
  margin-left: -6px;
}

.site-nav {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.pill-nav {
  display: flex;
  gap: 4px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
}

.pill-nav a {
  display: block;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink-2);
  padding: 7px 14px;
  border-radius: 999px;
  transition: background 0.2s, color 0.2s;
}

.pill-nav a:hover {
  background: var(--bg-2);
  color: var(--ink);
}

.menu-only {
  display: none;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav-portal {
  display: inline-flex;
  align-items: center;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink-3);
  transition: color 0.2s;
}

.nav-portal:hover {
  color: var(--ink);
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  min-height: 40px;
  padding: 8px 14px;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 16px;
  height: 1.75px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.2s, background 0.2s;
}

.nav-toggle-bars {
  position: relative;
}

.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle-bars::before {
  top: -5px;
}

.nav-toggle-bars::after {
  top: 5px;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before {
  transform: translateY(5px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after {
  transform: translateY(-5px) rotate(-45deg);
}

/* Tarjetas flotantes decorativas del hero: sobresalen 34–36 px del marco (1040 px), así que solo
   caben sin desbordar el viewport a partir de ~1112 px. Por debajo se ocultan. */
@media (max-width: 1120px) {
  .preview .float {
    display: none;
  }
}

/* Menú compacto: el ancho de logo + píldora + portal + CTA corporativo exige ~1040 px. */
@media (max-width: 1040px) {
  .nav-portal-desktop {
    display: none;
  }

  .js .nav-toggle {
    display: inline-flex;
  }

  .nav-actions {
    gap: 10px;
  }

  /* Sin JavaScript la navegación queda visible bajo la cabecera. */
  .nav {
    flex-wrap: wrap;
    height: auto;
    min-height: 72px;
  }

  .site-nav {
    position: static;
    transform: none;
    order: 3;
    flex-basis: 100%;
    padding: 0 0 12px;
  }

  /* El panel desplegable se posiciona respecto a la cabecera (ancho completo). */
  .js .nav {
    position: static;
    flex-wrap: nowrap;
    height: 72px;
  }

  .js .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    padding: 8px 24px 20px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 40px -28px rgba(11, 13, 10, 0.35);
  }

  .js .site-nav:not(.is-open) {
    display: none;
  }

  .pill-nav {
    flex-direction: column;
    gap: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: none;
  }

  .pill-nav a {
    padding: 14px 2px;
    border-radius: 0;
    border-bottom: 1px solid var(--line);
    font-size: 15px;
    color: var(--ink);
  }

  .pill-nav a:hover {
    background: none;
  }

  .menu-only {
    display: block;
  }

  .pill-nav .menu-only .btn,
  .pill-nav .menu-only .btn:hover {
    display: flex;
    width: 100%;
    margin-top: 16px;
    border-bottom: 0;
    padding: 13px 22px;
    border-radius: 12px;
    background: var(--ink);
    color: #fff;
  }

  .pill-nav .menu-only .nav-portal {
    display: flex;
    color: var(--ink-3);
  }
}

@media (max-width: 560px) {
  .nav-actions .nav-cta {
    display: none;
  }
}

@media (max-width: 400px) {

  .brand img {
    height: 48px;
  }
}

/* ── Hero ── */
.hero {
  position: relative;
  padding: 96px 0 72px;
  text-align: center;
  isolation: isolate;
}

.aurora {
  position: absolute;
  inset: -120px 0 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.aurora span {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.55;
}

.aurora .a1 {
  width: 620px;
  height: 520px;
  left: 8%;
  top: 40px;
  background: radial-gradient(circle, rgba(127, 173, 64, 0.55), transparent 65%);
}

.aurora .a2 {
  width: 560px;
  height: 480px;
  right: 6%;
  top: 0;
  background: radial-gradient(circle, rgba(243, 181, 47, 0.5), transparent 65%);
}

.aurora .a3 {
  width: 460px;
  height: 420px;
  left: 38%;
  top: 260px;
  background: radial-gradient(circle, rgba(88, 185, 75, 0.35), transparent 65%);
}

.grid-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  opacity: 0.45;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink-2);
  padding: 7px 14px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.75);
}

.dot {
  flex: none;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(127, 173, 64, 0.18);
}

.hero h1 {
  margin: 28px auto 0;
  max-width: 980px;
  font-size: clamp(44px, 7.4vw, 92px);
  line-height: 0.98;
  letter-spacing: -0.045em;
  font-weight: 800;
}

.accent {
  background: linear-gradient(100deg, var(--green-deep) 10%, var(--green) 45%, var(--amber) 95%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lead {
  margin: 26px auto 0;
  max-width: 640px;
  font-size: 19px;
  line-height: 1.6;
  color: var(--ink-3);
}

.lead b {
  color: var(--ink);
  font-weight: 600;
}

.cta {
  margin-top: 36px;
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.trust {
  margin-top: 22px;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  color: var(--ink-3);
}

.trust i {
  font-style: normal;
  color: var(--line-2);
  margin: 0 10px;
}

.hero h1,
.hero .eyebrow {
  animation: gsa-soft-enter 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hero .lead,
.hero .cta {
  animation: gsa-soft-enter 0.8s 0.12s both;
}

@keyframes gsa-soft-enter {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── Marco institucional (composición del preview original, con datos reales) ── */
.preview {
  position: relative;
  margin: 64px auto 0;
  max-width: 1040px;
}

.frame {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(11, 13, 10, 0.04), 0 40px 80px -40px rgba(44, 66, 20, 0.35);
  overflow: hidden;
  display: grid;
  grid-template-columns: 260px 1fr 280px;
  min-height: 420px;
  text-align: left;
}

.frame-bar {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--bg-2);
}

.frame-bar i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--line-2);
}

.frame-bar span {
  margin-left: 10px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-3);
  letter-spacing: 0.04em;
}

.frame-label {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.2em;
  color: var(--ink-3);
  font-weight: 500;
  text-transform: uppercase;
}

.list {
  border-right: 1px solid var(--line);
  padding: 10px;
}

.list .frame-label {
  padding: 10px 10px 6px;
}

.thread {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border-radius: 10px;
}

.thread:first-child {
  background: var(--bg-2);
}

.av {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--green-ink);
  background: #e8f0dc;
  flex: none;
}

.av.amber {
  background: #fdf0d0;
  color: #7a5410;
}

.thread b {
  display: block;
  font-size: 13.5px;
}

.thread small {
  display: block;
  font-size: 12px;
  color: var(--ink-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 170px;
}

.panel {
  padding: 24px 26px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: linear-gradient(180deg, #fff, #fbfcf9);
}

.panel-title {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.panel-text {
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-3);
  max-width: 420px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chips li {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--green-ink);
  background: #eef5e3;
  border: 1px solid #dfe9cf;
  padding: 5px 10px;
  border-radius: 8px;
}

.panel-dark {
  margin-top: auto;
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--ink);
  color: #fff;
  font-size: 14px;
  line-height: 1.45;
}

.panel-dark .who {
  display: block;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 6px;
}

.panel-dark .panel-entity {
  display: block;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.panel-dark .panel-meta {
  display: block;
  margin-top: 4px;
  font-size: 12.5px;
  color: var(--dark-muted);
}

.panel-dark .panel-meta a {
  color: #fff;
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.35);
  text-underline-offset: 2px;
}

.panel-dark .panel-phone {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.stock {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.stock a,
.stock span {
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  padding: 5px 9px;
  border-radius: 8px;
  transition: background 0.2s;
}

.stock a:hover {
  background: rgba(255, 255, 255, 0.18);
}

.panel-dark :focus-visible {
  outline-color: var(--amber);
}

.side {
  border-left: 1px solid var(--line);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.kv-list {
  display: flex;
  flex-direction: column;
}

.kv {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  padding: 8px 0;
  border-bottom: 1px dashed var(--line);
}

.kv dt {
  color: var(--ink-3);
  flex: none;
}

.kv dd {
  text-align: right;
  font-weight: 500;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--green-deep);
}

.status::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
}

.float {
  position: absolute;
  z-index: 2;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 14px;
  box-shadow: 0 20px 40px -24px rgba(11, 13, 10, 0.35);
  font-size: 13px;
  display: flex;
  gap: 10px;
  align-items: center;
  text-align: left;
}

.float.f1 {
  left: -36px;
  bottom: 54px;
}

.float.f2 {
  right: -34px;
  top: -26px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

a.float:hover {
  border-color: var(--line-2);
  box-shadow: 0 24px 48px -24px rgba(11, 13, 10, 0.4);
}

.float b {
  display: block;
}

.float small {
  color: var(--ink-3);
  font-size: 12px;
}

.ico {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: #eef5e3;
  color: var(--green-deep);
  flex: none;
}

.ico svg {
  width: 18px;
  height: 18px;
}

.ico.amber {
  background: #fdf0d0;
  color: #8a5f0f;
}

/* ── Secciones ── */
section.block {
  padding: 112px 0 0;
}

.kicker {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.28em;
  color: var(--green-deep);
  text-transform: uppercase;
}

h2.title,
.block h2 {
  margin-top: 14px;
  font-size: clamp(32px, 4.4vw, 52px);
  letter-spacing: -0.035em;
  line-height: 1.05;
  font-weight: 800;
  max-width: 720px;
}

.sub {
  margin-top: 16px;
  font-size: 17px;
  color: var(--ink-3);
  max-width: 600px;
  line-height: 1.6;
}

/* Bento */
.bento {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}

.card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 28px;
  background: #fff;
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}

@media (hover: hover) and (pointer: fine) {
  .card:hover {
    border-color: var(--line-2);
    transform: translateY(-3px);
    box-shadow: 0 24px 48px -32px rgba(44, 66, 20, 0.4);
  }
}

.card.c4 {
  grid-column: span 4;
}

.card.c2 {
  grid-column: span 2;
}

.card.c3 {
  grid-column: span 3;
}

.card h3 {
  margin-top: 18px;
  font-size: 21px;
  letter-spacing: -0.02em;
}

.card p {
  margin-top: 8px;
  font-size: 15px;
  color: var(--ink-3);
  line-height: 1.6;
  max-width: 440px;
}

.card .btn {
  margin-top: 20px;
}

.card .glow {
  position: absolute;
  z-index: -1;
  width: 320px;
  height: 320px;
  right: -110px;
  bottom: -150px;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.35;
  pointer-events: none;
}

.glow-green {
  background: var(--green);
}

.glow-amber {
  background: var(--amber);
}

.card.card-dark {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

.card.card-dark p {
  color: var(--dark-muted);
}

.card.card-dark .ico {
  background: rgba(255, 255, 255, 0.08);
  color: var(--amber);
}

.card-stat {
  margin-top: 22px;
}

.card-stat strong {
  display: block;
  font-size: 44px;
  letter-spacing: -0.04em;
  font-weight: 800;
  line-height: 1;
}

.card-stat span {
  display: block;
  margin-top: 6px;
  font-size: 14px;
  color: var(--dark-muted);
}

.sedes {
  margin-top: 26px;
  display: grid;
  grid-template-columns: repeat(17, 1fr);
  gap: 6px;
  max-width: 520px;
}

.sedes i {
  aspect-ratio: 1;
  border-radius: 5px;
  background: var(--green);
  border: 1px solid var(--green);
}

/* Presencia */
.sedes-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.region-count {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg-2);
  font-size: 14px;
  color: var(--ink-3);
}

.region-count strong {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ink);
}

/* Trayectoria (Nosotros) */
.trajectory {
  margin-top: 32px;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 24px 28px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--bg-2);
}

.trajectory-figure {
  flex: none;
  font-size: clamp(48px, 6vw, 72px);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1;
  background: linear-gradient(100deg, var(--green-deep) 10%, var(--green) 55%, var(--amber) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.trajectory h3 {
  font-size: 21px;
  letter-spacing: -0.02em;
}

.trajectory h3 + p {
  margin-top: 6px;
  max-width: 620px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-3);
}

.trajectory + .bento {
  margin-top: 16px;
}

/* Catálogo: logotipos estáticos (sin carrusel) */
.brand-grid {
  margin-top: 36px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.brand-grid li {
  flex: 0 0 calc((100% - 48px) / 5);
  min-width: 0;
}

.brand-tile {
  display: block;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.brand-tile img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

@media (hover: hover) and (pointer: fine) {
  .brand-tile:hover {
    border-color: var(--line-2);
    transform: translateY(-2px);
    box-shadow: 0 16px 32px -24px rgba(44, 66, 20, 0.45);
  }
}

.brand-note {
  margin-top: 16px;
  font-size: 13px;
  color: var(--ink-3);
  text-align: center;
}

/* Fichas de algunas sedes (enlaces a Google Maps) */
.branches {
  margin-top: 28px;
}

.branches-title {
  font-size: 18px;
  letter-spacing: -0.01em;
}

.branch-grid {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.branch-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.branch-card b {
  display: block;
  font-size: 15px;
  letter-spacing: -0.01em;
}

.branch-card small {
  display: block;
  margin-top: 2px;
  font-size: 13px;
  color: var(--ink-3);
}

.branch-card .step-link {
  margin-top: 10px;
  font-size: 14px;
}

@media (max-width: 1040px) {
  .brand-grid li {
    flex-basis: calc((100% - 36px) / 4);
  }
}

@media (max-width: 960px) {
  .branch-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .brand-grid li {
    flex-basis: calc((100% - 12px) / 2);
  }

  .trajectory {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 22px;
  }
}

/* Mapa de presencia (contorno Natural Earth, centros urbanos GeoNames) */
.map-layout {
  margin-top: 36px;
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.map-card,
.map-panel {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
}

.map-card {
  overflow: hidden;
}

.map-toolbar {
  display: flex;
  justify-content: flex-end;
  padding: 12px;
  border-bottom: 1px solid var(--line);
}

.segmented {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
}

.segmented button {
  min-height: 40px;
  padding: 8px 16px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink-2);
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.segmented button:hover {
  background: var(--bg-2);
  color: var(--ink);
}

.segmented button[aria-pressed="true"] {
  background: var(--ink);
  color: #fff;
}

.map-canvas {
  position: relative;
  background-color: var(--bg-2);
  background-image: linear-gradient(rgba(215, 219, 209, 0.45) 1px, transparent 1px),
    linear-gradient(90deg, rgba(215, 219, 209, 0.45) 1px, transparent 1px);
  background-size: 28px 28px;
}

.map-svg {
  display: block;
  width: 100%;
  height: auto;
}

.map-country {
  fill: #fff;
  stroke: #c9cfc0;
  stroke-width: 1.25;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.map-svg .map-country {
  filter: drop-shadow(0 12px 22px rgba(44, 66, 20, 0.12));
}

.map-zone {
  fill: rgba(127, 173, 64, 0.07);
  stroke: var(--green);
  stroke-width: 1;
  stroke-dasharray: 4 4;
  vector-effect: non-scaling-stroke;
  transition: opacity 0.3s;
}

.is-central .map-zone {
  opacity: 0;
}

.map-pin {
  cursor: pointer;
}

.pin-hit {
  fill: transparent;
}

.pin-halo {
  fill: rgba(127, 173, 64, 0.22);
  transform-box: fill-box;
  transform-origin: center;
  transition: transform 0.2s;
}

.pin-dot {
  fill: var(--green);
  stroke: #fff;
  stroke-width: 2;
}

.pin-label {
  display: none;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  fill: var(--ink);
  paint-order: stroke;
  stroke: #fff;
  stroke-width: 4px;
  stroke-linejoin: round;
}

.map-pin:hover .pin-label,
.map-pin.is-selected .pin-label {
  display: block;
}

.map-pin.is-selected .pin-dot {
  fill: var(--amber);
  stroke: var(--ink);
  stroke-width: 1.5;
}

.map-pin.is-selected .pin-halo {
  fill: rgba(243, 181, 47, 0.32);
  transform: scale(1.5);
}

.map-inset {
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 112px;
  height: auto;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 12px 24px -18px rgba(11, 13, 10, 0.35);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

.is-central .map-inset {
  opacity: 1;
  visibility: visible;
}

.map-inset .map-country {
  stroke-width: 1;
}

.map-inset-zone {
  fill: rgba(243, 181, 47, 0.4);
  stroke: #c98d0e;
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.map-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 16px;
  padding: 12px 16px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  line-height: 1.5;
  color: var(--ink-3);
}

.map-credit a {
  text-decoration: underline;
  text-decoration-color: var(--line-2);
  text-underline-offset: 2px;
}

.map-credit a:hover {
  color: var(--ink);
}

.map-panel {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.map-detail {
  padding-bottom: 18px;
  border-bottom: 1px dashed var(--line);
}

.map-detail-title {
  margin-top: 8px;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.map-detail-text {
  margin-top: 6px;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--ink-3);
}

.city-groups {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.city-group-label {
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.city-chips {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.city-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
}

.city-chip::before {
  content: "";
  flex: none;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
}

button.city-chip {
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

button.city-chip:hover {
  border-color: var(--line-2);
  background: var(--bg-2);
}

button.city-chip[aria-pressed="true"] {
  border-color: var(--green);
  background: #eef5e3;
  color: var(--green-ink);
}

button.city-chip[aria-pressed="true"]::before {
  background: var(--amber);
}

/* Contacto */
.steps {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  counter-reset: s;
}

.step {
  padding: 26px;
  border-radius: 18px;
  background: var(--bg-2);
  border: 1px solid var(--line);
}

.step::before {
  counter-increment: s;
  content: "0" counter(s);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--green-deep);
}

.step h3 {
  margin-top: 14px;
  font-size: 18px;
  letter-spacing: -0.01em;
}

.step p,
.step address {
  margin-top: 6px;
  font-size: 14.5px;
  color: var(--ink-3);
  line-height: 1.55;
}

.step-link {
  display: inline-flex;
  align-items: center;
  margin-top: 14px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  border-bottom: 1px solid var(--line-2);
  padding-bottom: 2px;
  transition: border-color 0.2s;
}

.step-link:hover {
  border-color: var(--ink);
}

.step-link .arrow {
  margin-left: 6px;
}

.step-link:hover .arrow {
  transform: translateX(3px);
}

.identity {
  margin-top: 16px;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 32px;
  align-items: start;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
}

.identity h3 {
  margin-top: 14px;
  font-size: 21px;
  letter-spacing: -0.02em;
  line-height: 1.3;
  max-width: 380px;
}

.identity .kv {
  font-size: 14px;
  padding: 11px 0;
}

.identity .kv:first-child {
  padding-top: 0;
}

.identity .kv:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

/* CTA final */
.final {
  margin: 112px 0 0;
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  padding: 72px 40px;
  text-align: center;
  background: var(--ink);
  color: #fff;
  isolation: isolate;
}

.final .aurora {
  inset: 0;
}

.final .aurora span {
  opacity: 0.45;
}

.final h2 {
  margin: 0 auto;
  max-width: 760px;
  font-size: clamp(32px, 4.4vw, 52px);
  letter-spacing: -0.035em;
  line-height: 1.05;
  font-weight: 800;
  color: #fff;
}

.final p {
  margin: 16px auto 0;
  color: var(--dark-muted);
  max-width: 520px;
  font-size: 17px;
  line-height: 1.6;
}

.final .btn-primary {
  background: #fff;
  color: var(--ink);
}

.final .btn-primary:hover {
  background: #eef1ea;
}

.final .btn-ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.28);
}

.final .btn-ghost:hover {
  border-color: rgba(255, 255, 255, 0.6);
}

.final :focus-visible {
  outline-color: var(--amber);
}

/* ── Pie ── */
.site-footer {
  margin-top: 0;
}

.page-legal .site-footer,
.page-404 .site-footer {
  border-top: 1px solid var(--line);
}

.footer-main {
  padding: 48px 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px 24px;
  flex-wrap: wrap;
  color: var(--ink-3);
  font-size: 13.5px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.footer-brand img {
  height: 30px;
  width: auto;
}

.mono {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--ink);
}

.footer-legal {
  padding: 18px 24px 40px;
  color: var(--ink-3);
  font-size: 12.5px;
  line-height: 1.6;
}

.footer-legal p + p {
  margin-top: 2px;
}

/* ── Páginas legales y 404 ── */
.legal-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 80px 0 44px;
  border-bottom: 1px solid var(--line);
}

.legal-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(520px 320px at 12% 0%, rgba(127, 173, 64, 0.16), transparent 70%),
    radial-gradient(480px 300px at 92% 0%, rgba(243, 181, 47, 0.16), transparent 70%);
}

.legal-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  opacity: 0.45;
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 50% 0%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 80% at 50% 0%, #000 20%, transparent 75%);
}

.legal-title {
  margin-top: 14px;
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1.02;
  letter-spacing: -0.04em;
  font-weight: 800;
}

.legal-updated {
  margin-top: 16px;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  color: var(--ink-3);
}

.legal-intro {
  margin-top: 18px;
  max-width: 680px;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink-3);
}

.legal-layout {
  display: grid;
  gap: 32px;
  padding-top: 48px;
  padding-bottom: 96px;
}

.legal-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.legal-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink-2);
  transition: background 0.2s, color 0.2s;
}

.legal-nav a:hover {
  background: var(--bg-2);
  color: var(--ink);
}

.legal-nav a[aria-current="page"] {
  background: var(--bg-2);
  border-color: var(--line-2);
  color: var(--ink);
}

.legal-body {
  max-width: 700px;
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink-2);
}

.legal-body section + section {
  margin-top: 36px;
}

.legal-body h2 {
  margin-bottom: 10px;
  font-size: 20px;
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.legal-body p + p,
.legal-body p + ul,
.legal-body ul + p {
  margin-top: 12px;
}

.legal-body ul {
  list-style: disc;
  padding-left: 22px;
}

.legal-body li + li {
  margin-top: 6px;
}

.legal-body li::marker {
  color: var(--green);
}

.legal-body a {
  color: var(--green-deep);
  text-decoration: underline;
  text-decoration-color: rgba(79, 115, 34, 0.35);
  text-underline-offset: 3px;
}

.legal-body a:hover {
  text-decoration-color: currentColor;
}

.legal-body strong {
  color: var(--ink);
  font-weight: 600;
}

@media (min-width: 900px) {
  .legal-layout {
    grid-template-columns: 220px 1fr;
    gap: 56px;
  }

  .legal-nav ul {
    position: sticky;
    top: 104px;
    flex-direction: column;
    align-items: flex-start;
  }
}

.notfound {
  position: relative;
  padding: 112px 0 120px;
}

.hero-actions {
  margin-top: 32px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* ── Responsive ── */
@media (max-width: 960px) {
  .hero {
    padding-top: 64px;
  }

  .map-layout {
    grid-template-columns: 1fr;
  }

  .frame {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .list,
  .side,
  .float {
    display: none;
  }

  .bento {
    grid-template-columns: 1fr;
  }

  .card.c4,
  .card.c2,
  .card.c3 {
    grid-column: auto;
  }

  .steps {
    grid-template-columns: 1fr;
  }

  .identity {
    grid-template-columns: 1fr;
    gap: 22px;
  }
}

@media (max-width: 700px) {
  section.block {
    padding-top: 88px;
  }

  .map-panel {
    padding: 20px;
  }

  .segmented {
    width: 100%;
  }

  .segmented button {
    flex: 1;
  }

  .map-inset {
    width: 84px;
    right: 8px;
    bottom: 8px;
  }

  .final {
    padding: 56px 22px;
    border-radius: 22px;
  }

  .identity {
    padding: 22px;
  }

  .identity .kv {
    flex-direction: column;
    gap: 2px;
  }

  .identity .kv dd {
    text-align: left;
  }
}

@media (max-width: 480px) {
  .wrap,
  .container {
    padding-left: 18px;
    padding-right: 18px;
  }

  .js .site-nav {
    padding-left: 18px;
    padding-right: 18px;
  }

  .eyebrow {
    letter-spacing: 0.16em;
    font-size: 10.5px;
  }

  .lead {
    font-size: 17px;
  }

  .cta .btn {
    width: 100%;
  }

  .trust i {
    margin: 0 6px;
  }

  .panel {
    padding: 20px 18px;
  }

  .sedes {
    gap: 4px;
  }

  .sedes i {
    border-radius: 3px;
  }

  .footer-main {
    padding: 40px 18px 0;
  }

  .footer-legal {
    padding: 16px 18px 36px;
  }
}

@media (max-width: 380px) {
  .eyebrow {
    letter-spacing: 0.08em;
    gap: 8px;
    padding: 7px 12px;
  }
}


/* ── Movimiento reducido ── */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .btn:hover,
  .card:hover {
    transform: none;
  }
}

/* ── Impresión ── */
@media print {
  .site-header,
  .aurora,
  .grid-bg,
  .float,
  .legal-nav,
  .skip-link {
    display: none !important;
  }

  .final,
  .card.card-dark,
  .panel-dark {
    background: none;
    color: #000;
    border: 1px solid #000;
  }
}
