/* ==========================================================================
   Home institucional (HOME-DESIGN-01)
   Composicion propia inspirada solo en estructura/ritmo de site/ (plantilla
   comercial de referencia, nunca copiada): sin Bootstrap, sin iconos ni
   imagenes de la plantilla. Paleta e identidad ya validadas en Institucional.
   ========================================================================== */

/* --- Header (UI-FOUNDATION-01): Home ya no tiene un tratamiento propio de
   header. Usa el mismo header global (pildora flotante + glass al hacer
   scroll) que el resto del portal — es un elemento fuera de .home-page
   (hermano de <main>), definido en styles.css. --- */

/* --- Sistema visual --- */
/* --- Sistema visual & Design Tokens (SPRINT UI-01) --- */
.home-page {
  /* Tokens Cromáticos Institucionales */
  --home-green-950: #003f2f;
  --home-green-900: #00563f;
  --home-green-700: #0f6b49;
  --home-green-500: #28965c;
  --home-green-100: #e7f3ec;
  --home-gold: #c7a33c;
  --home-gold-strong: #b8912e;
  --home-gold-line: rgba(199, 163, 60, 0.55);
  --home-gold-hairline: rgba(199, 163, 60, 0.28);
  --home-orange: #e67e22;
  --home-tierra: #c05621;
  --home-teal: #1d7874;

  /* Tokens de Fondo y Superficie */
  --home-bg: #f4f8f5;
  --home-bg-warm: #f2f7f4;
  --home-bg-soft: #f8faf9;
  --home-surface: #ffffff;
  --home-border: #dce7e1;
  --home-border-subtle: rgba(0, 63, 47, 0.08);

  /* Tokens de Texto */
  --home-text: #172033;
  --home-muted: #52606d;
  --home-subtle: #627080;

  /* Tokens de Radios Harmónicos */
  --radius-pill: 999px;
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 8px;

  /* Tokens de Sombras Institucionales */
  --shadow-primary: 0 12px 32px -6px rgba(0, 39, 29, 0.08);
  --shadow-secondary: 0 4px 16px -2px rgba(0, 39, 29, 0.04);
  --shadow-hover: 0 16px 36px -8px rgba(0, 39, 29, 0.12);

  /* Tokens de Espaciado y Layout */
  --section-space: clamp(64px, 7vw, 96px) 24px;
  --container-max: 1240px;
  --header-intro-max: 800px;
  --transition-default: 0.3s cubic-bezier(0.16, 1, 0.3, 1);

  display: block;
  background: var(--home-bg);
  color: var(--home-text);
}

.home-page a:focus-visible,
.home-page button:focus-visible {
  outline: 3px solid rgba(40, 150, 92, 0.55);
  outline-offset: 3px;
}

/* Patrón de Volanta Estandarizada (Eyebrow Badge) */
.home-page .home-eyebrow,
.home-page .home-news__eyebrow,
.home-page .home-library__eyebrow,
.home-page .home-experiences__eyebrow,
.home-page .home-events__eyebrow,
.home-page .home-programas__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-body, 'Montserrat', sans-serif);
  font-size: var(--fs-caption);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--home-green-500);
  margin-bottom: 12px;
  padding: 4px 14px;
  background: rgba(40, 150, 92, 0.08);
  border-radius: var(--radius-pill);
}

/* Acento editorial dorado discreto (tick) delante de cada volanta: marca de
   identidad consistente, nunca fondo dominante. */
.home-page .home-eyebrow::before,
.home-page .home-news__eyebrow::before,
.home-page .home-library__eyebrow::before,
.home-page .home-experiences__eyebrow::before,
.home-page .home-events__eyebrow::before,
.home-page .home-programas__eyebrow::before {
  content: "";
  width: 14px;
  height: 2px;
  border-radius: 2px;
  background: var(--home-gold);
  flex: 0 0 auto;
}

/* ==========================================================================
   Lenguaje visual territorial (Sprint UI-Final, Bloque 1)
   - Textura cartográfica reutilizable (curvas de nivel + puntos), opacidad
     muy baja. Limitada a 3 zonas del Home: Presentación, CTA final, empty
     states. No aplicar globalmente.
   - Filete/hairline dorado como divisor editorial discreto.
   ========================================================================== */
.home-page .home-carto-texture {
  position: relative;
  isolation: isolate;
}

.home-page .home-carto-texture > * {
  position: relative;
  z-index: 1;
}

.home-page .home-carto-texture::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='48'%20height='48'%3E%3Cg%20fill='none'%20stroke='%23003f2f'%20stroke-width='0.5'%20opacity='0.06'%3E%3Cpath%20d='M0%2024%20Q12%2012%2024%2024%20T48%2024'/%3E%3Cpath%20d='M0%2040%20Q12%2028%2024%2040%20T48%2040'/%3E%3C/g%3E%3Ccircle%20cx='6'%20cy='6'%20r='1'%20fill='%2328965c'%20opacity='0.12'/%3E%3Ccircle%20cx='30'%20cy='18'%20r='1'%20fill='%2328965c'%20opacity='0.1'/%3E%3C/svg%3E");
  background-size: 48px 48px;
}

/* Filete dorado editorial (divisor corto) */
.home-page .home-rule-gold {
  width: 56px;
  height: 2px;
  border: 0;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--home-gold), var(--home-gold-hairline));
}

/* Estado vacío institucional sobrio (Sprint UI-Final, Bloque 4): panel
   discreto con textura cartográfica (zona 3), icono temático y mensaje.
   Reemplaza la caja de borde punteado. */
.home-page .home-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  overflow: hidden;
  padding: clamp(36px, 5vw, 56px) 32px;
  border: 1px solid var(--home-border);
  border-radius: var(--radius-lg);
  background: var(--home-bg-soft);
  color: var(--home-muted);
  text-align: center;
  font-size: var(--fs-body);
}

.home-page .home-empty-state__icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--home-green-100);
  color: var(--home-green-500);
  box-shadow: inset 0 0 0 1px var(--home-border-subtle);
}

.home-page .home-empty-state__icon svg,
.home-page .home-empty-state__icon [data-lucide] {
  width: 24px;
  height: 24px;
}

.home-page .home-empty-state__text {
  margin: 0;
  max-width: 460px;
  line-height: 1.6;
}

/* ==========================================================================
   Hero (UI-FOUNDATION-01)
   Tipografia: Questrial (titulo) + Montserrat (texto/eyebrow/botones) via
   typography.css. Colores/layout se mantienen propios de este archivo.
   ========================================================================== */
/* ==========================================================================
   1. HERO EDITORIAL FULL-SCREEN
   ========================================================================== */
.home-page .home-hero-editorial {
  position: relative;
  width: 100%;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
  background-color: var(--home-green-950);
}

/* Background Image Cover */
.home-page .home-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  overflow: hidden;
}

.home-page .home-hero-bg__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.02);
  transition: transform 12s ease-out;
}

/* Gradient Overlay for WCAG Contrast */
.home-page .home-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(circle at center, rgba(0, 44, 33, 0.72) 0%, rgba(0, 31, 23, 0.88) 60%, rgba(0, 20, 15, 0.95) 100%),
              linear-gradient(to bottom, rgba(0, 39, 29, 0.6) 0%, transparent 30%, transparent 70%, rgba(0, 39, 29, 0.85) 100%);
  pointer-events: none;
}

/* Central Content */
.home-page .home-hero-editorial__content {
  position: relative;
  z-index: 2;
  width: min(90%, 960px);
  margin: 0 auto;
  padding: 120px 24px 80px;
  text-align: center;
  animation: heroEditorialFadeIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.home-page .home-hero-editorial__title {
  margin: 0 0 24px;
  color: #ffffff;
  font-family: var(--font-heading, 'Questrial', 'Cinzel', serif);
  font-size: var(--fs-display);
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: -0.015em;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.45);
}

.home-page .home-hero-editorial__lead {
  margin: 0 auto;
  max-width: 680px;
  color: rgba(255, 255, 255, 0.88);
  font-family: var(--font-body, 'Montserrat', sans-serif);
  font-size: var(--fs-h3);
  font-weight: 300;
  line-height: 1.65;
  letter-spacing: 0.03em;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

/* Scroll Cue / Descubrir Indicator */
.home-page .home-hero-scroll-cue {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  transition: all 0.25s ease;
}

.home-page .home-hero-scroll-cue:hover,
.home-page .home-hero-scroll-cue:focus-visible {
  color: #ffffff;
  transform: translateX(-50%) translateY(-2px);
}

.home-page .home-hero-scroll-cue .scroll-cue__label {
  font-family: var(--font-body, 'Montserrat', sans-serif);
  font-size: var(--fs-overline);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.home-page .home-hero-scroll-cue .scroll-cue__icon {
  width: 20px;
  height: 20px;
  animation: heroBounceCue 2s infinite ease-in-out;
}

/* ==========================================================================
   2. NAVEGACIÓN NUMÉRICA VERTICAL (01 - 07)
   ========================================================================== */
.home-page .home-num-nav {
  position: fixed;
  left: clamp(16px, 3vw, 40px);
  top: 50%;
  transform: translateY(-50%);
  z-index: 40;
  display: none;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

/* Fuera del Hero: los indicadores se ocultan por completo (no focanables). */
.home-page .home-num-nav.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  .home-page .home-num-nav {
    transition: none;
  }
}

@media (min-width: 1024px) {
  .home-page .home-num-nav {
    display: block;
  }
}

.home-page .home-num-nav__list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.home-page .home-num-nav__item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.45);
  font-family: var(--font-body, 'Montserrat', sans-serif);
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.home-page .home-num-nav__item .num-val {
  font-size: var(--fs-caption);
  font-weight: 600;
  letter-spacing: 0.05em;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: all 0.3s ease;
}

.home-page .home-num-nav__item .num-text {
  font-size: var(--fs-overline);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateX(-8px);
  white-space: nowrap;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.home-page .home-num-nav__item:hover,
.home-page .home-num-nav__item:focus-visible,
.home-page .home-num-nav__item.active {
  color: #ffffff;
}

.home-page .home-num-nav__item:hover .num-val,
.home-page .home-num-nav__item:focus-visible .num-val,
.home-page .home-num-nav__item.active .num-val {
  background: #28965c;
  border-color: #28965c;
  color: #ffffff;
  box-shadow: 0 0 12px rgba(40, 150, 92, 0.5);
}

.home-page .home-num-nav__item:hover .num-text,
.home-page .home-num-nav__item:focus-visible .num-text,
.home-page .home-num-nav__item.active .num-text {
  opacity: 1;
  transform: translateX(0);
}

/* Animations */
@keyframes heroEditorialFadeIn {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroBounceCue {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

@media (prefers-reduced-motion: reduce) {
  .home-page .home-hero-editorial__content,
  .home-page .home-hero-scroll-cue .scroll-cue__icon {
    animation: none !important;
    transition: none !important;
  }
}

/* ==========================================================================
   Presentacion breve
   ========================================================================== */
.home-page .home-intro {
  position: relative;
  padding: clamp(64px, 7vw, 96px) 24px;
  background: radial-gradient(ellipse at 50% 30%, rgba(40, 150, 92, 0.04) 0%, rgba(255, 255, 255, 0) 70%),
              linear-gradient(180deg, #ffffff 0%, #f7faf8 100%);
  overflow: hidden;
}

.home-page .home-intro__bg-pattern {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.home-page .home-intro__container {
  position: relative;
  z-index: 2;
  width: min(1080px, 100%);
  margin: 0 auto;
}

/* 1. Encabezado Central */
.home-page .home-intro__header {
  text-align: center;
  max-width: 820px;
  margin: 0 auto 48px auto;
}

.home-page .home-intro__eyebrow {
  display: inline-block;
  font-family: var(--font-body, 'Montserrat', sans-serif);
  font-size: var(--fs-caption);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #28965c;
  margin-bottom: 12px;
  padding: 4px 14px;
  background: rgba(40, 150, 92, 0.08);
  border-radius: 999px;
}

.home-page .home-intro__title {
  margin: 0 0 16px;
  color: #003f2f;
  font-family: var(--font-heading, 'Questrial', 'Cinzel', serif);
  font-size: var(--fs-h2);
  font-weight: 700;
  line-height: 1.22;
}

.home-page .home-intro__description {
  margin: 0 auto;
  max-width: 780px;
  color: #4b5563;
  font-family: var(--font-body, 'Montserrat', sans-serif);
  font-size: var(--fs-body);
  line-height: 1.68;
}

/* 2. Ecosistema Visual de Tres Ejes Conectados */
.home-page .home-intro__ecosystem {
  position: relative;
  margin: 0 auto 44px auto;
}

.home-page .home-intro__connector-line {
  position: absolute;
  top: 42px;
  left: 15%;
  right: 15%;
  height: 2px;
  background: linear-gradient(90deg, rgba(40, 150, 92, 0.15) 0%, rgba(40, 150, 92, 0.5) 50%, rgba(40, 150, 92, 0.15) 100%);
  z-index: 1;
}

.home-page .home-presentation__pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  position: relative;
  z-index: 2;
  list-style: none;
  margin: 0;
  padding: 0;
}

.home-page .home-presentation__pillar {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 28px 24px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(0, 63, 47, 0.09);
  box-shadow: 0 4px 16px -2px rgba(0, 39, 29, 0.04);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease, border-color 0.25s ease;
  position: relative;
}

/* Nodo Central Destacado (02 Generación de conocimiento) */
.home-page .home-presentation__pillar--core {
  background: #ffffff;
  border-color: rgba(40, 150, 92, 0.35);
  box-shadow: 0 12px 32px -6px rgba(0, 39, 29, 0.09);
  transform: translateY(-4px);
}

.home-page .pillar-number {
  font-family: var(--font-body, 'Montserrat', sans-serif);
  font-size: var(--fs-overline);
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #28965c;
  margin-bottom: 10px;
}

.home-page .home-presentation__pillar--core .pillar-number {
  color: #e67e22;
}

.home-page .pillar-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(40, 150, 92, 0.08);
  color: #0f6b49;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.home-page .home-presentation__pillar--core .pillar-icon {
  background: #003f2f;
  color: #ffffff;
}

.home-page .pillar-icon [data-lucide],
.home-page .pillar-icon svg {
  width: 24px;
  height: 24px;
}

.home-page .pillar-content h3 {
  font-family: var(--font-heading, 'Questrial', 'Montserrat', sans-serif);
  font-size: var(--fs-h4);
  font-weight: 700;
  color: #003f2f;
  margin-bottom: 6px;
  line-height: 1.3;
}

.home-page .pillar-content p {
  font-family: var(--font-body, 'Montserrat', sans-serif);
  font-size: var(--fs-meta);
  line-height: 1.5;
  color: #52606d;
  margin: 0;
}

/* Microinteracciones Hover */
.home-page .home-presentation__pillar:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 32px -6px rgba(0, 39, 29, 0.12);
  border-color: #28965c;
}

.home-page .home-presentation__pillar--core:hover {
  transform: translateY(-7px);
  box-shadow: 0 18px 40px -8px rgba(0, 39, 29, 0.16);
}

.home-page .home-presentation__pillar:hover .pillar-icon {
  background: #28965c;
  color: #ffffff;
  transform: scale(1.06);
}

.home-page .home-presentation__pillar:hover .pillar-number {
  color: #e67e22;
}

/* 3. Acción Editorial (CTA) */
.home-page .home-intro__footer {
  text-align: center;
}

.home-page .home-intro__cta-editorial {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  color: #0f6b49;
  font-family: var(--font-body, 'Montserrat', sans-serif);
  font-size: var(--fs-sm);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 2px solid rgba(15, 107, 73, 0.25);
  transition: all 0.2s ease;
}

.home-page .home-intro__cta-editorial:hover,
.home-page .home-intro__cta-editorial:focus-visible {
  color: #003f2f;
  border-bottom-color: #28965c;
}

.home-page .home-intro__cta-editorial .cta-arrow {
  width: 18px;
  height: 18px;
  transition: transform 0.2s ease;
}

.home-page .home-intro__cta-editorial:hover .cta-arrow,
.home-page .home-intro__cta-editorial:focus-visible .cta-arrow {
  transform: translate(2px, -2px);
}

/* Responsive para Ecosistema 3 Nodos */
@media (max-width: 1023px) {
  .home-page .home-presentation__pillars {
    gap: 16px;
  }
}

@media (max-width: 767px) {
  .home-page .home-intro__connector-line {
    top: 20px;
    bottom: 20px;
    left: 44px;
    right: auto;
    width: 2px;
    height: auto;
    background: linear-gradient(180deg, rgba(40, 150, 92, 0.15) 0%, rgba(40, 150, 92, 0.5) 50%, rgba(40, 150, 92, 0.15) 100%);
  }

  .home-page .home-presentation__pillars {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .home-page .home-presentation__pillar {
    flex-direction: row;
    text-align: left;
    gap: 18px;
    padding: 20px;
  }

  .home-page .home-presentation__pillar--core {
    transform: none;
  }

  .home-page .pillar-icon {
    margin-bottom: 0;
    min-width: 48px;
  }
}

/* ==========================================================================
   Areas de trabajo
   ========================================================================== */
.home-page .home-areas {
  padding: clamp(48px, 6vw, 80px) 24px;
  background: var(--home-surface);
}

.home-page .home-areas__container {
  width: min(1200px, 100%);
  margin: 0 auto;
}

.home-page .home-areas__container > h2 {
  margin: 0 0 32px;
  color: var(--home-green-950);
  font-family: var(--font-playfair, Georgia, serif);
  font-size: var(--fs-h2);
  font-weight: 700;
  text-align: center;
}

.home-page .home-areas__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

.home-page .home-areas__card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 28px 24px;
  border: 1px solid var(--home-border);
  border-radius: 16px;
  background: var(--home-bg);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.home-page .home-areas__card:hover {
  transform: translateY(-4px);
  border-color: rgba(40, 150, 92, 0.35);
  box-shadow: 0 14px 30px rgba(0, 63, 47, 0.1);
}

.home-page .home-areas__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin-bottom: 18px;
  border-radius: 14px;
  background: var(--home-green-100);
  color: var(--home-green-700);
}

.home-page .home-areas__icon svg,
.home-page .home-areas__icon i {
  width: 24px;
  height: 24px;
}

.home-page .home-areas__card h3 {
  margin: 0 0 10px;
  font-size: var(--fs-h3);
  font-weight: 700;
}

.home-page .home-areas__card h3 a {
  color: var(--home-green-950);
  text-decoration: none;
}

.home-page .home-areas__card h3 a:hover,
.home-page .home-areas__card h3 a:focus-visible {
  color: var(--home-green-700);
}

.home-page .home-areas__card p {
  flex: 1;
  margin: 0 0 16px;
  color: var(--home-muted);
  font-size: var(--fs-sm);
  line-height: 1.55;
}

.home-page .home-areas__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--home-green-700);
  font-size: var(--fs-sm);
  font-weight: 700;
  text-decoration: none;
}

.home-page .home-areas__link:hover,
.home-page .home-areas__link:focus-visible {
  color: var(--home-green-900);
}

/* ==========================================================================
   BIBLIOTECA DIGITAL — repositorio científico en el Home
   Destacada editorial (~70%) + panel lateral de recomendaciones (~30%).
   Datos 100% del CMS; buscador y filtros son GET al módulo /biblioteca
   existente (acepta q, tipo, anio, categoria, tag, autor, programa).
   ========================================================================== */
.home-page .home-library {
  --lib-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --lib-fast: 140ms;
  --lib-radius: 20px;
  position: relative;
  isolation: isolate;
  background: var(--home-surface, #ffffff);
  color: var(--home-text, #172033);
  padding: var(--section-space, clamp(64px, 7vw, 96px) 24px);
  border-top: 1px solid var(--home-border-subtle, rgba(0, 63, 47, 0.08));
  overflow: hidden;
}

/* Retícula científica + papel editorial al 4%. Se siente, no se ve. */
.home-page .home-library__texture {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.04;
  background-image:
    linear-gradient(to right, rgba(0, 63, 47, 0.55) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0, 63, 47, 0.55) 1px, transparent 1px),
    radial-gradient(circle, rgba(40, 150, 92, 0.9) 1.1px, transparent 1.1px);
  background-size: 28px 28px, 28px 28px, 112px 112px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 20%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 20%, transparent 78%);
}

.home-page .home-library__container {
  position: relative;
  z-index: 1;
  width: min(var(--container-max, 1240px), 100%);
  margin: 0 auto;
}

.home-page .home-library__header {
  max-width: var(--header-intro-max, 800px);
  margin-bottom: clamp(22px, 2.6vw, 32px);
}

.home-page .home-library__header h2 {
  margin: 0 0 12px 0;
  font-family: var(--font-heading, 'Questrial', 'Cinzel', serif);
  font-size: var(--fs-h2);
  font-weight: 700;
  line-height: 1.2;
  color: var(--home-green-950, #003f2f);
}

.home-page .home-library__intro {
  margin: 0;
  font-family: var(--font-body, 'Montserrat', sans-serif);
  font-size: var(--fs-body);
  line-height: 1.68;
  color: var(--home-muted, #52606d);
}

/* Sin publicaciones recientes, la destacada ocupa todo el ancho en vez de
   dejar una columna lateral vacía. */
.home-page .home-library__layout.is-solo {
  grid-template-columns: minmax(0, 1fr);
}

/* ---------- Layout: destacada + panel lateral ---------- */
.home-page .home-library__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(20px, 2.6vw, 32px);
  align-items: start;
}

/* ---------- Publicación destacada ---------- */
.home-page .lib-featured {
  position: relative;
  /* Ítem directo del grid: min-width:0 evita que un título largo desborde
     la columna. */
  min-width: 0;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdfc 100%);
  border: 1px solid var(--home-border, #dce7e1);
  border-radius: var(--lib-radius);
  box-shadow: 0 2px 4px -2px rgba(0, 39, 29, 0.05), 0 18px 40px -28px rgba(0, 39, 29, 0.35);
  overflow: hidden;
  transition: box-shadow var(--lib-fast) var(--lib-ease), border-color var(--lib-fast) var(--lib-ease);
}

.home-page .lib-featured:hover,
.home-page .lib-featured:focus-within {
  border-color: rgba(40, 150, 92, 0.4);
  box-shadow: 0 4px 8px -4px rgba(0, 39, 29, 0.08), 0 28px 56px -30px rgba(0, 39, 29, 0.45);
}

/* Superficie clickeable completa */
.home-page .lib-featured__surface {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(18px, 2vw, 26px);
  padding: clamp(20px, 2.2vw, 30px);
  text-decoration: none;
  color: inherit;
}

.home-page .lib-featured__cover {
  display: block;
  position: relative;
  aspect-ratio: 3 / 4;
  max-width: 260px;
  width: 100%;
  border-radius: 14px;
  overflow: hidden;
  background: var(--home-green-100, #e7f3ec);
  box-shadow: 0 10px 24px -14px rgba(0, 39, 29, 0.5);
  transition: transform var(--lib-fast) var(--lib-ease), box-shadow var(--lib-fast) var(--lib-ease);
}

.home-page .lib-featured__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 180ms var(--lib-ease);
}

.home-page .lib-featured__surface:hover .lib-featured__cover,
.home-page .lib-featured__surface:focus-visible .lib-featured__cover {
  transform: translateY(-4px);
  box-shadow: 0 18px 34px -16px rgba(0, 39, 29, 0.55);
}

.home-page .lib-featured__surface:hover .lib-featured__cover img,
.home-page .lib-featured__surface:focus-visible .lib-featured__cover img {
  transform: scale(1.04);
}

.home-page .lib-cover-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px;
  text-align: center;
  color: var(--home-green-700, #0f6b49);
  background:
    repeating-linear-gradient(135deg, rgba(0, 63, 47, 0.04) 0 8px, transparent 8px 16px),
    var(--home-green-100, #e7f3ec);
  font-family: var(--font-body, 'Montserrat', sans-serif);
  font-size: var(--fs-overline);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.home-page .lib-cover-fallback [data-lucide],
.home-page .lib-cover-fallback svg {
  width: 34px;
  height: 34px;
}

.home-page .lib-cover-fallback--mini [data-lucide],
.home-page .lib-cover-fallback--mini svg {
  width: 20px;
  height: 20px;
}

.home-page .lib-featured__body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

/* ---------- Etiqueta de tipo (única jerarquía padre) + metadatos ----------
   Antes: 4 chips independientes (tipo, categoría, año, acceso abierto) con
   peso visual equivalente. Ahora: el tipo es la única insignia (fondo sólido,
   ícono); el resto es una sola línea de texto secundario sin badges, con
   menor peso tipográfico y de color. */
.home-page .lib-type {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 13px 5px 9px;
  border-radius: var(--radius-pill, 999px);
  background: var(--home-green-900, #00563f);
  color: #ffffff;
  width: fit-content;
}

.home-page .lib-type__icon {
  display: inline-flex;
}

.home-page .lib-type__icon [data-lucide],
.home-page .lib-type__icon svg {
  width: 13px;
  height: 13px;
}

.home-page .lib-type__label {
  font-family: var(--font-body, 'Montserrat', sans-serif);
  font-size: var(--fs-overline);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Metadatos: menor peso que la insignia de tipo — sin fondo, sin mayúsculas,
   color atenuado. El "·" entre valores ya viene resuelto en el texto (PHP),
   así no hay que fabricar separadores por CSS ni arriesgar un pseudo-elemento
   colgante cuando falta un dato. */
.home-page .lib-meta {
  display: block;
  margin-top: 6px;
  font-family: var(--font-body, 'Montserrat', sans-serif);
  font-size: var(--fs-caption);
  font-weight: 500;
  color: var(--home-subtle, #627080);
}

.home-page .lib-featured__title {
  margin: 2px 0 0 0;
  font-family: var(--font-heading, 'Questrial', 'Cinzel', serif);
  font-size: var(--fs-h3);
  font-weight: 700;
  line-height: 1.26;
  color: var(--home-green-950, #003f2f);
  transition: color var(--lib-fast) var(--lib-ease);
}

.home-page .lib-featured__surface:hover .lib-featured__title,
.home-page .lib-featured__surface:focus-visible .lib-featured__title {
  color: var(--home-green-700, #0f6b49);
}

.home-page .lib-featured__subtitle {
  display: block;
  font-family: var(--font-body, 'Montserrat', sans-serif);
  font-size: var(--fs-sm);
  line-height: 1.5;
  color: var(--home-subtle, #627080);
}

.home-page .lib-featured__authors {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  font-family: var(--font-body, 'Montserrat', sans-serif);
  font-size: var(--fs-meta);
  font-weight: 600;
  line-height: 1.45;
  color: var(--home-green-700, #0f6b49);
}

.home-page .lib-featured__authors [data-lucide],
.home-page .lib-featured__authors svg {
  width: 15px;
  height: 15px;
  margin-top: 2px;
  flex: 0 0 auto;
}

/* Obras colectivas pueden traer muchos autores: se acota a dos lineas para
   que no desplacen el resumen ni las acciones. */
.home-page .lib-featured__authors > span {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-width: 0;
}

.home-page .lib-featured__abstract {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-family: var(--font-body, 'Montserrat', sans-serif);
  font-size: var(--fs-meta);
  line-height: 1.62;
  color: var(--home-muted, #52606d);
}

.home-page .lib-keywords {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 2px;
}

.home-page .lib-keyword {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border: 1px dashed rgba(0, 63, 47, 0.2);
  border-radius: var(--radius-pill, 999px);
  font-family: var(--font-body, 'Montserrat', sans-serif);
  font-size: var(--fs-overline);
  font-weight: 600;
  color: var(--home-subtle, #627080);
}

.home-page .lib-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 4px;
  padding-top: 12px;
  border-top: 1px solid var(--home-border-subtle, rgba(0, 63, 47, 0.08));
}

.home-page .lib-metric {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-body, 'Montserrat', sans-serif);
  font-size: var(--fs-caption);
  color: var(--home-muted, #52606d);
}

.home-page .lib-metric strong {
  color: var(--home-green-900, #00563f);
  font-variant-numeric: tabular-nums;
}

.home-page .lib-metric [data-lucide],
.home-page .lib-metric svg {
  width: 15px;
  height: 15px;
  color: var(--home-green-700, #0f6b49);
}

/* Acciones — fuera del enlace envolvente */
.home-page .lib-featured__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0 clamp(20px, 2.2vw, 30px) clamp(20px, 2.2vw, 30px);
}

/* ---------- Panel lateral ---------- */
.home-page .lib-side {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: clamp(18px, 2vw, 24px);
  border: 1px solid var(--home-border, #dce7e1);
  border-radius: var(--lib-radius);
  background: linear-gradient(180deg, rgba(231, 243, 236, 0.42), rgba(255, 255, 255, 0.42));
}

.home-page .lib-side__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--home-border, #dce7e1);
}

.home-page .lib-side__title {
  margin: 0;
  font-family: var(--font-body, 'Montserrat', sans-serif);
  font-size: var(--fs-caption);
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--home-green-900, #00563f);
}

.home-page .lib-side__list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.home-page .lib-side__link {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 10px;
  border-radius: 14px;
  text-decoration: none;
  color: inherit;
  transition: background var(--lib-fast) var(--lib-ease), transform var(--lib-fast) var(--lib-ease);
}

.home-page .lib-side__link:hover,
.home-page .lib-side__link:focus-visible {
  background: #ffffff;
  transform: translateX(3px);
  box-shadow: 0 8px 20px -14px rgba(0, 39, 29, 0.5);
}

.home-page .lib-side__cover {
  position: relative;
  flex: 0 0 auto;
  width: 52px;
  aspect-ratio: 3 / 4;
  border-radius: 8px;
  overflow: hidden;
  background: var(--home-green-100, #e7f3ec);
  box-shadow: 0 4px 10px -6px rgba(0, 39, 29, 0.5);
}

.home-page .lib-side__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.home-page .lib-side__body {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.home-page .lib-side__meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-body, 'Montserrat', sans-serif);
  font-size: var(--fs-overline);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--home-green-700, #0f6b49);
}

.home-page .lib-side__year {
  color: var(--home-subtle, #627080);
  font-variant-numeric: tabular-nums;
}

.home-page .lib-side__year::before {
  content: "·";
  margin-right: 6px;
}

.home-page .lib-side__name {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-family: var(--font-heading, 'Questrial', sans-serif);
  font-size: var(--fs-meta);
  font-weight: 700;
  line-height: 1.3;
  color: var(--home-green-950, #003f2f);
}

.home-page .lib-side__author {
  display: -webkit-box;
  -webkit-line-clamp: 1;
  line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-family: var(--font-body, 'Montserrat', sans-serif);
  font-size: var(--fs-caption);
  color: var(--home-subtle, #627080);
}

.home-page .lib-side__arrow {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  color: var(--home-green-500, #28965c);
  opacity: 0;
  transition: opacity var(--lib-fast) var(--lib-ease), transform var(--lib-fast) var(--lib-ease);
}

.home-page .lib-side__link:hover .lib-side__arrow,
.home-page .lib-side__link:focus-visible .lib-side__arrow {
  opacity: 1;
  transform: translateX(2px);
}

/* ---------- CTA de cierre ---------- */
.home-page .home-library__footer {
  display: flex;
  justify-content: center;
  margin-top: clamp(24px, 3vw, 38px);
}

/* ==========================================================================
   Mobile: destacada primero, luego carrusel horizontal de recomendaciones
   ========================================================================== */
@media (max-width: 699px) {
  .home-page .lib-side {
    padding-inline: 0;
    border: 0;
    background: transparent;
  }

  .home-page .lib-side__head {
    padding-inline: 2px;
  }

  /* Carril deslizable con anclaje; se sangra al borde para que la última
     tarjeta insinúe continuidad. */
  .home-page .lib-side__list {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(232px, 74%);
    gap: 10px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-left: 24px;
    margin-inline: -24px;
    padding: 4px 24px 10px;
    overscroll-behavior-x: contain;
  }

  .home-page .lib-side__item {
    scroll-snap-align: start;
  }

  .home-page .lib-side__link {
    height: 100%;
    align-items: flex-start;
    background: #ffffff;
    border: 1px solid var(--home-border, #dce7e1);
  }

  .home-page .lib-side__link:hover,
  .home-page .lib-side__link:focus-visible {
    transform: none;
  }

  .home-page .lib-side__arrow {
    display: none;
  }
}

/* ==========================================================================
   Tablet: la destacada pasa a dos columnas dentro de su propia tarjeta
   ========================================================================== */
@media (min-width: 700px) {
  .home-page .lib-featured__surface {
    grid-template-columns: minmax(150px, 200px) minmax(0, 1fr);
    align-items: start;
  }

  .home-page .lib-featured__cover {
    max-width: none;
  }
}

/* ==========================================================================
   Desktop: destacada ~70% + panel lateral ~30%
   ========================================================================== */
@media (min-width: 1080px) {
  .home-page .home-library__layout {
    grid-template-columns: minmax(0, 2.25fr) minmax(290px, 1fr);
  }

  .home-page .lib-featured__surface {
    grid-template-columns: minmax(170px, 232px) minmax(0, 1fr);
  }
}
/* ==========================================================================
   Experiencias I+A
   ========================================================================== */
.home-page .home-experiences {
  position: relative;
  background: var(--home-bg-warm, #f4f8f5);
  color: var(--home-text, #172033);
  padding: var(--section-space, clamp(64px, 7vw, 96px) 24px);
  border-top: 1px solid var(--home-border-subtle, rgba(0, 63, 47, 0.08));
}

.home-page .home-experiences__container {
  width: min(var(--container-max, 1240px), 100%);
  margin: 0 auto;
}

.home-page .home-experiences__header {
  max-width: var(--header-intro-max, 800px);
  margin-bottom: clamp(28px, 3vw, 44px);
}

.home-page .home-experiences__header h2 {
  margin: 0 0 8px 0;
  color: var(--home-green-950, #003f2f);
  font-family: var(--font-heading, 'Questrial', 'Cinzel', serif);
  font-size: var(--fs-h2);
  font-weight: 700;
  line-height: 1.25;
}

.home-page .home-experiences__intro {
  margin: 0;
  color: var(--home-muted, #52606d);
  font-family: var(--font-body, 'Montserrat', sans-serif);
  font-size: var(--fs-body);
  line-height: 1.68;
}

/* ---------- Layout: destacada (principal) + accesos rápidos ---------- */
.home-page .exp-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(22px, 2.8vw, 32px);
  align-items: start;
}

/* ---------- Experiencia destacada ---------- */
.home-page .exp-featured {
  min-width: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--home-border, #dce7e1);
  border-radius: var(--radius-lg, 16px);
  background: var(--home-surface, #ffffff);
  box-shadow: var(--shadow-secondary, 0 4px 16px -2px rgba(0, 39, 29, 0.04));
  transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
}

.home-page .exp-featured:hover,
.home-page .exp-featured:focus-within {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover, 0 16px 36px -8px rgba(0, 39, 29, 0.12));
  border-color: var(--home-green-500, #28965c);
}

.home-page .exp-featured__media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--home-green-100, #e7f3ec);
}

.home-page .exp-featured__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 200ms ease;
}

.home-page .exp-featured:hover .exp-featured__media img {
  transform: scale(1.03);
}

.home-page .exp-featured__placeholder {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  color: var(--home-green-500, #28965c);
}

.home-page .exp-featured__placeholder [data-lucide],
.home-page .exp-featured__placeholder svg {
  width: 40px;
  height: 40px;
}

.home-page .exp-featured__body {
  padding: clamp(22px, 2.4vw, 32px);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.home-page .exp-pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: var(--radius-pill, 999px);
  background: rgba(40, 150, 92, 0.12);
  color: var(--home-green-700, #0f6b49);
  font-family: var(--font-body, 'Montserrat', sans-serif);
  font-size: var(--fs-overline);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  align-self: flex-start;
}

.home-page .exp-featured__title {
  margin: 0;
  font-family: var(--font-heading, 'Questrial', 'Cinzel', serif);
  font-size: var(--fs-h3);
  font-weight: 700;
  line-height: 1.28;
}

.home-page .exp-featured__title a {
  color: var(--home-green-950, #003f2f);
  text-decoration: none;
  transition: color 200ms ease;
}

.home-page .exp-featured__title a:hover,
.home-page .exp-featured__title a:focus-visible {
  color: var(--home-green-700, #0f6b49);
}

/* Resumen breve: 3 líneas como máximo — la sección es una vista previa, no
   el detalle completo de la experiencia. */
.home-page .exp-featured__summary {
  margin: 0;
  color: var(--home-muted, #52606d);
  font-family: var(--font-body, 'Montserrat', sans-serif);
  font-size: var(--fs-sm);
  line-height: 1.62;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ---------- Accesos rápidos: líneas temáticas ---------- */
.home-page .exp-quick {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.home-page .exp-quick__item {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 20px;
  border: 1px solid var(--home-border, #dce7e1);
  border-radius: var(--radius-lg, 16px);
  background: var(--home-surface, #ffffff);
  text-decoration: none;
  color: inherit;
  transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
}

.home-page .exp-quick__item:hover,
.home-page .exp-quick__item:focus-visible {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover, 0 16px 36px -8px rgba(0, 39, 29, 0.12));
  border-color: var(--home-green-500, #28965c);
}

.home-page .exp-quick__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: var(--radius-md, 12px);
  background: rgba(40, 150, 92, 0.1);
  background: color-mix(in srgb, var(--home-green-500, #28965c) 10%, white);
  color: var(--home-green-700, #0f6b49);
  transition: background 200ms ease, color 200ms ease;
}

.home-page .exp-quick__icon [data-lucide],
.home-page .exp-quick__icon svg {
  width: 20px;
  height: 20px;
}

.home-page .exp-quick__item:hover .exp-quick__icon,
.home-page .exp-quick__item:focus-visible .exp-quick__icon {
  background: var(--home-green-900, #00563f);
  color: #ffffff;
}

.home-page .exp-quick__body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}

.home-page .exp-quick__name {
  font-family: var(--font-heading, 'Questrial', sans-serif);
  font-size: var(--fs-body);
  font-weight: 700;
  line-height: 1.3;
  color: var(--home-green-950, #003f2f);
}

.home-page .exp-quick__desc {
  font-family: var(--font-body, 'Montserrat', sans-serif);
  font-size: var(--fs-caption);
  line-height: 1.5;
  color: var(--home-muted, #52606d);
}

.home-page .exp-quick__count {
  margin-top: 3px;
  font-family: var(--font-body, 'Montserrat', sans-serif);
  font-size: var(--fs-overline);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--home-green-700, #0f6b49);
}

.home-page .exp-quick__arrow {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  margin-top: 3px;
  color: var(--home-green-500, #28965c);
  transition: transform 200ms ease;
}

.home-page .exp-quick__item:hover .exp-quick__arrow,
.home-page .exp-quick__item:focus-visible .exp-quick__arrow {
  transform: translate(3px, -3px);
}

/* ---------- CTA de cierre: única, no compite con los accesos rápidos ---------- */
.home-page .home-experiences__footer {
  display: flex;
  justify-content: center;
  margin-top: clamp(28px, 3vw, 40px);
}

/* ---------- Desktop: destacada dominante + accesos rápidos a un costado ---------- */
@media (min-width: 1024px) {
  .home-page .exp-layout {
    grid-template-columns: minmax(0, 1.6fr) minmax(280px, 1fr);
  }
}

/* ==========================================================================
   Proximos eventos
   ========================================================================== */
.home-page .home-events {
  position: relative;
  background: var(--home-surface, #ffffff);
  color: var(--home-text, #172033);
  padding: var(--section-space, clamp(64px, 7vw, 96px) 24px);
  border-top: 1px solid var(--home-border-subtle, rgba(0, 63, 47, 0.08));
}

.home-page .home-events__container {
  width: min(var(--container-max, 1240px), 100%);
  margin: 0 auto;
}

.home-page .home-events__header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 48px;
  text-align: left;
}

.home-page .home-events__header h2 {
  margin: 0 0 8px 0;
  color: var(--home-green-950, #003f2f);
  font-family: var(--font-heading, 'Questrial', 'Cinzel', serif);
  font-size: var(--fs-h2);
  font-weight: 700;
  line-height: 1.25;
}

.home-page .home-events__intro {
  margin: 0;
  color: var(--home-muted, #52606d);
  font-family: var(--font-body, 'Montserrat', sans-serif);
  font-size: var(--fs-body);
  line-height: 1.68;
  max-width: var(--header-intro-max, 800px);
}

.home-page .home-events__view-all {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  color: var(--home-green-700, #0f6b49);
  font-family: var(--font-body, 'Montserrat', sans-serif);
  font-size: var(--fs-sm);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 2px solid rgba(15, 107, 73, 0.25);
  transition: all 0.2s ease;
  white-space: nowrap;
}

.home-page .home-events__view-all:hover,
.home-page .home-events__view-all:focus-visible {
  color: var(--home-green-950, #003f2f);
  border-bottom-color: var(--home-green-500, #28965c);
}

.home-page .home-events__list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.home-page .home-events__item {
  margin: 0;
}

.home-page .home-events__link {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 20px 24px;
  border: 1px solid var(--home-border, #dce7e1);
  border-radius: var(--radius-lg, 16px);
  background: var(--home-surface, #ffffff);
  color: inherit;
  text-decoration: none;
  box-shadow: var(--shadow-secondary, 0 4px 16px -2px rgba(0, 39, 29, 0.04));
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.home-page .home-events__link:hover,
.home-page .home-events__link:focus-visible {
  transform: translateX(6px);
  border-color: var(--home-green-500, #28965c);
  box-shadow: var(--shadow-hover, 0 16px 36px -8px rgba(0, 39, 29, 0.12));
}

.home-page .home-events__date {
  display: flex;
  flex-shrink: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: var(--radius-md, 12px);
  background: var(--home-green-950, #003f2f);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(0, 63, 47, 0.2);
}

.home-page .home-events__day {
  font-family: var(--font-heading, 'Questrial', sans-serif);
  font-size: var(--fs-h3);
  font-weight: 700;
  line-height: 1;
}

.home-page .home-events__month {
  margin-top: 2px;
  font-size: var(--fs-overline);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
}

.home-page .home-events__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
  gap: 4px;
}

.home-page .home-events__title {
  color: var(--home-green-950, #003f2f);
  font-family: var(--font-heading, 'Questrial', 'Cinzel', serif);
  font-size: var(--fs-h3);
  font-weight: 700;
  line-height: 1.35;
  transition: color 0.2s ease;
}

.home-page .home-events__link:hover .home-events__title {
  color: var(--home-green-500, #28965c);
}

.home-page .home-events__meta {
  color: var(--home-muted, #52606d);
  font-size: var(--fs-meta);
  font-weight: 500;
}

.home-page .home-events__arrow {
  flex-shrink: 0;
  color: var(--home-green-500, #28965c);
  font-size: var(--fs-h3);
  transition: transform 0.2s ease;
}

.home-page .home-events__link:hover .home-events__arrow {
  transform: translateX(4px);
}

/* ==========================================================================
   CTA final
   ========================================================================== */
.home-page .home-cta {
  position: relative;
  overflow: hidden;
  padding: var(--section-space, clamp(80px, 9vw, 112px) 24px);
  background: linear-gradient(135deg, #003f2f 0%, #00271d 100%);
  color: #ffffff;
  text-align: center;
  border-top: 1px solid var(--home-border-subtle, rgba(0, 63, 47, 0.08));
}

.home-page .home-cta__bg-pattern {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.04;
  background-image:
    radial-gradient(circle at 50% 50%, #28965c 1px, transparent 1px),
    linear-gradient(to right, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
  background-size: 40px 40px, 80px 80px;
}

.home-page .home-cta__container {
  position: relative;
  z-index: 1;
  width: min(840px, 100%);
  margin: 0 auto;
}

.home-page .home-cta__eyebrow {
  display: inline-block;
  font-family: var(--font-body, 'Montserrat', sans-serif);
  font-size: var(--fs-caption);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #c7a33c;
  margin-bottom: 16px;
  padding: 4px 16px;
  background: rgba(199, 163, 60, 0.12);
  border-radius: var(--radius-pill, 999px);
}

.home-page .home-cta__title {
  margin: 0 0 16px 0;
  color: #ffffff;
  font-family: var(--font-heading, 'Questrial', 'Cinzel', serif);
  font-size: var(--fs-h2);
  font-weight: 700;
  line-height: 1.2;
}

.home-page .home-cta__rule {
  margin: 0 auto 26px;
}

.home-page .home-cta__intro {
  margin: 0 0 36px 0;
  color: rgba(255, 255, 255, 0.85);
  font-family: var(--font-body, 'Montserrat', sans-serif);
  font-size: var(--fs-h4);
  line-height: 1.68;
}

.home-page .home-cta__actions {
  display: flex;
  justify-content: center;
}

.home-page .home-cta__btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  background: #ffffff;
  color: var(--home-green-950, #003f2f);
  font-family: var(--font-body, 'Montserrat', sans-serif);
  font-size: var(--fs-sm);
  font-weight: 700;
  border-radius: var(--radius-pill, 999px);
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  transition: transform 0.25s ease, background 0.25s ease, box-shadow 0.25s ease, color 0.25s ease;
}

.home-page .home-cta__btn-primary:hover,
.home-page .home-cta__btn-primary:focus-visible {
  background: #c7a33c;
  color: #00271d;
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(199, 163, 60, 0.35);
}

.home-page .home-cta__btn-primary .cta-arrow {
  width: 18px;
  height: 18px;
  transition: transform 0.2s ease;
}

.home-page .home-cta__btn-primary:hover .cta-arrow {
  transform: translate(2px, -2px);
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 980px) {
  .home-page .home-areas__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .home-page .home-hero__actions {
    flex-direction: column;
  }

  .home-page .home-hero__btn {
    width: 100%;
  }

  .home-page .home-areas__grid {
    grid-template-columns: 1fr;
  }

  /* Las reglas de Biblioteca Digital y de Experiencias viven en sus propios
     bloques (mobile-first); aqui no queda nada especifico de esas secciones. */
  .home-page .home-events__link {
    gap: 12px;
    padding: 12px 14px;
  }
}

/* ==========================================================================
   NUEVA SECCIÓN DE ÁREAS DE TRABAJO — DIAGRAMA DE NODOS Y NÚCLEO CENTRAL (CEMER)
   ========================================================================== */
.home-page .home-areas-nodes {
  padding: clamp(64px, 8vw, 110px) 24px;
  background: linear-gradient(180deg, #f2f7f4 0%, #ffffff 100%);
  position: relative;
  overflow: hidden;
}

.home-page .home-areas-nodes__container {
  max-width: 1240px;
  margin: 0 auto;
}

.home-page .home-areas-nodes__header {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 56px auto;
}

.home-page .home-areas-nodes__eyebrow {
  display: inline-block;
  font-family: var(--font-body, 'Montserrat', sans-serif);
  font-size: var(--fs-caption);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #28965c;
  margin-bottom: 12px;
  padding: 4px 14px;
  background: rgba(40, 150, 92, 0.1);
  border-radius: 999px;
}

.home-page .home-areas-nodes__title {
  font-family: var(--font-heading, 'Questrial', 'Cinzel', serif);
  font-size: var(--fs-h2);
  font-weight: 700;
  color: #003f2f;
  margin-bottom: 18px;
  line-height: 1.25;
}

.home-page .home-areas-nodes__intro {
  font-family: var(--font-body, 'Montserrat', sans-serif);
  font-size: var(--fs-body);
  line-height: 1.68;
  color: #4b5563;
  max-width: 800px;
  margin: 0 auto;
}


/* ==========================================================================
   ECOSISTEMA DE ÁREAS DE TRABAJO — "Del conocimiento a la acción"
   Núcleo CEMER + 5 píldoras en órbita + ficha expansible.

   Estructura responsive:
     - base (mobile/tablet): lista vertical elegante, sin órbita.
     - >=1140px: escenario orbital con posicionamiento polar y conectores SVG.
   El posicionamiento absoluto existe ÚNICAMENTE dentro del breakpoint orbital;
   la versión de lista es flujo normal, sin alturas fijas.
   ========================================================================== */
.home-page .eco {
  --eco-core-size: clamp(148px, 34vw, 208px);
  --eco-pill-w: 100%;
  position: relative;
  width: 100%;
  max-width: 1080px;
  margin: clamp(28px, 4vw, 56px) auto 0 auto;
}

/* Textura territorial: red de nodos + curvas topográficas al 5%.
   Se siente, no se ve. */
.home-page .eco::before {
  content: "";
  position: absolute;
  inset: -6% -4%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.5;
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='120'%20height='120'%3E%3Cg%20fill='none'%20stroke='%23003f2f'%20stroke-width='0.6'%20opacity='0.1'%3E%3Cpath%20d='M0%2060%20Q30%2030%2060%2060%20T120%2060'/%3E%3Cpath%20d='M0%2090%20Q30%2062%2060%2090%20T120%2090'/%3E%3Cpath%20d='M0%2030%20Q30%202%2060%2030%20T120%2030'/%3E%3C/g%3E%3Cg%20stroke='%2328965c'%20stroke-width='0.5'%20opacity='0.1'%3E%3Cpath%20d='M18%2018%20L60%2044%20L102%2016'/%3E%3Cpath%20d='M60%2044%20L54%2092'/%3E%3C/g%3E%3Cg%20fill='%2328965c'%20opacity='0.14'%3E%3Ccircle%20cx='18'%20cy='18'%20r='1.6'/%3E%3Ccircle%20cx='60'%20cy='44'%20r='2'/%3E%3Ccircle%20cx='102'%20cy='16'%20r='1.6'/%3E%3Ccircle%20cx='54'%20cy='92'%20r='1.6'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 120px 120px;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 78%);
}

.home-page .eco__stage {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(18px, 2.6vw, 26px);
}

/* Conectores: solo existen en el escenario orbital */
.home-page .eco__links {
  display: none;
}

/* ---------- Núcleo ---------- */
.home-page .eco__core {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  /* Sin transform/filter aquí: crearía contexto de apilamiento y el campo
     orbital (z-index:-1) taparía las píldoras. */
}

.home-page .eco__core-disc {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: var(--eco-core-size);
  aspect-ratio: 1;
  padding: 10%;
  text-align: center;
  border-radius: 50%;
  background:
    radial-gradient(circle at 34% 26%, rgba(255, 255, 255, 0.22) 0%, rgba(255, 255, 255, 0) 52%),
    radial-gradient(circle at 50% 118%, rgba(40, 150, 92, 0.55) 0%, rgba(40, 150, 92, 0) 62%),
    radial-gradient(circle at 50% 42%, #0a5a41 0%, #00301f 100%);
  /* Doble borde + relieve + halo */
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.22) inset,
    0 -10px 26px rgba(0, 0, 0, 0.28) inset,
    0 0 0 1px rgba(255, 255, 255, 0.14),
    0 0 0 7px rgba(255, 255, 255, 0.55),
    0 0 0 8px rgba(40, 150, 92, 0.22),
    0 20px 46px -14px rgba(0, 39, 29, 0.5);
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.45s ease;
}

.home-page .eco__core-brand {
  font-family: var(--font-heading, 'Questrial', serif);
  font-size: var(--fs-h3);
  font-weight: 700;
  letter-spacing: 0.16em;
  line-height: 1;
  color: #ffffff;
}

.home-page .eco__core-lines {
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding-top: 7px;
  border-top: 1px solid rgba(255, 255, 255, 0.24);
}

/* Unica excepcion de esta hoja a la escala tipografica global: el texto vive
   DENTRO del disco circular del nucleo orbital, cuyo contenedor tiene ancho
   fijo (clamp 168-248px) y aspect-ratio 1. El token mas pequenio de la escala
   (--fs-overline, 12px) desborda ese circulo. Se conserva un clamp propio,
   deliberadamente por debajo de la escala. No replicar en otros componentes. */
.home-page .eco__core-line {
  font-family: var(--font-body, 'Montserrat', sans-serif);
  font-size: clamp(0.58rem, 0.44rem + 0.42vw, 0.7rem);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.9);
}

/* Campo orbital anclado al núcleo (siempre centrado sobre él) */
.home-page .eco__core-field {
  position: absolute;
  top: 50%;
  left: 50%;
  width: var(--eco-core-size);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  z-index: -1;
  pointer-events: none;
}

.home-page .eco__core-field > * {
  position: absolute;
  top: 50%;
  left: 50%;
  aspect-ratio: 1;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.home-page .eco__halo {
  width: 300%;
  background: radial-gradient(circle, rgba(40, 150, 92, 0.16) 0%, rgba(40, 150, 92, 0.05) 44%, transparent 70%);
}

.home-page .eco__ring {
  border: 1px solid rgba(15, 107, 73, 0.13);
}

.home-page .eco__ring--inner {
  width: 138%;
  border-style: dashed;
  border-color: rgba(40, 150, 92, 0.28);
  animation: ecoSpin 84s linear infinite;
}

.home-page .eco__ring--mid { width: 210%; }
.home-page .eco__ring--outer { width: 288%; border-color: rgba(15, 107, 73, 0.08); }

@keyframes ecoSpin {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* ---------- Píldoras ---------- */
.home-page .eco__nodes {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.home-page .eco__node {
  /* Tinta derivada: conserva el matiz de marca y alcanza contraste WCAG AA
     sobre blanco, que el acento puro (p. ej. el naranja) no cumple. */
  --eco-ink: color-mix(in srgb, var(--eco-accent, #28965c) 62%, #002a1f);
  display: flex;
  width: 100%;
}

.home-page .eco__pill {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  width: var(--eco-pill-w);
  padding: 12px 22px 12px 12px;
  text-decoration: none;
  color: inherit;
  background: #ffffff;
  border-radius: 999px;
  box-shadow:
    0 0 0 1px rgba(0, 63, 47, 0.06),
    0 2px 4px -2px rgba(0, 39, 29, 0.05),
    0 12px 26px -16px rgba(0, 39, 29, 0.28);
  transition:
    transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.4s ease;
}

.home-page .eco__pill-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: 50%;
  color: var(--eco-ink, #0f6b49);
  background: color-mix(in srgb, var(--eco-accent, #28965c) 12%, white);
  transition: background 0.35s ease, color 0.35s ease, box-shadow 0.35s ease;
}

.home-page .eco__pill-icon [data-lucide],
.home-page .eco__pill-icon svg {
  width: 21px;
  height: 21px;
}

.home-page .eco__pill-label {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.home-page .eco__pill-num {
  font-family: var(--font-body, 'Montserrat', sans-serif);
  font-size: var(--fs-overline);
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--eco-ink, #0f6b49);
  opacity: 0.75;
}

.home-page .eco__pill-title {
  font-family: var(--font-heading, 'Questrial', sans-serif);
  font-size: var(--fs-sm);
  font-weight: 700;
  line-height: 1.28;
  color: var(--home-green-950, #003f2f);
}

/* Interacción de píldora */
.home-page .eco__pill:hover,
.home-page .eco__pill:focus-visible {
  transform: translateY(-3px) scale(1.02);
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--eco-accent, #28965c) 28%, transparent),
    0 4px 8px -4px rgba(0, 39, 29, 0.1),
    0 22px 40px -20px rgba(0, 39, 29, 0.4);
}

.home-page .eco__pill:hover .eco__pill-icon,
.home-page .eco__pill:focus-visible .eco__pill-icon,
.home-page .eco__pill[aria-expanded="true"] .eco__pill-icon {
  background: var(--eco-ink, #0f6b49);
  color: #ffffff;
  /* Glow contenido del icono */
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--eco-accent, #28965c) 16%, transparent);
}

.home-page .eco__pill[aria-expanded="true"] {
  box-shadow:
    0 0 0 1.5px var(--eco-accent, #28965c),
    0 4px 8px -4px rgba(0, 39, 29, 0.12),
    0 22px 40px -20px rgba(0, 39, 29, 0.42);
}

/* El núcleo responde sutilmente a la actividad en la órbita */
.home-page .eco__stage:has(.eco__pill:hover) .eco__core-disc,
.home-page .eco__stage:has(.eco__pill:focus-visible) .eco__core-disc,
.home-page .eco__stage[data-active] .eco__core-disc {
  transform: scale(1.035);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.26) inset,
    0 -10px 26px rgba(0, 0, 0, 0.3) inset,
    0 0 0 1px rgba(255, 255, 255, 0.18),
    0 0 0 8px rgba(255, 255, 255, 0.6),
    0 0 0 10px rgba(40, 150, 92, 0.3),
    0 24px 54px -14px rgba(0, 39, 29, 0.55);
}

/* ---------- Ficha resumida ---------- */
.home-page .eco__panels {
  position: relative;
  z-index: 1;
  margin-top: clamp(18px, 2.4vw, 28px);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Colapso animado por grid-template-rows: permite altura automática sin
   max-height arbitrarios. Solo activo cuando el JS potenció el componente. */
.home-page .eco.is-enhanced .eco__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.home-page .eco.is-enhanced .eco__panel[data-open="true"] {
  grid-template-rows: 1fr;
}

/* El `display: grid` de arriba gana sobre el `[hidden] { display: none }` del
   user-agent, así que hay que restituirlo explícitamente: sin esta regla los
   paneles cerrados quedarían visibles y además serían enfocables. */
.home-page .eco.is-enhanced .eco__panel[hidden] {
  display: none;
}

.home-page .eco__panel:focus {
  outline: none;
}

.home-page .eco__panel-inner {
  min-height: 0;
  overflow: hidden;
}

.home-page .eco__panel-body {
  position: relative;
  padding: clamp(24px, 3vw, 38px);
  background: linear-gradient(180deg, #ffffff 0%, #fbfdfc 100%);
  border-radius: 24px;
  border-top: 3px solid var(--eco-accent, #28965c);
  box-shadow:
    0 0 0 1px rgba(0, 63, 47, 0.06),
    0 18px 44px -24px rgba(0, 39, 29, 0.32);
}

.home-page .eco__panel-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: var(--fs-h3);
  line-height: 1;
  color: var(--home-muted, #52606d);
  background: rgba(0, 63, 47, 0.05);
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease;
}

.home-page .eco__panel-close:hover,
.home-page .eco__panel-close:focus-visible {
  background: rgba(0, 63, 47, 0.11);
  color: var(--home-green-950, #003f2f);
}

.home-page .eco__panel-eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 10px 0;
  font-family: var(--font-body, 'Montserrat', sans-serif);
  font-size: var(--fs-overline);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--home-subtle, #627080);
}

.home-page .eco__panel-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 30px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: var(--fs-overline);
  letter-spacing: 0.08em;
  color: #ffffff;
  background: var(--eco-ink, #0f6b49);
}

.home-page .eco__panel-title {
  margin: 0 0 12px 0;
  font-family: var(--font-heading, 'Questrial', sans-serif);
  font-size: var(--fs-h3);
  font-weight: 700;
  line-height: 1.24;
  color: var(--home-green-950, #003f2f);
  max-width: 22ch;
}

.home-page .eco__panel-desc {
  margin: 0 0 22px 0;
  font-family: var(--font-body, 'Montserrat', sans-serif);
  font-size: var(--fs-body);
  line-height: 1.68;
  color: var(--home-muted, #52606d);
  max-width: 62ch;
}

.home-page .eco__panel-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.home-page .eco__panel-cta {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 24px;
  border-radius: 999px;
  text-decoration: none;
  font-family: var(--font-body, 'Montserrat', sans-serif);
  font-size: var(--fs-meta);
  font-weight: 700;
  color: #ffffff;
  background: var(--eco-ink, #0f6b49);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
}

.home-page .eco__panel-cta i,
.home-page .eco__panel-cta svg {
  width: 17px;
  height: 17px;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.home-page .eco__panel-cta:hover,
.home-page .eco__panel-cta:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 14px 26px -14px rgba(0, 39, 29, 0.7);
}

.home-page .eco__panel-cta:hover i,
.home-page .eco__panel-cta:hover svg,
.home-page .eco__panel-cta:focus-visible i,
.home-page .eco__panel-cta:focus-visible svg {
  transform: translate(2px, -2px);
}

/* ==========================================================================
   Tablet: dos columnas de píldoras, núcleo reducido
   ========================================================================== */
@media (min-width: 700px) and (max-width: 1139px) {
  .home-page .eco__nodes {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }
}

/* ==========================================================================
   Desktop: escenario orbital
   ========================================================================== */
@media (min-width: 1140px) {
  .home-page .eco {
    --eco-core-size: clamp(200px, 17vw, 244px);
    --eco-pill-w: clamp(232px, 21vw, 268px);
  }

  .home-page .eco__stage {
    display: block;
    /* El viewBox del SVG (1080x720) comparte esta relación de aspecto, por lo
       que los conectores caen exactamente sobre las píldoras. */
    aspect-ratio: 3 / 2;
    width: 100%;
  }

  .home-page .eco__links {
    display: block;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
  }

  .home-page .eco__link {
    stroke: rgba(15, 107, 73, 0.26);
    stroke-width: 1.6;
    stroke-linecap: round;
    fill: none;
    transition: stroke 0.4s ease, stroke-width 0.4s ease, opacity 0.4s ease;
  }

  .home-page .eco__core {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
  }

  .home-page .eco__nodes {
    display: block;
    position: absolute;
    inset: 0;
    z-index: 3;
  }

  /* Posicionamiento polar: pentágono sobre una elipse centrada en el núcleo.
     Cada nodo declara su punto; el resto es idéntico. */
  .home-page .eco__node {
    position: absolute;
    width: var(--eco-pill-w);
    transform: translate(-50%, -50%);
  }

  .home-page .eco__node--1 { left: 50%;   top: 8%; }
  .home-page .eco__node--2 { left: 86.1%; top: 37%; }
  .home-page .eco__node--3 { left: 72.3%; top: 84%; }
  .home-page .eco__node--4 { left: 27.7%; top: 84%; }
  .home-page .eco__node--5 { left: 13.9%; top: 37%; }

  .home-page .eco__pill {
    padding: 13px 20px 13px 13px;
  }

  /* Iluminación del conector correspondiente al área activa o en hover */
  .home-page .eco__stage[data-active="1"] .eco__link--1,
  .home-page .eco__stage[data-active="2"] .eco__link--2,
  .home-page .eco__stage[data-active="3"] .eco__link--3,
  .home-page .eco__stage[data-active="4"] .eco__link--4,
  .home-page .eco__stage[data-active="5"] .eco__link--5,
  .home-page .eco__stage:has(.eco__node--1 .eco__pill:hover) .eco__link--1,
  .home-page .eco__stage:has(.eco__node--2 .eco__pill:hover) .eco__link--2,
  .home-page .eco__stage:has(.eco__node--3 .eco__pill:hover) .eco__link--3,
  .home-page .eco__stage:has(.eco__node--4 .eco__pill:hover) .eco__link--4,
  .home-page .eco__stage:has(.eco__node--5 .eco__pill:hover) .eco__link--5,
  .home-page .eco__stage:has(.eco__node--1 .eco__pill:focus-visible) .eco__link--1,
  .home-page .eco__stage:has(.eco__node--2 .eco__pill:focus-visible) .eco__link--2,
  .home-page .eco__stage:has(.eco__node--3 .eco__pill:focus-visible) .eco__link--3,
  .home-page .eco__stage:has(.eco__node--4 .eco__pill:focus-visible) .eco__link--4,
  .home-page .eco__stage:has(.eco__node--5 .eco__pill:focus-visible) .eco__link--5 {
    stroke: var(--home-green-500, #28965c);
    stroke-width: 2.6;
  }

  /* Al haber un área activa, el resto de conectores se atenúa */
  .home-page .eco__stage[data-active] .eco__link {
    opacity: 0.4;
  }

  .home-page .eco__stage[data-active="1"] .eco__link--1,
  .home-page .eco__stage[data-active="2"] .eco__link--2,
  .home-page .eco__stage[data-active="3"] .eco__link--3,
  .home-page .eco__stage[data-active="4"] .eco__link--4,
  .home-page .eco__stage[data-active="5"] .eco__link--5 {
    opacity: 1;
  }
}

/* ==========================================================================
   Accesibilidad: respeta prefers-reduced-motion (unica excepcion a "sin
   !important" del encargo — es el patron estandar para neutralizar
   transiciones/animaciones ya definidas mas arriba con selectores propios).
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  .home-page * {
    transition-duration: 0.001ms !important;
    animation-duration: 0.001ms !important;
  }
}
