/* ============================================================
   LAS ÑAÑAS — Página Ecosistema
   Paleta alineada 1:1 con desarrollo.css (var(--bg), var(--orange),
   var(--green), etc.), con fallback hex por si esta hoja se
   carga sola. Prefijo --nn- solo para namespacing de layout.
   ============================================================ */

:root {
  /* Superficies — heredadas de desarrollo.css */
  --nn-bg: var(--bg, #0f151c);
  --nn-surface: var(--surface, #17202bde);
  --nn-surface-2: var(--surface-2, #1c2734);
  --nn-line: var(--line, rgba(226, 232, 240, .13));

  /* Texto */
  --nn-text: var(--text, #e2e8f0);
  --nn-muted: var(--muted, #a0aec0);

  /* Acentos: naranjo (link/CTA secundario) + verde (CTA primario) */
  --nn-ember: var(--orange, #ea580c);
  --nn-ember-light: var(--orange-light, #ff7a24);
  --nn-flame-gold: var(--green-light, #2d874e);
  --nn-green: var(--green, #166534);

  /* Tipografía del sitio */
  --nn-font-display: var(--font-display, "Kaushan Script", cursive);
  --nn-font-body: var(--font-body, "DM Sans", sans-serif);

  /* Ritmo */
  --nn-radius: 20px;
  --nn-container: 1180px;
}

/* ============================================================
   BASE DE SECCIÓN (alcance a esta página)
   ============================================================ */
.nanas-ecosystem-page {
  background: var(--nn-bg);
  color: var(--nn-text);
  font-family: var(--nn-font-body);
}

.nanas-ecosystem-page .container {
  max-width: var(--nn-container);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}

.nanas-ecosystem-page h1,
.nanas-ecosystem-page h2,
.nanas-ecosystem-page h3 {
  font-family: var(--nn-font-display);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: 0.01em;
}

.nanas-ecosystem-page .eyebrow {
  display: inline-block;
  font-family: var(--nn-font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--nn-ember-light);
  margin-bottom: 0.75rem;
}

/* ============================================================
   BLOQUE 1 — HERO CON VIDEO DE FUEGO
   ============================================================ */
.nn-hero {
  position: relative;
  isolation: isolate;
  min-height: min(88vh, 780px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
    z-index: 2;    
  padding: clamp(6rem, 14vw, 10rem) 0 6rem;
}

.nn-hero__video-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  contain: paint;
  background:
    radial-gradient(circle at 50% 55%, rgba(234, 88, 12, .28), transparent 58%),
    #0f151c;
}

.nn-hero__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: opacity .25s ease;
  /* Empuja el video un poco más cálido/brillante sin tocar el archivo fuente */
  filter: saturate(1.15) brightness(0.85);
}

.nn-hero__video.is-motion-paused {
  opacity: 0;
  visibility: hidden;
}

/* Overlay en dos capas: una para legibilidad, otra radial cálida
   que simula el resplandor del fuego iluminando el centro */
.nn-hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(ellipse 60% 50% at 50% 65%, rgba(234, 88, 12, 0.28), transparent 70%),
    linear-gradient(180deg, rgba(20, 17, 14, 0.55) 0%, rgba(20, 17, 14, 0.72) 55%, rgba(20, 17, 14, 0.94) 100%);
}

.nn-hero__content {
  position: relative;
  z-index: 2;
  max-width: 760px;
  margin-inline: auto;
  padding-inline: 1.5rem;
}

.nn-hero__content h1 {
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  color: #0b7c2d;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.55);
  margin: 0 0 1.1rem;
}
/*color subtitulo*/
.nn-hero__content .hero-text {
  max-width: 560px;
  margin: 0 auto;
  font-size: 1.1rem;
  line-height: 1.65;
  color: #F3E9DA;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.5);
}

/* Franja inferior en forma de "borde tejido" — remite al telar,
   quiebra la línea recta típica entre secciones */
.nn-hero__seam {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 46px;
  z-index: 3;
  background: var(--nn-bg);
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 20' preserveAspectRatio='none'%3E%3Cpath d='M0 20 L0 8 Q5 0 10 8 T20 8 T30 8 T40 8 T50 8 T60 8 T70 8 T80 8 T90 8 T100 8 T110 8 T120 8 L120 20 Z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 20' preserveAspectRatio='none'%3E%3Cpath d='M0 20 L0 8 Q5 0 10 8 T20 8 T30 8 T40 8 T50 8 T60 8 T70 8 T80 8 T90 8 T100 8 T110 8 T120 8 L120 20 Z'/%3E%3C/svg%3E");
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
}

/* CTA (boton verde)solapado físicamente entre Bloque 1 y Bloque 2 / aqui mover boton*/
.nn-hero__cta-wrap {
  position: absolute;
  left: 70%;
  bottom: 28px;
  transform: translateX(-50%);
  z-index: 4;
}

@media (max-width: 620px) {
  /* Centra el CTA completo para que ninguna letra ni hoja quede fuera de pantalla. */
  .nn-hero__cta-wrap {
    left: 50%;
    width: max-content;
    max-width: calc(100% - 24px);
  }
}

.nn-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 1rem 2rem;
  border-radius: 999px;
  border: none;
  font-family: var(--nn-font-body);
  font-weight: 700;
  font-size: 1rem;
  color: #ffffff;
  background: linear-gradient(135deg, var(--nn-green), var(--nn-flame-gold));
  box-shadow: 0 10px 30px rgba(22, 101, 52, 0.4), 0 0 0 6px var(--nn-bg);
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease;
}

.nn-btn:hover,
.nn-btn:focus-visible {
  transform: translateY(-2px) scale(1.06);
  box-shadow: 0 16px 40px rgba(45, 135, 78, 0.5), 0 0 0 6px var(--nn-bg);
}

.nn-btn:focus-visible {
  outline: 3px solid var(--nn-text);
  outline-offset: 3px;
}

/* ============================================================
   BLOQUE 2 — CARRUSEL "ROSTROS DEL TERRITORIO"
   ============================================================ */
.nn-faces {
  /* ESPACIO ENTRE SECCIONES: reduce el aire después de la ventana. */
  padding: 2.5rem 0 .5rem;
  background: var(--nn-bg);
}

.nn-faces__heading {
  text-align: center;
  max-width: 640px;
  /* AJUSTE MANUAL: cambia .75rem para separar el título de la ventana.
     Un valor menor los acerca; un valor mayor los separa. */
  margin: 0 auto .75rem;
}

.nn-faces__heading h2 {
  font-size: clamp(1.6rem, 3.2vw, 2.2rem);
  color: var(--nn-text);
}

.nn-carousel {
  position: relative;
}

/* ============================================================
   KIMÜN · RECIPROCIDAD — cartillas 3 × 2 con cortina interactiva
   ============================================================ */
.reciprocity {
  /* EDICIÓN RÁPIDA: colores, altura, espaciado y velocidad de la cortina. */
  --reciprocity-bg: #0c141d;
  --reciprocity-paper: #c8955c;
  --reciprocity-text: #241208;
  --reciprocity-muted: #b9c3c1;
  --reciprocity-orange: #f26a21;
  --reciprocity-green: #173d29;
  --reciprocity-card-height: 360px;
  --reciprocity-padding-y: 28px;
  --reciprocity-transition: .68s;
  position: relative;
  padding: var(--reciprocity-padding-y) 0 54px;
  overflow: hidden;
  color: #eef2ec;
  background:
    radial-gradient(circle at 12% 18%, rgba(255, 255, 255, .72) 0 1px, transparent 1.5px),
    radial-gradient(circle at 78% 66%, rgba(120, 217, 154, .5) 0 1px, transparent 1.5px),
    var(--reciprocity-bg);
  background-size: 137px 137px, 211px 211px, auto;
}

.reciprocity *, .reciprocity *::before, .reciprocity *::after { box-sizing: border-box; }

/* ANCHO DEL CONJUNTO: cambia 80% o 1060px para ajustar su proporción. */
.reciprocity__shell { width: 80%; max-width: 1060px; margin: 0 auto; }
.reciprocity__kicker { margin: 0 0 10px; color: var(--reciprocity-orange); font-size: 12px; font-weight: 700; letter-spacing: .16em; text-align: center; text-transform: uppercase; }
.reciprocity h2 { max-width: 680px; margin: 0 auto 14px; color: #eef2ec; font-family: 'Fraunces', Georgia, serif; font-size: clamp(29px, 4vw, 44px); font-weight: 500; line-height: 1.06; text-align: center; }
.reciprocity__intro { max-width: 640px; margin: 0 auto 32px; color: var(--reciprocity-muted); font-size: 14px; line-height: 1.55; text-align: center; }
/* Separa visualmente las necesidades del bloque de saberes que se transmiten. */
.reciprocity__group + .reciprocity__group { margin-top: clamp(56px, 6vw, 80px); }
.reciprocity__group-title { display: flex; align-items: center; gap: 14px; margin: 0 0 16px; color: #f5efe2; font-family: 'Fraunces', Georgia, serif; font-size: clamp(20px, 2.4vw, 27px); font-weight: 500; }
.reciprocity__group-title::after { content: ""; height: 1px; flex: 1; background: linear-gradient(90deg, var(--reciprocity-orange), rgba(242, 106, 33, 0)); }
.reciprocity__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: start; padding-bottom: 40px; }

/* DESNIVEL: edita los translateY para variar la escalera de escritorio. */
.reciprocity__group:first-of-type .reciprocity-card:nth-child(1) { transform: translateY(0); }
.reciprocity__group:first-of-type .reciprocity-card:nth-child(2) { transform: translateY(20px); }
.reciprocity__group:first-of-type .reciprocity-card:nth-child(3) { transform: translateY(40px); }
.reciprocity__group:last-of-type .reciprocity-card:nth-child(1) { transform: translateY(0); }
.reciprocity__group:last-of-type .reciprocity-card:nth-child(2) { transform: translateY(20px); }
.reciprocity__group:last-of-type .reciprocity-card:nth-child(3) { transform: translateY(40px); }

.reciprocity-card { position: relative; width: 100%; height: var(--reciprocity-card-height); padding: 0; overflow: hidden; isolation: isolate; color: var(--reciprocity-text); text-align: left; border: 0; border-radius: 3px; background: #17281e; box-shadow: 0 10px 24px rgba(0, 0, 0, .18); cursor: pointer; }
.reciprocity-card:focus-visible { outline: 3px solid var(--reciprocity-orange); outline-offset: 4px; }

/* CORTINA DE MADERA: sólo cambia color y textura; conserva medidas y movimiento. */
.reciprocity-card__copy {
  position: absolute;
  z-index: 3;
  inset: 0 0 auto;
  display: flex;
  height: 74%;
  padding: 22px 21px 17px;
  flex-direction: column;
  border-radius: 0 0 50% 50% / 0 0 9% 9%;
  background:
    radial-gradient(ellipse at 18% 28%, rgba(75, 36, 14, .22) 0 2px, transparent 3px 10px, rgba(92, 47, 19, .12) 11px 12px, transparent 13px),
    radial-gradient(ellipse at 82% 68%, rgba(80, 38, 14, .18) 0 2px, transparent 3px 9px, rgba(255, 226, 174, .12) 10px 12px, transparent 13px),
    repeating-linear-gradient(2deg, rgba(83, 42, 17, .09) 0 1px, transparent 1px 7px),
    linear-gradient(102deg, #b97b40 0%, #d7a66c 24%, var(--reciprocity-paper) 50%, #dda96d 72%, #ad6f36 100%);
  background-size: 180px 130px, 210px 145px, 100% 12px, auto;
  box-shadow: 0 7px 14px rgba(10, 20, 14, .14);
  transition: transform var(--reciprocity-transition) cubic-bezier(.22, .82, .22, 1);
}
.reciprocity-card__number { margin-bottom: 10px; color: #3d1b0b; font-size: 10px; font-weight: 800; letter-spacing: .13em; }
.reciprocity-card__heading { display: block; margin: 0 0 9px; font-family: 'Fraunces', Georgia, serif; font-size: 21px; font-weight: 500; line-height: 1.08; }
.reciprocity-card__body { display: block; color: #2d1a0f; font-family: 'DM Sans', Arial, sans-serif; font-size: 13px; line-height: 1.43; }
.reciprocity-card__extra { display: block; margin-top: 7px; color: var(--reciprocity-green); font-weight: 700; }
.reciprocity-card__hint { margin-top: auto; padding-top: 10px; color: #173d29; font-size: 10px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }

/* SEGUNDO GRUPO: madera nogal oscura para distinguir los saberes que se transmiten. */
.reciprocity__group:last-of-type .reciprocity-card__copy {
  color: #fff4df;
  background:
    radial-gradient(ellipse at 20% 30%, rgba(20, 8, 3, .38) 0 2px, transparent 3px 10px, rgba(231, 174, 104, .12) 11px 12px, transparent 13px),
    radial-gradient(ellipse at 80% 66%, rgba(22, 9, 3, .34) 0 2px, transparent 3px 9px, rgba(245, 196, 128, .1) 10px 12px, transparent 13px),
    repeating-linear-gradient(2deg, rgba(24, 9, 3, .2) 0 1px, transparent 1px 7px),
    linear-gradient(102deg, #4a2513 0%, #70401f 24%, #5b3018 50%, #774622 72%, #3d1d0f 100%);
  background-size: 180px 130px, 210px 145px, 100% 12px, auto;
}

.reciprocity__group:last-of-type .reciprocity-card__number { color: #ffd39a; }
.reciprocity__group:last-of-type .reciprocity-card__body { color: #f8ead5; }
.reciprocity__group:last-of-type .reciprocity-card__extra { color: #bfe8c9; }
.reciprocity__group:last-of-type .reciprocity-card__hint { color: #d8f2df; }

.reciprocity-card__image { position: absolute; z-index: 2; inset: 0; overflow: hidden; transition: transform var(--reciprocity-transition) cubic-bezier(.22, .82, .22, 1); }
.reciprocity-card__image::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6, 15, 12, .02), rgba(6, 15, 12, .15)); }
.reciprocity-card__image img { display: block; width: 100%; height: 100%; object-fit: cover; }
.reciprocity-card__open-label { position: absolute; z-index: 4; left: 18px; bottom: 18px; padding: 8px 11px; color: #fff; font-size: 12px; font-weight: 700; border-radius: 99px; background: rgba(10, 24, 18, .82); opacity: 0; transform: translateY(8px); transition: opacity .28s ease, transform .28s ease; }
.reciprocity-card:hover .reciprocity-card__image { transform: scale(1.025); }
.reciprocity-card[aria-expanded="true"] .reciprocity-card__copy { pointer-events: none; transform: translateY(-108%); }
.reciprocity-card[aria-expanded="true"] .reciprocity-card__image { transform: scale(1.035); }
.reciprocity-card[aria-expanded="true"] .reciprocity-card__open-label { opacity: 1; transform: none; }

/* RESPONSIVIDAD: tres columnas; dos bajo 680 px; una bajo 480 px. */
@media (max-width: 900px) {
  .reciprocity__shell { width: 94%; }
  .reciprocity__grid { gap: 11px; }
  .reciprocity-card__heading { font-size: 18px; }
  .reciprocity-card__body { font-size: 12px; }
  .reciprocity-card__copy { padding: 18px 16px 14px; }
}

@media (max-width: 680px) {
  .reciprocity__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); padding-bottom: 0; }
  .reciprocity__group .reciprocity-card:nth-child(n) { transform: none; }
  .reciprocity-card__heading { font-size: 21px; }
  .reciprocity-card__body { font-size: 13px; }
  .reciprocity-card__copy { padding: 22px 21px 17px; }
  /* En móvil deja respirar el segundo título respecto de la última tarjeta clara. */
  .reciprocity__group + .reciprocity__group { margin-top: 64px; }
}

@media (max-width: 480px) {
  .reciprocity { --reciprocity-card-height: 350px; --reciprocity-padding-y: 34px; padding-bottom: 42px; }
  .reciprocity__shell { width: calc(100% - 32px); }
  .reciprocity__grid { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .reciprocity-card { min-width: 0; }
  .reciprocity-card__copy { height: 73%; padding: 21px 20px 16px; }
}

/* ACCESIBILIDAD: elimina las transiciones si el sistema reduce movimiento. */
@media (prefers-reduced-motion: reduce) {
  .reciprocity-card__copy, .reciprocity-card__image, .reciprocity-card__open-label { transition: none; }
}

/* Separa la cinta animada de los controles y reserva aire sólo para el marco decorativo. */
.nn-carousel__viewport {
  position: relative;
  left: 50%;
  width: min(130%, calc(100vw - 2rem), 1500px);
  /* Compensa el borde transparente del PNG y acerca el marco de madera al título. */
  margin-top: clamp(-4rem, -4vw, -1.5rem);
  padding-block: clamp(5.5rem, 10vw, 9.5rem);
  overflow: hidden;
  transform: translateX(-50%);
}

/* La ventana permanece inmóvil sobre la cinta; su transparencia deja libre el hueco central. */
.nn-carousel__window-frame {
  position: absolute;
  z-index: 3;
  top: 50%;
  left: 50%;
  display: block;
  width: auto;
  max-width: none;
  height: calc(100% - .75rem);
  object-fit: contain;
  transform: translate(-50%, -50%);
  pointer-events: none;
  user-select: none;
}

/* Difuminado en los bordes para que el "cinta transportadora" no corte feo */
.nn-carousel__viewport::before,
.nn-carousel__viewport::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: clamp(2rem, 8vw, 6rem);
  z-index: 2;
  pointer-events: none;
}
.nn-carousel__viewport::before {
  left: 0;
  background: linear-gradient(90deg, var(--nn-bg), transparent);
}
.nn-carousel__viewport::after {
  right: 0;
  background: linear-gradient(270deg, var(--nn-bg), transparent);
}

.nanas-ecosystem-page .carousel-track {
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: stretch;
  gap: 1.25rem;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: auto;
  scroll-snap-type: none;
  overscroll-behavior-inline: contain;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 0.5rem;
  cursor: grab;
  touch-action: pan-y;
  user-select: none;
  list-style: none;
  margin: 0;
}
.nanas-ecosystem-page .carousel-track.is-dragging {
  cursor: grabbing;
  scroll-behavior: auto;
  scroll-snap-type: none;
}
.nanas-ecosystem-page .carousel-track::-webkit-scrollbar {
  display: none;
}

/* Fotografías 16:9: dos visibles en computador y tablet. */
.nanas-ecosystem-page .carousel-slide {
  flex: 0 0 calc(50% - 0.625rem) !important;
  width: calc(50% - 0.625rem);
  height: auto;
  /* Un 20 % más de altura, repartido visualmente desde el centro. */
  aspect-ratio: 40 / 27;
  border-radius: var(--nn-radius);
  overflow: hidden;
  border: 1px solid var(--nn-line);
  background: var(--nn-surface);
  position: relative;
  margin: 0;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

/* Conserva el encuadre 16:9 y aplica un acercamiento sutil al interactuar. */
.nanas-ecosystem-page .carousel-slide img {
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  object-fit: cover !important;
  object-position: center !important;
  display: block !important;
  margin: 0 !important;
  border-radius: 0 !important;
  background: var(--nn-surface);
  pointer-events: none;
  transform: scale(1.001);
  transition: transform .55s ease;
}
.carousel-slide:hover img,
.carousel-slide:focus-within img {
  transform: scale(1.035);
}

.carousel-slide figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1.25rem 1.25rem 1rem;
  background: linear-gradient(180deg, transparent, rgba(20, 17, 14, 0.92) 75%);
  color: var(--nn-text);
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.carousel-slide figcaption strong {
  font-family: var(--nn-font-display);
  font-size: 1.15rem;
  color: var(--nn-ember-light);
}

/* Puntos compactos: sustituyen los tres botones sin reservar su altura. */
.nn-carousel__dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  min-height: 14px;
  margin-top: .35rem;
}

.nn-carousel__dot {
  width: 8px;
  height: 8px;
  border: 1px solid rgba(255, 255, 255, .5);
  border-radius: 50%;
  background: rgba(255, 255, 255, .2);
  box-shadow: 0 0 0 0 rgba(242, 106, 33, 0);
  transition: width .3s ease, background-color .3s ease, border-color .3s ease, box-shadow .3s ease;
}

.nn-carousel__dot.is-active {
  width: 22px;
  border-color: var(--nn-ember-light);
  border-radius: 999px;
  background: var(--nn-ember);
  box-shadow: 0 0 10px rgba(242, 106, 33, .45);
}

@media (max-width: 620px) {
  /* En celulares prioriza la abertura y permite recortar las hojas laterales. */
  .nn-carousel__viewport {
    left: auto;
    width: 100%;
    padding-block: 5.5rem;
    transform: none;
  }
  .nanas-ecosystem-page .carousel-slide {
    flex: 0 0 100% !important;
    width: 100%;
  }
  .carousel-slide figcaption {
    left: clamp(1.6rem, 9vw, 2.75rem);
    right: clamp(1.6rem, 9vw, 2.75rem);
  }
  .nn-carousel__dots { margin-top: .15rem; }
}

/* MÓVIL VERTICAL: la foto gana altura para llenar mejor la abertura de la ventana. */
@media (max-width: 620px) and (orientation: portrait) {
  .nanas-ecosystem-page .carousel-slide {
    aspect-ratio: 6 / 5;
  }
}

@media (prefers-reduced-motion: reduce) {
  .nanas-ecosystem-page .carousel-track { scroll-behavior: auto; }
  .nanas-ecosystem-page .carousel-slide img,
  .nn-carousel__dot { transition: none; }
  .carousel-slide:hover img,
  .carousel-slide:focus-within img { transform: none; }
}
/* ============================================================
   18. EFECTO DE PARTÍCULAS (Fondo de estrellas)
   ============================================================ */
.particles-canvas {
  position: absolute;
  inset: 0;
  z-index: 20;
  pointer-events: none;
}
.hero h1 {
  font-family: "Kaushan Script", cursive !important;
}

/* ============================================================
   BLOQUE 3 — "KIMÜN · RECIPROCIDAD" (Problema / Solución)
   ============================================================ */
.nn-reciprocity {
  padding: 5rem 0;
}

.nn-reciprocity__heading {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 3rem;
}

.nanas-ecosystem-page .nn-reciprocity__grid {
  display: grid !important;
  grid-template-columns: 1fr auto 1fr;
  gap: clamp(1.25rem, 3vw, 2rem);
  align-items: stretch;
}

/* Conector central: insignia circular con ícono, en vez de una
   línea delgada — representa el intercambio (Kimün) entre ambas cajas */
.nn-reciprocity__connector {
  display: flex;
  align-items: center;
  justify-content: center;
}

.nn-reciprocity__connector-icon {
  width: 52px;
  height: 52px;
  min-width: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: #1A1108;
  background: linear-gradient(135deg, var(--nn-flame-gold), var(--nn-ember));
  box-shadow: 0 0 0 6px var(--nn-bg), 0 0 30px 6px rgba(45, 135, 78, 0.45);
  animation: nn-ember-pulse 2.6s ease-in-out infinite;
}

@keyframes nn-ember-pulse {
  0%, 100% { box-shadow: 0 0 0 6px var(--nn-bg), 0 0 22px 4px rgba(45, 135, 78, 0.4); }
  50%      { box-shadow: 0 0 0 6px var(--nn-bg), 0 0 34px 10px rgba(45, 135, 78, 0.65); }
}

@media (max-width: 860px) {
  .nanas-ecosystem-page .nn-reciprocity__grid { grid-template-columns: 1fr !important; }
  .nn-reciprocity__connector { padding: 0.5rem 0; }
}

/* Cajas: cabecera con ícono + barra superior de color, para que
   se lean como tarjetas reales y no como columnas de texto suelto */
.nn-card {
  position: relative;
  background: linear-gradient(160deg, var(--nn-surface-2), var(--nn-surface));
  border: 1px solid var(--nn-line);
  border-radius: var(--nn-radius);
  padding: clamp(1.75rem, 3vw, 2.25rem);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  overflow: hidden;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.nn-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.45);
}

.nn-card__top-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--nn-ember), var(--nn-flame-gold));
}

.nn-card__header {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin: 0.4rem 0 1.25rem;
}

.nn-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: 12px;
  font-size: 1.35rem;
  background: rgba(234, 88, 12, 0.14);
}

.nn-card h3 {
  font-size: 1.25rem;
  color: var(--nn-ember-light);
  margin: 0;
  line-height: 1.25;
}

.nn-card ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.nn-card li {
  position: relative;
  padding-left: 1.4rem;
  color: var(--nn-text);
  font-size: 1rem;
  line-height: 1.55;
}

.nn-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--nn-ember);
}

@media (prefers-reduced-motion: reduce) {
  .nn-reciprocity__connector-icon { animation: none; }
}

/* ============================================================
   BLOQUE 4 — CAJAS DEL ECOSISTEMA (Conversión)
   ============================================================ */
.nn-ecosystem {
  position: relative;
  z-index: 2;
  padding: 5rem 0 6rem;
}

.nn-ecosystem__heading {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 3rem;
}

.nn-ecosystem__heading h2 {
  max-width: 620px;
  margin: 0 auto;
  font-size: clamp(2rem, 4.5vw, 3rem);
  line-height: 1.15;
}

/* Grid explícito de 3 columnas — evitamos auto-fit porque, si el
   contenedor hereda un ancho o box-sizing conflictivo desde
   desarrollo.css, auto-fit puede colapsar todo a 1 columna. */
.nanas-ecosystem-page .nn-ecosystem__grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 1.75rem;
  width: 100%;
}

@media (max-width: 900px) {
  .nanas-ecosystem-page .nn-ecosystem__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 620px) {
  /* TIPOGRAFÍA MÓVIL: evita que el título del ecosistema domine toda la pantalla. */
  .nn-hero {
    min-height: auto;
    padding: 5.75rem 0 4.75rem;
  }

  /* Evita una capa gráfica pegada durante el desplazamiento en móviles. */
  .nn-hero__video { filter: none; }

  .nn-ecosystem {
    width: 100%;
    padding: 2rem 0 3.5rem;
  }

  .nn-ecosystem__heading {
    max-width: 100%;
    margin-bottom: 1.75rem;
  }

  .nn-ecosystem__heading .eyebrow {
    max-width: 28ch;
    font-size: .68rem;
    line-height: 1.45;
    letter-spacing: .11em;
  }

  .nn-ecosystem__heading h2 {
    max-width: 18ch;
    font-size: clamp(1.75rem, 8vw, 2.1rem);
    line-height: 1.18;
  }

  .nanas-ecosystem-page .nn-ecosystem__grid {
    grid-template-columns: 1fr !important;
  }
}

.nanas-ecosystem-page .nn-eco-card {
  display: flex !important;
  flex-direction: column !important;
  align-items: center;
  gap: 0.75rem;
  padding: 2.5rem 1.5rem 2rem;
  border-radius: var(--nn-radius);
  background: var(--nn-surface);
  text-align: center;
  text-decoration: none;
 border: 2px solid var(--nn-green);
  min-width: 0;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275),
              box-shadow 0.4s ease,
              background 0.4s ease;
              /* <-- Añadida transición para el borde */
}

.nn-eco-card__icon-ring {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(234, 88, 12, 0.18), transparent 70%);
  margin-bottom: 0.25rem;
}

.nn-eco-card .icono-gif {
  width: 52px;
  height: 52px;
  object-fit: contain;
}

.nn-eco-card h3 {
  color: var(--nn-ember-light);
  font-size: 1.2rem;
  margin: 0;
}

.nn-eco-card p {
  color: var(--nn-muted);
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.5;
}

.nn-eco-card__link {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--nn-ember-light);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: gap 0.25s ease;
}

.nn-eco-card:hover,
.nn-eco-card:focus-visible {
  transform: scale(1.05);
  box-shadow: 0 18px 45px rgba(12, 134, 53, 0.35);
  background: rgba(22,101,52,.5); /* <-- Fondo verde agregado */
  border-color: var(--green-light); /* <-- Borde verde agregado */
  z-index: 2;
}

.nn-eco-card:hover .nn-eco-card__link {
  gap: 0.6rem;
}


.nn-eco-card:focus-visible {
  outline: 3px solid var(--nn-ember-light);
  outline-offset: 3px;
}


/* ============================================================
   ACCESIBILIDAD — reduced motion
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  .nn-btn, .nn-eco-card, .nn-card { transition: none; }
}

/* Las tres entradas del ecosistema ocupan un 30 % menos en celular. */
@media (max-width: 620px) {
  .nanas-ecosystem-page .nn-eco-card {
    gap: .525rem;
    padding: 1.75rem 1.05rem 1.4rem;
    border-radius: 15px;
  }

  .nanas-ecosystem-page .nn-eco-card__icon-ring {
    width: 59px;
    height: 59px;
    margin-bottom: .15rem;
  }

  .nanas-ecosystem-page .nn-eco-card .icono-gif {
    width: 37px !important;
    height: 37px !important;
    margin: 0 !important;
  }

  .nanas-ecosystem-page .nn-eco-card h3 {
    font-size: .9rem;
    line-height: 1.25;
  }

  .nanas-ecosystem-page .nn-eco-card p {
    font-size: .85rem;
    line-height: 1.45;
  }

  .nanas-ecosystem-page .nn-eco-card__link {
    margin-top: .35rem;
    font-size: .8rem;
  }
}
