/* ==========================================================================
   Fermachem — Sitio institucional
   Sistema de estilos compartido
   ========================================================================== */

:root {
  /* Paleta de marca (Manual de Marca Fermachem) */
  --navy: #164862;
  --navy-dark: #0f3547;
  --navy-tint-10: rgba(22, 72, 98, 0.1);
  --navy-tint-30: rgba(22, 72, 98, 0.3);
  --amber: #F9B123;
  --amber-dark: #d99610;
  --green: #B1CC3A;
  --green-dark: #7f9423;
  --paper: #ffffff;
  --mist: #F5F7F8;
  --mist-dark: #e9edee;
  --ink: #1c2b33;
  --ink-muted: #55707c;

  /* Tintes de marca para fondos de sección (más notorios que --mist) */
  --navy-tint-05: rgba(22, 72, 98, 0.05);
  --amber-tint: rgba(249, 177, 35, 0.10);
  --green-tint: rgba(177, 204, 58, 0.12);

  /* Tipografía: stack de sistema, sin requests externos */
  --font-base: "Segoe UI", Inter, system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;

  /* Ritmo / layout */
  --max-width: 1180px;
  --section-pad: clamp(1.75rem, 3.5vw, 3rem);
  --radius: 14px;
  --radius-sm: 8px;

  /* Movimiento */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur-fast: 180ms;
  --dur-base: 550ms;
}

/* ---- Reset base ---------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-base);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p { margin: 0; }
button { font: inherit; cursor: pointer; background: none; border: none; color: inherit; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy);
  opacity: 0.7;
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.01em;
}

.section-lede {
  font-size: 1.05rem;
  color: var(--ink-muted);
  max-width: 62ch;
  margin-top: 0.9rem;
}

.section-alt { background: var(--mist); }
.section-navy-tint { background: var(--navy-tint-05); }
.section-amber-tint { background: var(--amber-tint); }
.section-green-tint { background: var(--green-tint); }

/* Franja de marca — primer elemento visual del sitio, no ocupa layout */
.brand-bar {
  position: relative;
  z-index: 1;
  height: 4px;
  width: 100%;
  background: linear-gradient(90deg, var(--navy), var(--amber), var(--green));
}

/* Ícono circular de acento de color, usado en tarjetas de pilares y de construcción */
.accent-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.5rem;
}
.accent-icon svg { width: 20px; height: 20px; }
.accent-icon--navy { background: var(--navy); }
.accent-icon--navy svg { fill: var(--paper); }
.accent-icon--amber { background: var(--amber); }
.accent-icon--amber svg { fill: var(--navy-dark); }
.accent-icon--green { background: var(--green); }
.accent-icon--green svg { fill: var(--navy-dark); }
.accent-icon--neutral { background: var(--mist-dark); }
.accent-icon--neutral svg { fill: var(--ink-muted); }

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

/* ---- Botones --------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  transition: transform var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease), background-color var(--dur-fast) var(--ease);
}
.btn-primary {
  background: var(--amber);
  color: var(--navy-dark);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px -8px rgba(249, 177, 35, 0.55);
}
.btn-secondary {
  border: 1.5px solid var(--navy);
  color: var(--navy);
}
.btn-secondary:hover {
  background: var(--navy);
  color: var(--paper);
  transform: translateY(-2px);
}
.btn .arrow { transition: transform var(--dur-fast) var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }

.header-sentinel { position: absolute; top: 0; left: 0; height: 1px; width: 1px; }

main { position: relative; z-index: 1; }

/* ---- Header / Navegación --------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: box-shadow var(--dur-base) var(--ease), border-color var(--dur-base) var(--ease);
}
.site-header.is-scrolled {
  box-shadow: 0 6px 24px -12px rgba(22, 72, 98, 0.25);
  border-bottom-color: var(--mist-dark);
}
/* Tema oscuro (Inicio con video de fondo): header/nav pasan a navy translúcido */
body.page-video-bg .site-header {
  background: rgba(15, 53, 71, 0.72);
  border-bottom-color: rgba(255, 255, 255, 0.12);
}
body.page-video-bg .site-header.is-scrolled { border-bottom-color: rgba(255, 255, 255, 0.2); }
body.page-video-bg .main-nav a,
body.page-video-bg .main-nav a[aria-current="page"] { color: var(--paper); }
body.page-video-bg .nav-toggle span { background: var(--paper); }
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-top: 0.9rem;
  padding-bottom: 0.9rem;
}
.brand {
  display: flex;
  align-items: center;
  /* área de protección: espacio libre ≈ ancho de una minúscula del logotipo */
  padding: 0.35rem 0.6rem;
}
.brand img {
  height: 34px;
  min-height: 28px;
  width: auto;
}
@media (min-width: 861px) {
  .brand img { height: 48px; }
}
.main-nav ul {
  display: flex;
  align-items: center;
  gap: 1.9rem;
}
.main-nav a {
  display: inline-block;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--navy);
  position: relative;
  padding: 0.3rem 0.05rem;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 0%;
  height: 2px;
  background: var(--amber);
  transition: width var(--dur-fast) var(--ease);
}
.main-nav a:hover::after,
.main-nav a[aria-current="page"]::after {
  width: 100%;
}
.main-nav a[aria-current="page"] { color: var(--navy); font-weight: 700; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 0.5rem;
}
.nav-toggle span {
  width: 22px; height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform var(--dur-fast) var(--ease), opacity var(--dur-fast) var(--ease);
}

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .main-nav {
    position: fixed;
    top: 68px;
    right: 0;
    left: auto;
    width: min(78vw, 320px);
    /* vh en vez de % — .site-header usa backdrop-filter, lo que lo
       convierte en containing block de los descendientes fixed y
       rompe un bottom:0 relativo al viewport real. */
    height: calc(100vh - 68px);
    background: var(--paper);
    box-shadow: -14px 0 32px -16px rgba(22,72,98,0.25);
    transform: translateX(100%);
    transition: transform var(--dur-base) var(--ease);
    padding: 2rem 1.75rem;
    overflow-y: auto;
  }
  .main-nav.is-open { transform: translateX(0); }
  .main-nav ul { flex-direction: column; align-items: flex-start; gap: 1.35rem; }
  .nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.is-open span:nth-child(2) { opacity: 0; }
  .nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  body.page-video-bg .main-nav { background: var(--navy-dark); }
}

/* ---- Wave dividers ----------------------------------------------------
   Curvas orgánicas inspiradas en el patrón del Manual de Marca.
   Cada wrapper recorta un SVG full-width; las capas internas llevan
   un leve parallax ambiental (ver main.js). No compiten con el texto.
------------------------------------------------------------------------ */
.wave-divider {
  position: relative;
  width: 100%;
  overflow: hidden;
  line-height: 0;
  pointer-events: none;
}
.wave-divider svg { width: 100%; height: auto; display: block; }
.wave-layer { will-change: transform; }

.wave-divider--hero { margin-top: -1px; }
.wave-divider--thin svg { height: 72px; }

/* ---- Scroll reveal ------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity var(--dur-base) var(--ease), transform var(--dur-base) var(--ease);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-group > * { transition-delay: calc(var(--i, 0) * 90ms); }

/* ---- Placeholder de contenido pendiente ---------------------------- */
.pending-placeholder {
  border: 1.5px dashed var(--navy-tint-30);
  background: var(--mist);
  border-radius: var(--radius);
  padding: 1.1rem 1.35rem;
  color: var(--ink-muted);
  font-style: italic;
  font-size: 0.95rem;
  position: relative;
}
.pending-tag {
  display: inline-block;
  font-style: normal;
  font-weight: 700;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--navy-dark);
  background: var(--amber);
  border-radius: 999px;
  padding: 0.2rem 0.6rem;
  margin-bottom: 0.55rem;
}

/* ---- Tarjetas genéricas --------------------------------------------- */
.card {
  background: var(--paper);
  border: 1px solid var(--mist-dark);
  border-radius: var(--radius);
  padding: 1.35rem;
  transition: transform var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -24px rgba(22, 72, 98, 0.3);
  border-color: transparent;
}

/* Tema oscuro (Inicio con video de fondo): los encabezados/eyebrows que
   quedan directo sobre el video pasan a claro. Las tarjetas (.card,
   .stat-card) se quedan blancas a propósito — son las "islas" de
   contenido legible sobre el video, ver más abajo. */
body.page-video-bg .eyebrow { color: rgba(255, 255, 255, 0.75); opacity: 1; }
body.page-video-bg .section-title { color: var(--paper); }
body.page-video-bg .section-lede { color: rgba(255, 255, 255, 0.78); }

/* ==========================================================================
   INICIO
   ========================================================================== */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(2rem, 5vw, 3.5rem) 0 clamp(2.25rem, 5vw, 3.75rem);
}
.hero__content { max-width: 780px; }
.hero h1 {
  font-size: clamp(2.1rem, 4.6vw, 3.4rem);
  font-weight: 700;
  color: var(--paper);
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.hero__subtitle {
  margin-top: 1.4rem;
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.85);
  max-width: 60ch;
}
.hero__cta { margin-top: 1.75rem; }

/* ---- Fondo de video fijo para toda la página (Inicio) -----------------
   .page-bg vive fuera de .hero, en position:fixed cubriendo el viewport
   completo, así que no se mueve con el scroll — solo el contenido (main,
   header, footer) se desplaza encima. El navy sólido es la base siempre
   visible; el video es una capa adicional que se desvanece encima cuando
   logra cargar (desktop + sin prefers-reduced-motion). */
.page-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: var(--navy);
}
.page-bg__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1200ms var(--ease);
}
.page-bg__video.is-visible { opacity: 1; }
.page-bg__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15,53,71,0.72) 0%, rgba(15,53,71,0.58) 45%, rgba(15,53,71,0.88) 100%);
}

/* Cifras clave */
.stats {
  padding: var(--section-pad) 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 1.75rem;
}
.stat-card {
  background: var(--paper);
  border-radius: var(--radius);
  padding: 1.25rem 1.25rem;
  border-top: 3px solid var(--mist-dark);
  box-shadow: 0 12px 30px -14px rgba(0, 0, 0, 0.35);
}
.stat-card--navy { border-top-color: var(--navy); }
.stat-card--amber { border-top-color: var(--amber); }
.stat-card--green { border-top-color: var(--green); }
.stat-card .stat-label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.stat-card .stat-value {
  margin-top: 0.6rem;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.35;
}
.stat-card .stat-value.is-muted {
  font-size: 0.92rem;
  font-weight: 500;
  font-style: italic;
  color: var(--ink-muted);
}
@media (max-width: 900px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 540px) {
  .stats-grid { grid-template-columns: 1fr; }
}

/* Video institucional */
.video-section { padding: var(--section-pad) 0; }
.video-frame {
  margin-top: 1.5rem;
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  opacity: 0;
  transform: scale(0.98);
  transition: opacity 700ms var(--ease), transform 700ms var(--ease);
}
.video-frame.is-visible { opacity: 1; transform: scale(1); }

.video-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  text-align: center;
  padding: 2rem;
  color: var(--paper);
  background:
    radial-gradient(circle at 20% 20%, rgba(177, 204, 58, 0.35), transparent 55%),
    radial-gradient(circle at 85% 80%, rgba(249, 177, 35, 0.3), transparent 55%),
    linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
  border: 1.5px dashed rgba(255,255,255,0.35);
}
.video-placeholder__icon {
  width: 68px; height: 68px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.55);
  display: flex; align-items: center; justify-content: center;
  transition: transform var(--dur-fast) var(--ease), background-color var(--dur-fast) var(--ease);
}
.video-placeholder:hover .video-placeholder__icon {
  transform: scale(1.06);
  background: rgba(255,255,255,0.12);
}
.video-placeholder__icon svg { width: 22px; height: 22px; fill: var(--paper); margin-left: 3px; }
.video-placeholder__label {
  font-size: 0.95rem;
  font-weight: 500;
  opacity: 0.92;
}
.video-placeholder .pending-tag { background: var(--amber); }

/* Mensaje institucional */
.statement {
  padding: var(--section-pad) 0;
  position: relative;
}
.statement__mark {
  font-size: 3.5rem;
  line-height: 1;
  color: var(--amber);
  font-weight: 700;
  display: block;
  margin-bottom: 0.5rem;
}
.statement__text {
  font-size: clamp(1.2rem, 2.2vw, 1.5rem);
  font-weight: 500;
  color: var(--paper);
  max-width: 52rem;
  line-height: 1.5;
  margin-inline: auto;
  text-align: center;
}
.statement .container { text-align: center; }
.statement__mark { margin-inline: auto; }
.statement__mark--close { margin-top: 0.5rem; margin-bottom: 0; }

/* Tres pilares */
.pillars { padding: var(--section-pad) 0; }
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 1.75rem;
}
.pillar-card {
  display: block;
  border-top: 3px solid var(--mist-dark);
  box-shadow: 0 12px 30px -14px rgba(0, 0, 0, 0.35);
}
.pillar-card--navy { border-top-color: var(--navy); }
.pillar-card--amber { border-top-color: var(--amber); }
.pillar-card--green { border-top-color: var(--green); }
.pillar-card__index {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--amber-dark);
  letter-spacing: 0.05em;
}
.pillar-card h3 {
  margin-top: 0.75rem;
  font-size: 1.25rem;
  color: var(--navy);
  font-weight: 700;
}
.pillar-card p {
  margin-top: 0.6rem;
  color: var(--ink-muted);
  font-size: 0.98rem;
}
.pillar-card__link {
  margin-top: 1.2rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  color: var(--navy);
  font-size: 0.92rem;
}
.pillar-card__link .arrow { transition: transform var(--dur-fast) var(--ease); }
.pillar-card:hover .pillar-card__link .arrow { transform: translateX(3px); }
@media (max-width: 900px) {
  .pillars-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   EL PROYECTO
   ========================================================================== */
.page-hero {
  padding: clamp(2rem, 4vw, 3rem) 0 clamp(1.5rem, 3vw, 2rem);
}
.page-hero h1 {
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  color: var(--navy);
  font-weight: 700;
  letter-spacing: -0.02em;
}
.page-hero p {
  margin-top: 1.2rem;
  font-size: 1.08rem;
  color: var(--ink-muted);
  max-width: 68ch;
}

.build-section { padding: var(--section-pad) 0; }
.build-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 1.5rem;
}
.build-card {
  border-top: 3px solid var(--mist-dark);
}
.build-card--navy { border-top-color: var(--navy); }
.build-card--amber { border-top-color: var(--amber); }
.build-card--green { border-top-color: var(--green); }
.build-card--neutral { border-top-color: var(--mist-dark); }
.build-card h3 {
  font-size: 1.1rem;
  color: var(--navy);
  font-weight: 700;
  margin-bottom: 0.75rem;
}
.build-card p { color: var(--ink-muted); font-size: 0.96rem; }

/* ---- Tarjetas con imagen (¿Qué se está construyendo?) ------------------
   Base (mobile / dispositivos sin hover): imagen arriba + texto debajo,
   todo visible — el contenido nunca queda inaccesible al no poder hacer
   hover. En dispositivos con hover real, la imagen llena la tarjeta y el
   texto aparece como capa al pasar el cursor (imagen → texto).
   object-fit: cover hace que la imagen llene sin deformarse. */
.build-card--media { padding: 0; overflow: hidden; }
.build-card--media .build-card__image { height: 190px; }
.build-card--media .build-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.build-card--media .build-card__caption { display: none; }
.build-card--media .build-card__body { padding: 1.35rem; }
.build-card--media .build-card__body h3 { margin-bottom: 0.5rem; }

@media (hover: hover) {
  .build-card--media { position: relative; min-height: 300px; }
  .build-card--media .build-card__image { position: absolute; inset: 0; height: auto; }
  .build-card--media .build-card__caption {
    display: block;
    position: absolute;
    left: 0; right: 0; bottom: 0;
    z-index: 1;
    padding: 1rem 1.25rem;
    color: var(--paper);
    font-weight: 700;
    font-size: 1.1rem;
    background: linear-gradient(to top, rgba(15, 53, 71, 0.9), rgba(15, 53, 71, 0));
    transition: opacity var(--dur-base) var(--ease);
  }
  .build-card--media .build-card__body {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: rgba(15, 53, 71, 0.94);
    opacity: 0;
    transition: opacity var(--dur-base) var(--ease);
  }
  .build-card--media:hover .build-card__body,
  .build-card--media:focus-within .build-card__body { opacity: 1; }
  .build-card--media:hover .build-card__caption,
  .build-card--media:focus-within .build-card__caption { opacity: 0; }
  .build-card--media .build-card__body h3 { color: var(--paper); }
  .build-card--media .build-card__body p { color: rgba(255, 255, 255, 0.85); }
  .build-card--media .build-card__body .accent-icon { background: rgba(255, 255, 255, 0.16); }
  .build-card--media .build-card__body .accent-icon svg { fill: #fff; }
}

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

.why-section { padding: var(--section-pad) 0; }
.why-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.phase-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1.1rem;
  background: var(--navy);
  color: var(--paper);
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  margin-top: 1.25rem;
}
.phase-badge__dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--amber);
}
.phase-note {
  margin-top: 0.9rem;
  font-size: 0.9rem;
  color: var(--ink-muted);
  font-style: italic;
}

/* Timeline / Programa general */
.timeline-section { padding: var(--section-pad) 0; }
.timeline {
  margin-top: 2rem;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  position: relative;
}
.timeline__track {
  position: absolute;
  top: 11px;
  left: 5%;
  right: 5%;
  height: 2px;
  background: var(--mist-dark);
  transform-origin: left center;
}
.timeline__track-fill {
  position: absolute;
  top: 0; left: 0;
  height: 100%;
  width: 100%;
  background: var(--navy);
  opacity: 0.35;
  transform-origin: left center;
  transform: scaleX(0);
  transition: transform 900ms var(--ease);
}
.timeline__track-fill.is-visible { transform: scaleX(1); }

.timeline__step {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 0.5rem;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity var(--dur-base) var(--ease), transform var(--dur-base) var(--ease);
  transition-delay: calc(var(--i, 0) * 110ms);
}
.timeline__step.is-visible { opacity: 1; transform: translateY(0); }

.timeline__node {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--paper);
  border: 2.5px solid var(--mist-dark);
  transition: border-color var(--dur-base) var(--ease), background-color var(--dur-base) var(--ease);
}
.timeline__step.is-current .timeline__node {
  background: var(--amber);
  border-color: var(--amber);
}
.timeline__label {
  margin-top: 0.9rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink-muted);
  max-width: 11rem;
}
.timeline__step.is-current .timeline__label { color: var(--navy); font-weight: 700; }
.timeline__current-tag {
  margin-top: 0.4rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--amber-dark);
}

@media (max-width: 760px) {
  .timeline { flex-direction: column; gap: 1.75rem; align-items: flex-start; }
  .timeline__track { top: 0; left: 11px; right: auto; width: 2px; height: 100%; }
  .timeline__track-fill { transform: scaleY(0); transform-origin: top center; width: 100%; height: 100%; }
  .timeline__track-fill.is-visible { transform: scaleY(1); }
  .timeline__step { flex-direction: row; text-align: left; padding-left: 0; }
  .timeline__label { margin-top: 0; margin-left: 1rem; max-width: none; }
  .timeline__current-tag { margin-left: 1rem; }
}

.commitment {
  padding: var(--section-pad) 0;
  background: var(--navy);
  color: var(--paper);
}
.commitment .section-title { color: var(--paper); }
.commitment > .container > p {
  margin-top: 1.1rem;
  color: rgba(255,255,255,0.82);
  max-width: 68ch;
  font-size: 1.02rem;
}
.commitment-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 1.75rem;
}
.commitment-item h3 {
  color: var(--paper);
  font-size: 1.05rem;
  font-weight: 700;
}
.commitment-item p {
  margin-top: 0.6rem;
  color: rgba(255,255,255,0.78);
  font-size: 0.96rem;
}
@media (max-width: 900px) {
  .commitment-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   PREGUNTAS FRECUENTES — acordeón
   Mismos tokens que el resto del sitio: fondo/borde de .card, radios,
   duraciones de transición. La apertura/cierre anima con la técnica
   grid-template-rows (0fr → 1fr), sin medir alturas en JS.
   ========================================================================== */
.faq-section { padding: var(--section-pad) 0; }
.faq-intro { max-width: 68ch; }
.faq-intro p { margin-top: 1.2rem; font-size: 1.05rem; color: var(--ink-muted); }

.faq-category { margin-top: 2.5rem; }
.faq-category:first-of-type { margin-top: 2rem; }
.faq-category__title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--navy);
  padding-bottom: 0.6rem;
  border-bottom: 2px solid var(--mist-dark);
  margin-bottom: 1.1rem;
}

.accordion { display: flex; flex-direction: column; gap: 0.75rem; }
.accordion-item {
  background: var(--paper);
  border: 1px solid var(--mist-dark);
  border-radius: var(--radius);
  overflow: hidden;
}
.accordion-item__question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.35rem;
  text-align: left;
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--navy);
}
.accordion-item__chevron {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  transition: transform var(--dur-fast) var(--ease);
}
.accordion-item__chevron svg { width: 100%; height: 100%; fill: var(--ink-muted); }
.accordion-item.is-open .accordion-item__chevron { transform: rotate(180deg); }

.accordion-item__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows var(--dur-base) var(--ease);
}
.accordion-item.is-open .accordion-item__panel { grid-template-rows: 1fr; }
.accordion-item__panel-inner { overflow: hidden; }
.accordion-item__answer {
  padding: 0 1.35rem 1.25rem;
  color: var(--ink-muted);
  font-size: 0.96rem;
  line-height: 1.65;
}
.accordion-item__answer p { margin-top: 0.7rem; }
.accordion-item__answer p:first-child { margin-top: 0; }
.accordion-item__answer ul {
  list-style: disc;
  margin: 0.6rem 0 0;
  padding-left: 1.3rem;
}
.accordion-item__answer li { margin-top: 0.3rem; }
.accordion-item__answer .pending-placeholder { margin-top: 0.9rem; font-size: 0.88rem; }

.faq-closing {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--mist-dark);
  text-align: center;
}
.faq-closing p { color: var(--ink-muted); font-size: 1.02rem; margin-bottom: 1.25rem; }

/* ==========================================================================
   CONTACTO — formulario
   Mismos tokens de color/radio/foco que el resto del sitio.
   ========================================================================== */
.contact-section { padding: var(--section-pad) 0; }
.contact-form-card {
  max-width: 640px;
  margin: 0 auto;
}
.form-field { margin-bottom: 1.35rem; }
.form-field label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 0.5rem;
}
.form-field input[type="text"],
.form-field input[type="email"],
.form-field textarea {
  width: 100%;
  font: inherit;
  font-size: 0.98rem;
  color: var(--ink);
  background: var(--paper);
  border: 1.5px solid var(--mist-dark);
  border-radius: var(--radius-sm);
  padding: 0.75rem 0.9rem;
  transition: border-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}
.form-field textarea { min-height: 130px; resize: vertical; }
.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(249, 177, 35, 0.3);
}
.form-field__hint { font-size: 0.82rem; color: var(--ink-muted); margin-top: 0.4rem; font-style: italic; }

.form-consent {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin: 1.5rem 0;
}
.form-consent input[type="checkbox"] {
  margin-top: 0.2rem;
  width: 18px;
  height: 18px;
  accent-color: var(--navy);
  flex-shrink: 0;
}
.form-consent label {
  font-size: 0.9rem;
  color: var(--ink-muted);
  line-height: 1.5;
}
.form-consent a {
  color: var(--navy);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--mist-dark);
  transition: color var(--dur-fast) var(--ease);
}
.form-consent a:hover { color: var(--amber-dark); }
.form-consent .pending-tag { margin-left: 0.4rem; vertical-align: middle; }

.form-error {
  font-size: 0.85rem;
  font-style: italic;
  color: var(--ink-muted);
  margin-top: 1rem;
}

.form-success {
  text-align: center;
  padding: 1.5rem 0.5rem;
}
.form-success .accent-icon { margin: 0 auto 1.1rem; }
.form-success h3 { color: var(--navy); margin-bottom: 0.5rem; }
.form-success p { color: var(--ink-muted); }

/* ==========================================================================
   AVANCES — línea de tiempo vertical (.progress-timeline)
   Hitos completados: nodo verde sólido + check + riel verde.
   Hitos próximos: nodo hueco (contorno gris) + riel gris. El contraste
   hace visible el avance de un vistazo. Reutiliza .card, --radius,
   --green, y la clase .reveal para la entrada al hacer scroll.
   ========================================================================== */
/* Banda navy sólida (como .commitment/.statement): las tarjetas blancas de
   los hitos resaltan sobre el fondo oscuro. Solo se recolorean los elementos
   que quedan directo sobre el navy (títulos, riel, nodos huecos); el interior
   de las tarjetas no cambia. */
.avances-section {
  padding: var(--section-pad) 0;
  background: var(--navy);
}
.avances-section .eyebrow { color: rgba(255, 255, 255, 0.75); opacity: 1; }
.avances-section .section-title { color: var(--paper); }
.progress-timeline { margin-top: 2rem; }

.progress-item {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 1.1rem;
  margin-bottom: 1.75rem;
}
.progress-item:last-child { margin-bottom: 0; }

/* Columna del riel: nodo + línea vertical continua detrás.
   La línea abarca el alto del item + el margin inferior para bridgear con
   el siguiente hito; el nodo (opaco, z-index) la cubre donde toca. */
.progress-item__rail {
  position: relative;
  display: flex;
  justify-content: center;
}
.progress-item__rail::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  height: calc(100% + 1.75rem);
  background: var(--mist-dark);
}
.progress-item:last-child .progress-item__rail::before { display: none; }
.progress-item--done .progress-item__rail::before { background: var(--green); }
/* Sobre el fondo navy: riel "próximo" en blanco translúcido y nodo hueco
   con fondo navy (si quedara blanco se leería como lleno, no como contorno). */
.avances-section .progress-item__rail::before { background: rgba(255, 255, 255, 0.28); }
.avances-section .progress-item--done .progress-item__rail::before { background: var(--green); }
.avances-section .progress-item--next .progress-item__node {
  background: var(--navy);
  border-color: rgba(255, 255, 255, 0.45);
}
.avances-section .progress-item__content {
  box-shadow: 0 12px 30px -14px rgba(0, 0, 0, 0.45);
  border-color: transparent;
}

.progress-item__node {
  position: relative;
  z-index: 1;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--paper);
  border: 2.5px solid var(--mist-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
  flex-shrink: 0;
}
.progress-item--done .progress-item__node {
  background: var(--green);
  border-color: var(--green);
}
.progress-item__node svg { width: 15px; height: 15px; fill: #fff; }

.progress-tag {
  display: inline-block;
  font-weight: 700;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 0.2rem 0.6rem;
  margin-bottom: 0.6rem;
}
.progress-tag--done { color: var(--green-dark); background: rgba(177, 204, 58, 0.18); }
.progress-tag--next { color: var(--ink-muted); background: transparent; border: 1px solid var(--mist-dark); }

.progress-item__content h3 {
  font-size: 1.1rem;
  color: var(--navy);
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.progress-item__content p { color: var(--ink-muted); font-size: 0.96rem; }

/* Slot de imagen opcional: solo existe si el hito trae imagen; si no,
   se omite el div y no queda hueco (el margin vive aquí, no en la tarjeta). */
.progress-item__media {
  margin-top: 1rem;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--mist-dark);
}
.progress-item__media img { width: 100%; height: auto; display: block; }

/* Hito con galería: texto y imagen(es) lado a lado dentro de la tarjeta.
   Una sola imagen se muestra fija; varias rotan en carrusel (ver main.js). */
.progress-item__content.has-gallery {
  display: flex;
  gap: 1.35rem;
  align-items: flex-start;
}
.progress-item__text { flex: 1 1 auto; min-width: 0; }
.progress-item__gallery {
  flex: 0 0 44%;
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--mist-dark);
  background: var(--mist);
}
.progress-item__gallery img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;   /* llena el marco sin deformar */
  display: block;
}
/* En carrusel, las diapositivas se cruzan con fundido; fuera de carrusel
   (una sola imagen) la imagen es visible por defecto. */
.progress-item__gallery[data-carousel] img {
  opacity: 0;
  transition: opacity 700ms var(--ease);
}
.progress-item__gallery[data-carousel] img.is-active { opacity: 1; }

.progress-item__dots {
  position: absolute;
  left: 0; right: 0; bottom: 8px;
  z-index: 2;
  display: flex;
  justify-content: center;
  gap: 6px;
}
.progress-item__dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  padding: 0;
  background: rgba(255, 255, 255, 0.55);
  box-shadow: 0 0 3px rgba(0, 0, 0, 0.35);
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease);
}
.progress-item__dot.is-active { background: #fff; }

@media (max-width: 640px) {
  .progress-item__content.has-gallery { flex-direction: column; }
  .progress-item__gallery { flex-basis: auto; width: 100%; margin-top: 1rem; }
}

@media (max-width: 600px) {
  .progress-item { grid-template-columns: 30px 1fr; gap: 0.85rem; }
  .progress-item__node { width: 24px; height: 24px; }
  .progress-item__node svg { width: 13px; height: 13px; }
}

/* ==========================================================================
   Páginas stub
   ========================================================================== */
.stub-main {
  min-height: 48vh;
  display: flex;
  align-items: center;
  padding: clamp(2rem, 5vw, 3.5rem) 0;
}
.stub-box {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}
.stub-box h1 {
  font-size: clamp(1.7rem, 3.4vw, 2.3rem);
  color: var(--navy);
  font-weight: 700;
  margin-bottom: 1.4rem;
}
.stub-box .pending-placeholder {
  display: inline-block;
  text-align: left;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.85);
  position: relative;
  z-index: 1;
}
.site-footer .wave-divider { transform: translateY(1px); }
/* Solo padding vertical: el horizontal lo aporta .container (0 1.5rem).
   Usar el shorthand aquí lo anulaba y en móvil el texto quedaba pegado al borde. */
.footer-inner {
  padding-top: 2.25rem;
  padding-bottom: 1.75rem;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 2.5rem;
}
.footer-brand img { height: 30px; }
@media (min-width: 861px) {
  .footer-brand img { height: 46px; }
}
.footer-brand__rule {
  width: 40px;
  height: 3px;
  border-radius: 2px;
  background: var(--green);
  margin-top: 1.1rem;
}
.footer-brand p {
  margin-top: 0.9rem;
  font-size: 0.92rem;
  color: rgba(255,255,255,0.65);
  max-width: 42ch;
}
.footer-nav ul {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7rem 1.5rem;
}
.footer-nav a {
  font-size: 0.92rem;
  color: rgba(255,255,255,0.78);
  transition: color var(--dur-fast) var(--ease);
}
.footer-nav a:hover { color: var(--amber); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.14);
  padding-top: 1.35rem;
  padding-bottom: 1.35rem;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.55);
}
.footer-bottom a {
  color: rgba(255,255,255,0.72);
  text-decoration: underline;
  text-decoration-color: rgba(255,255,255,0.3);
  transition: color var(--dur-fast) var(--ease);
}
.footer-bottom a:hover { color: var(--amber); }
@media (max-width: 700px) {
  .footer-inner { grid-template-columns: 1fr; }
}

/* ==========================================================================
   NOSOTROS (Fermaca Dreams) — clases scoped, no afectan otras páginas
   ========================================================================== */
.nosotros-section { padding: calc(var(--section-pad) * 0.7) 0; }

.nosotros-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  gap: clamp(1.5rem, 4vw, 3rem);
}
.nosotros-split--reverse .nosotros-split__media { order: -1; }
.nosotros-split__text { align-self: center; }
.nosotros-split__text p { color: var(--ink-muted); font-size: 1.05rem; line-height: 1.7; }
.nosotros-split__text p + p { margin-top: 1rem; }

.nosotros-figure {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--mist-dark);
  box-shadow: 0 20px 45px -26px rgba(22, 72, 98, 0.4);
}
.nosotros-figure img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* Las fotos son horizontales (3:2). Forzarlas a un marco vertical las
   recortaba mucho y disparaba el alto de la fila, dejando la columna de
   texto casi vacía. */
.nosotros-figure--tall { aspect-ratio: 3 / 2; }
/* En escritorio la imagen iguala la altura del texto (recorta con cover en
   vez de crecer a su tamaño natural, que dejaba espacio en blanco al lado).
   La imagen se posiciona en absoluto para no aportar su alto a la fila; el
   min-height del contenedor fija un piso. En móvil vuelve a flujo normal
   con proporción 16/10 (ver media query). */
.nosotros-figure--fill { width: 100%; }
@media (min-width: 901px) {
  .nosotros-split__media { position: relative; min-height: 260px; }
  .nosotros-figure--fill { position: absolute; inset: 0; height: 100%; }
}

/* Banda parallax full-width */
.nosotros-parallax {
  position: relative;
  width: 100%;
  height: clamp(220px, 30vw, 380px);
  overflow: hidden;
}
.nosotros-parallax__img {
  position: absolute;
  left: 0;
  top: -12%;
  width: 100%;
  height: 124%;
  object-fit: cover;
  display: block;
  will-change: transform;
}
.nosotros-parallax::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15,53,71,0.25), rgba(15,53,71,0.5));
}

/* Mosaico compacto: 4 fotos horizontales en cuadrícula 2×2 (sin recorte). */
.nosotros-mosaic {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin-top: 1.75rem;
}
.nosotros-mosaic .nosotros-figure { aspect-ratio: 3 / 2; }

/* Cierre + CTA */
.nosotros-closing {
  max-width: 60rem;
  margin: 0 auto;
  text-align: center;
}
.nosotros-closing p {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  font-weight: 500;
  color: var(--navy);
  line-height: 1.6;
}
.nosotros-cta { margin-top: 1.75rem; text-align: center; }

@media (max-width: 900px) {
  .nosotros-split { grid-template-columns: 1fr; }
  .nosotros-split--reverse .nosotros-split__media { order: 0; }
  .nosotros-figure--tall { aspect-ratio: 16 / 10; }
  .nosotros-figure--fill { aspect-ratio: 16 / 10; min-height: 0; }
}
@media (max-width: 640px) {
  .nosotros-mosaic { grid-template-columns: 1fr; }
}

/* ==========================================================================
   COMUNIDAD E IMPACTO — clases scoped, no afectan otras páginas
   Reutiliza tokens y componentes existentes (.card, .build-card,
   .accent-icon, .section-title, .pending-tag, wave-divider).
   ========================================================================== */
.comunidad-section { padding: var(--section-pad) 0; }
.comunidad-note { margin-top: 1.5rem; color: var(--ink-muted); max-width: 68ch; }

/* Espacios de participación */
.comunidad-spaces {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1.75rem;
}
.comunidad-space {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--mist-dark);
  border-left: 4px solid var(--green);
  border-radius: var(--radius-sm);
  padding: 0.9rem 1.1rem 0.9rem 2rem;
  font-weight: 600;
  color: var(--navy);
  font-size: 0.98rem;
}
.comunidad-space::before {
  content: "";
  position: absolute;
  left: 1.05rem;
  top: 1.35rem;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--green);
}

/* Banda MAC (navy) */
.comunidad-mac {
  padding: var(--section-pad) 0;
  background: var(--navy);
  color: var(--paper);
  position: relative;
}
.comunidad-mac .section-title { color: var(--paper); }
.comunidad-mac > .container > p {
  margin-top: 1.1rem;
  color: rgba(255,255,255,0.82);
  max-width: 68ch;
}

/* Halo claro difuminado detrás del título del diagrama y de los pasos.
   Se dibuja en un ::before con blur para que se funda con el navy en vez
   de recortar un rectángulo sólido; sobre él, el borde navy de los pasos
   1 y 4 sí contrasta. */
.mac-diagram {
  position: relative;
  margin-top: 2rem;
  padding: clamp(1.5rem, 3vw, 2.25rem);
}
.mac-diagram::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 26px;
  background: rgba(240, 244, 246, 0.96);
  filter: blur(16px);
  pointer-events: none;
}
.mac-diagram > * { position: relative; z-index: 1; }
.mac-flow__title { color: var(--navy); margin-top: 0; font-size: 1.15rem; font-weight: 700; }

/* Diagrama del MAC — estilo de tarjetas de la imagen de referencia */
.mac-flow {
  display: flex;
  align-items: stretch;
  gap: 0.5rem;
  margin-top: 1.5rem;
}
.mac-step {
  flex: 1;
  background: var(--paper);
  border-radius: var(--radius);
  border: 1px solid var(--mist-dark);
  border-left: 5px solid var(--navy);
  padding: 1.1rem 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  box-shadow: 0 12px 26px -20px rgba(22, 72, 98, 0.45);
}
.mac-step--navy { border-left-color: var(--navy); }
.mac-step--amber { border-left-color: var(--amber); }
.mac-step--green { border-left-color: var(--green); }
.mac-step__num {
  width: 30px; height: 30px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.9rem;
  color: var(--paper);
}
.mac-step--navy .mac-step__num { background: var(--navy); }
.mac-step--amber .mac-step__num { background: var(--amber); color: var(--navy-dark); }
.mac-step--green .mac-step__num { background: var(--green); color: var(--navy-dark); }
.mac-step p { color: var(--ink); font-size: 0.92rem; line-height: 1.45; }
.mac-flow__arrow {
  align-self: center;
  flex-shrink: 0;
  color: rgba(22, 72, 98, 0.45);
  font-size: 1.35rem;
}

/* Medios de contacto (dentro de la banda MAC) */
.mac-contact { margin-top: 2.25rem; }
.mac-contact h3 { color: var(--paper); font-size: 1.05rem; font-weight: 700; }
.mac-contact ul { display: flex; flex-wrap: wrap; gap: 1.25rem; margin-top: 0.75rem; }
.mac-contact li { color: rgba(255,255,255,0.85); font-size: 0.95rem; }
.mac-contact a {
  color: var(--amber);
  text-decoration: underline;
  text-decoration-color: rgba(249,177,35,0.4);
  transition: color var(--dur-fast) var(--ease);
}
.mac-contact a:hover { color: var(--amber-dark); }
.mac-contact > p { margin-top: 1.1rem; color: rgba(255,255,255,0.82); }

/* Inversión social */
.comunidad-list {
  margin-top: 1.25rem;
  display: grid;
  gap: 0.6rem;
  max-width: 68ch;
}
.comunidad-list li {
  position: relative;
  padding-left: 1.6rem;
  color: var(--ink);
}
.comunidad-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.55em;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--green);
}
.comunidad-ejes__title { color: var(--navy); margin-top: 2.75rem; font-size: 1.3rem; font-weight: 700; }
.ejes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 1.5rem;
}

@media (max-width: 900px) {
  .comunidad-spaces { grid-template-columns: repeat(2, 1fr); }
  .ejes-grid { grid-template-columns: repeat(2, 1fr); }
  .mac-flow { flex-direction: column; }
  /* En vertical las flechas horizontales estorban; el orden lo comunican los números 1–4. */
  .mac-flow__arrow { display: none; }
}
@media (max-width: 620px) {
  .comunidad-spaces { grid-template-columns: 1fr; }
  .ejes-grid { grid-template-columns: 1fr; }
}
