@import url("https://fonts.googleapis.com/css2?family=Alegreya+Sans:ital,wght@0,400;0,500;0,700;0,900;1,400;1,700;1,900&display=swap");

/* ===== VARIABLES ===== */
:root {
  --cream: #f3eddd;
  --terracotta: #a7492f;
  --golden: #d9ab53;
  --green-dark: #216139;
  --black: #0d0d0d;
  --font: "Alegreya Sans", sans-serif;
}

/* ===== RESET ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: var(--font);
  background: var(--cream);
  color: var(--black);
  overflow-x: hidden;
}
img {
  max-width: 100%;
  display: block;
}
a {
  text-decoration: none;
  color: inherit;
}
ul {
  list-style: none;
}

/* ===== NAVIGATION ===== */
.site-nav {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1001;
  display: flex;
  align-items: center;
  padding: 1.5rem 2.5rem;
  pointer-events: none;
}

.nav-logo {
  pointer-events: all;
}

.nav-logo img {
  height: 48px;
  width: auto;
  filter: brightness(0) invert(1);
}

/* Hamburger — fixed top-right, always visible on all breakpoints */
.nav-hamburger {
  position: fixed;
  top: 1.25rem;
  right: 1.5rem;
  z-index: 1000;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  padding: 10px 12px;
  border-radius: 6px;
  pointer-events: all;
}
.nav-hamburger span {
  display: block;
  width: 28px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transform-origin: center;
  transition:
    transform 0.35s cubic-bezier(0.23, 1, 0.32, 1),
    opacity 0.25s ease,
    width 0.3s ease;
}
/* Hamburger → X animation */
.nav-hamburger.open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.nav-hamburger.open span:nth-child(2) {
  opacity: 0;
  width: 0;
}
.nav-hamburger.open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Full-screen overlay menu */
.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(13, 13, 13, 0.97);
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}
.nav-overlay.open {
  opacity: 1;
  pointer-events: all;
}
.nav-overlay a {
  color: var(--cream);
  font-family: var(--font);
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 700;
  font-style: italic;
  letter-spacing: 0.05em;
  transition:
    color 0.2s,
    transform 0.2s;
}
.nav-overlay a:hover {
  color: var(--golden);
  transform: translateX(6px);
}

/* ===== HERO INICIO ===== */
.hero-inicio {
  position: relative;
  width: 100%;
}

.hero-inicio .hero-header-img {
  width: 100%;
  display: block;
}

.hero-tagline {
  background: var(--cream);
  overflow: hidden;
  padding-bottom: 5rem;
}

/* Fila pájaro + título — posición fiel al Figma */
/* Bird: x=349/1728=20.2% | gap=184/1728=10.6vw | texto: x=609 */
.hero-tagline-row {
  display: flex;
  align-items: flex-end; /* bird alinea al fondo del texto, como en Figma */
  padding: 0 3.9% 3rem 20vw; /* left padding empuja el bird a ~20% */
  gap: 10.6vw;
}

.hero-tagline h1 {
  font-family: var(--font);
  font-size: clamp(1.8rem, 4.6vw, 5rem);
  font-style: italic;
  font-weight: 700;
  color: var(--green-dark);
  line-height: 1.07;
  letter-spacing: 0.02em;
  max-width: 1020px;
}

.hero-bird {
  width: clamp(40px, 4.4vw, 76px);
  flex-shrink: 0;
}

/* Imagen de cerros: full width, sin márgenes laterales */
.hero-mountains {
  width: 100%;
  display: block;
}

/* ===== HERO PAGES (non-inicio) ===== */
.hero-page {
  position: relative;
  width: 100%;
  height: clamp(300px, 58vw, 750px);
  overflow: hidden;
}

.hero-page-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-page-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.25);
}

.hero-page-title {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font);
  font-size: clamp(3rem, 8.5vw, 8.5rem);
  font-style: italic;
  font-weight: 700;
  color: #fff;
  text-align: center;
  white-space: nowrap;
  letter-spacing: 0.02em;
  line-height: 1;
}

.hero-page-title--dark {
  font-weight: 900;
  font-style: normal;
  text-transform: uppercase;
  color: var(--cream);
}

.hero-photo-credit {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font);
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  white-space: nowrap;
}

/* ===== CONTORNEADO BORDER ===== */
.contorneado {
  width: 100%;
  height: clamp(
    40px,
    6.83vw,
    118px
  ); /* 118/1728=6.83% — proporción exacta Figma */
  display: block;
}

/* ===== HISTORIA SECTION ===== */
.section-historia {
  background: var(--terracotta);
  position: relative;
  overflow: hidden;
  padding: 8.3vw 8vw 8vw 44%;
}

.historia-deco-left {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: clamp(180px, 36vw, 620px);
  height: auto;
  pointer-events: none;
}

.historia-content {
  /* fluye en el espacio derecho dado por el padding-left */
}

.historia-content h2 {
  font-family: var(--font);
  font-size: clamp(2.5rem, 5.8vw, 6rem);
  font-style: italic;
  font-weight: 700;
  color: var(--cream);
  margin-bottom: clamp(1.5rem, 10.9vw, 189px);
  line-height: 1;
}

.historia-texts {
  display: flex;
  flex-direction: column;
  gap: clamp(2rem, 10.9vw, 189px);
}

.historia-texts p {
  font-family: var(--font);
  font-size: clamp(1rem, 2vw, 2.1rem);
  font-weight: 500;
  color: var(--cream);
  line-height: 1.14;
}

/* ===== MISIÓN SECTION ===== */
.section-mision {
  background: var(--golden);
  display: flex;
  flex-direction: column;
}

.mision-border {
  width: 100%;
  height: clamp(40px, 6.83vw, 118px);
  display: block;
  flex-shrink: 0;
}

.mision-inner {
  padding: 5rem 5%;
  text-align: center;
}

.section-mision h2 {
  font-family: var(--font);
  font-size: clamp(2.5rem, 5.8vw, 6rem);
  font-style: italic;
  font-weight: 700;
  color: #52392e;
  margin-bottom: 1.5rem;
  line-height: 1;
}

.mision-desc {
  font-family: var(--font);
  font-size: clamp(1rem, 2vw, 2rem);
  font-weight: 500;
  color: #52392e;
  max-width: clamp(300px, 62.6vw, 1081px);
  line-height: 1.15;
  margin: 0 auto 4rem;
}

.mision-photos {
  display: flex;
  gap: clamp(2rem, 14.1vw, 243px);
  justify-content: center;
  flex-wrap: wrap;
}

.mision-photo-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}

.mision-photo-item img {
  width: clamp(140px, 18.5vw, 320px);
  height: clamp(140px, 18.5vw, 320px);
  border-radius: 50%;
  object-fit: cover;
}

.mision-photo-item span {
  font-family: var(--font);
  font-size: clamp(0.8rem, 1.1vw, 1.2rem);
  font-weight: 500;
  font-style: italic;
  color: #52392e;
  text-align: center;
  max-width: clamp(140px, 18.5vw, 320px);
}

/* ===== IMPACTO SECTION ===== */
.section-impacto {
  position: relative;
  overflow: hidden;
}

.impacto-border-top {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: auto;
  z-index: 2;
  display: block;
}

.impacto-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
  display: block;
}

.impacto-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 8rem 5% 10rem 5%;
}

.section-impacto h2 {
  font-family: var(--font);
  font-size: clamp(2.5rem, 5.8vw, 6rem);
  font-style: italic;
  font-weight: 700;
  color: var(--cream);
  margin-bottom: 2.5rem;
  line-height: 1;
}

.impacto-stats {
  display: flex;
  flex-direction: column;
  gap: 4rem;
  margin-left: 35%;
}

.impacto-stat {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.impacto-stat img,
.impacto-stat .stat-icon {
  width: clamp(50px, 6vw, 105px);
  height: auto;
  flex-shrink: 0;
}

.impacto-stat p {
  font-family: var(--font);
  font-size: clamp(0.9rem, 1.8vw, 2rem);
  font-weight: 700;
  color: var(--cream);
  line-height: 1.15;
}
.impacto-stat p strong {
  display: block;
  font-size: 1.2em;
  margin-bottom: 1rem;
}

/* ===== CTA SECTION ===== */
.section-cta {
  background: var(--cream);
  padding: 8rem 5% 10rem 5%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(1.5rem, 4vw, 5rem);
}

.cta-plant {
  width: clamp(60px, 9.8vw, 169px);
  flex-shrink: 0;
}

.cta-plant--flip {
  transform: scaleX(-1);
}

.section-cta h2 {
  font-family: var(--font);
  font-size: clamp(1.8rem, 4.5vw, 5rem);
  font-style: italic;
  font-weight: 700;
  color: var(--terracotta);
  text-align: center;
  line-height: 1.1;
  max-width: clamp(200px, 38vw, 620px);
}

/* ===== FOOTER ===== */
.site-footer {
  position: relative;
  background: var(--black);
  padding: 3rem 5% 2.5rem;
  text-align: center;
}

/* Footer wrapper used in index.html */
.footer-wrap {
  background: var(--cream);
  overflow: hidden;
  position: relative;
}

.footer-bg-img {
  width: 80%;
  display: block;
  margin: 0 auto;
  aspect-ratio: 1728 / 817;
}

.footer-bottom {
  position: absolute;
  bottom: 15%;
  left: 0;
  right: 0;
  background: transparent;
  padding: 0 5%;
  text-align: center;
}

.footer-insignia {
  width: clamp(180px, 20vw, 374px);
  margin: 0 auto 1.5rem;
}

.footer-tagline {
  font-family: var(--font);
  font-size: clamp(0.85rem, 1.4vw, 2rem);
  font-weight: 700;
  color: #fff;
  text-align: center;
  margin: 0 auto 2.5rem;
  letter-spacing: 0.02em;
  max-width: 24ch;
}

.footer-social {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}

.footer-social a {
  color: #fff;
  display: flex;
  align-items: center;
  transition: opacity 0.2s;
}
.footer-social a:hover {
  opacity: 0.7;
}

.footer-social svg {
  width: 22px;
  height: 22px;
  fill: #fff;
}

/* ===== NOSOTRXS PAGE ===== */
/* ===== NOSOTRXS TEXT SECTIONS — editorial scattered layout ===== */
.ns-section {
  background: var(--cream);
  padding: 4vw 0 14vh;
}

/* Inner wrapper: constrained, centered, position context for absolute children */
.ns-inner {
  position: relative;
  max-width: 1700px;
  margin: 0 auto;
}

/* Shared title style */
.ns-title {
  font-family: var(--font);
  font-size: clamp(3rem, 11.57vw, 200px);
  font-style: italic;
  font-weight: 500;
  line-height: 1;
  position: absolute;
}

/* Shared body style */
.ns-body {
  font-family: var(--font);
  font-size: clamp(0.875rem, 2.03vw, 1.75rem);
  font-weight: 400;
  line-height: 1.45;
  position: absolute;
  margin: 0;
}

/* ---- Quiénes somos ---- */
.section-quienes {
  color: #52392e;
  padding: 4vw 0 0;
}
.section-quienes .ns-title {
  font-weight: 500;
  font-style: italic;
}
.section-quienes .ns-inner {
  min-height: 26vw;
}
.section-quienes .ns-t1 {
  left: 17%;
  top: 0;
}
.section-quienes .ns-b1 {
  left: 52.8%;
  top: 0.5vw;
  width: 36.3%;
}
.section-quienes .ns-t2 {
  left: 49.9%;
  top: 9.14vw;
}
.section-quienes .ns-b2 {
  left: 12.6%;
  top: 15.05vw;
  width: 33.7%;
  text-align: right;
}

/* ---- Nuestra historia ---- */
.section-historia-nosotrxs {
  color: #a7492f;
}
.section-historia-nosotrxs .ns-inner {
  min-height: 46vw;
}
.section-historia-nosotrxs .ns-t1 {
  left: 14.3%;
  top: -5%;
}
.section-historia-nosotrxs .ns-b1 {
  left: 6.1%;
  top: 12.56vw;
  width: 22.2%;
}
.section-historia-nosotrxs .ns-b2 {
  left: 33.7%;
  top: 12.56vw;
  width: 27.5%;
}
.section-historia-nosotrxs .ns-b3 {
  left: 66.6%;
  top: 12.56vw;
  width: 27.3%;
}
.section-historia-nosotrxs .ns-t2 {
  left: 49.3%;
  top: 27.9vw;
}
.ns-pajaro {
  position: absolute;
  left: 25.7%;
  top: 40.3vw;
  width: clamp(40px, 5.3vw, 91px);
  pointer-events: none;
}

/* ---- Nuestro sueño ---- */
.section-sueno {
  color: #216139;
}
.section-sueno .ns-title {
  font-weight: 500;
  font-style: italic;
}
.section-sueno .ns-inner {
  min-height: 38vw;
}
.section-sueno .ns-b1 {
  left: 52.5%;
  top: 0;
  width: 22.4%;
}
.section-sueno .ns-t1 {
  left: 15.9%;
  top: 1.56vw;
}
.section-sueno .ns-t2 {
  left: 49.9%;
  top: 9.84vw;
}
.section-sueno .ns-b2 {
  left: 18.6%;
  top: 17.3vw;
  width: 28.1%;
  text-align: right;
}
.section-sueno .ns-b3 {
  left: 52.7%;
  top: 24.8vw;
  width: 37.3%;
}

/* ===== VALORES + ALIANZAS (combined section) ===== */
.section-va {
  background: var(--cream);
  padding: 10.5vw 0 9vw;
  overflow: hidden; /* let graphics bleed to edge */
}

/* ── Each row ──────────────────────────────────────────────────── */
.va-row {
  display: flex;
  align-items: flex-start;
  margin-bottom: clamp(1rem, 5.25vw, 91px);
}
.va-row:last-of-type {
  margin-bottom: 0;
}

/* ── Horizontal golden-bar graphic ─────────────────────────────── */
/* Figma: 825×114 out of 1728px frame = 47.7vw wide */
.va-graphic {
  width: clamp(220px, 47.7vw, 825px);
  height: auto;
  flex-shrink: 0;
  display: block;
  position: relative;
  top: 20px;
}

/* Row-A (graphic LEFT): natural orientation — spiral points RIGHT toward text */
.va-row-a .va-graphic {
  margin-left: 0;
  margin-right: clamp(1rem, 2.3vw, 40px);
}

/* Row-B (graphic RIGHT): flip so spiral points LEFT toward text */
.va-row-b .va-graphic {
  transform: scaleX(-1);
  margin-left: 3% !important;
  margin-right: 0;
  order: 2;
}
.va-row-b .va-text-block {
  order: 1;
  margin-left: clamp(1rem, 23.1vw, 400px);
  text-align: right;
}

/* ── Text block ──────────────────────────────────────────────────  */
/* Figma: text width ≈ 465px / 1728 = 26.9vw */
.va-text-block {
  width: clamp(180px, 26.9vw, 465px);
  flex-shrink: 0;
}

.va-text-block h3 {
  font-family: var(--font);
  font-size: clamp(1rem, 2.03vw, 35px);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #000;
  margin-bottom: 0.4em;
  line-height: 1.1;
  white-space: nowrap;
}

.va-text-block p {
  font-family: var(--font);
  font-size: clamp(0.85rem, 1.74vw, 30px);
  font-weight: 500;
  line-height: 1.45;
  color: #000;
}

/* ── Logos grid ──────────────────────────────────────────────────  */
/* Figma: logos start at x≈744/1728 = 43.1vw; 2 cols × 3 rows */
.va-alianzas-list {
  list-style: none;
  margin-top: clamp(1rem, 2vw, 2rem);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.va-alianzas-list li {
  font-family: var(--font);
  font-size: clamp(1rem, 1.6vw, 1.8rem);
  font-weight: 900;
  color: var(--black);
  line-height: 1.2;
}

.va-alianzas-list li a {
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  color: inherit;
  line-height: inherit;
  text-decoration: none;
}

.va-alianzas-list li a:hover {
  text-decoration: underline;
}

/* ===== ACCIONES PAGE ===== */
.acciones-main-wrap {
  position: relative;
  overflow: hidden;
}

.section-acciones-list {
  background: var(--cream);
  padding: 4rem 0;
}

.accion-border-img {
  position: absolute;
  left: -13px;
  top: 0;
  bottom: 0;
  width: clamp(40px, 6.6vw, 114px);
  height: 100%;
  object-fit: fill;
  pointer-events: none;
  mix-blend-mode: multiply;
  opacity: 1;
  z-index: 2;
}

.accion-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4rem;
  padding: 3rem clamp(2rem, 16vw, 277px) 3rem clamp(3rem, 24.7vw, 427px);
  max-width: 1500px;
  margin: 0 auto;
}

.accion-item.reverse {
  flex-direction: row-reverse;
}

.accion-icon {
  width: clamp(100px, 14vw, 267px);
  height: clamp(100px, 14vw, 267px);
  object-fit: contain;
  flex-shrink: 0;
}

.accion-text {
  flex: 1;
}

.accion-text h3 {
  font-family: var(--font);
  font-size: clamp(1.5rem, 3vw, 3.5rem);
  font-style: italic;
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.1;
}

.accion-text p {
  font-family: var(--font);
  font-size: clamp(0.9rem, 1.6vw, 2rem);
  font-weight: 500;
  line-height: 1.3;
}

/* Per-item colors (title + body match in Figma) */
.accion--brown .accion-text h3,
.accion--brown .accion-text p {
  color: #52392e;
}

.accion--green .accion-text h3,
.accion--green .accion-text p {
  color: #216139;
}

.accion--black .accion-text h3,
.accion--black .accion-text p {
  color: #0d0d0d;
}

.accion--terracotta .accion-text h3,
.accion--terracotta .accion-text p {
  color: #a7492f;
}

/* ===== RECURSOS PAGE ===== */
.section-recursos-libro {
  background: #d2e1d5;
  padding: 5rem 5% 5rem clamp(2rem, 20.7vw, 358px);
  position: relative;
}

.libro-inner {
  display: flex;
  align-items: center;
  gap: clamp(2rem, 12.7vw, 220px);
}

.libro-cover {
  width: clamp(160px, 25vw, 435px);
  flex-shrink: 0;
  border-radius: 4px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.libro-info {
  flex-shrink: 0;
  width: clamp(200px, 19.2vw, 332px);
}

.libro-info h2 {
  font-family: var(--font);
  font-size: clamp(1.5rem, 2.8vw, 4rem);
  font-style: italic;
  font-weight: 500;
  color: #52392e;
  line-height: 1.1;
  margin-bottom: 1.25rem;
}

.libro-info p {
  font-family: var(--font);
  font-size: clamp(0.9rem, 1.6vw, 1.8rem);
  font-weight: 500;
  color: #52392e;
  line-height: 1.3;
  margin-bottom: 1.5rem;
}

.btn-descargar {
  display: inline-block;
  font-family: var(--font);
  font-size: clamp(0.75rem, 1vw, 1.1rem);
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #52392e;
  transition: opacity 0.2s;
}
.btn-descargar:hover {
  color: var(--terracotta);
}

/* Bird — positioned absolute inside libro section, bottom-right */
.recursos-pajaro {
  position: absolute;
  right: 5%;
  bottom: -24%;
  width: clamp(64px, 10.4vw, 178px);
  height: auto;
  pointer-events: none;
  mix-blend-mode: darken;
}

/* Wave divider — sawtooth from mint to cream */
.recursos-wave-divider {
  width: 100%;
  display: block;
  margin-top: -1px;
}

/* Galería text */
.section-galeria-text {
  background: var(--cream);
  padding: 5rem 5%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.section-galeria-text p {
  font-family: var(--font);
  font-size: clamp(0.9rem, 1.6vw, 1.8rem);
  font-weight: 400;
  color: var(--black);
  line-height: 1.4;
  max-width: 700px;
  width: 100%;
  margin-bottom: 1.25rem;
}

.section-foto-full {
  width: 100%;
}

.section-foto-full img {
  width: 100%;
  height: auto;
  display: block;
  margin-bottom: 4rem;
}

/* ===== BLOG — LISTADO ===== */
.blog-main-wrap {
  position: relative;
}

.blog-border-img {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: auto;
  pointer-events: none;
  z-index: 1;
}

.section-blog-list {
  padding: 5rem 1rem;
  max-width: 1000px;
  margin: 0 auto;
}

.blog-article-list {
  list-style: none;
  width: 100%;
}

/* Separador entre items */
.blog-article-item + .blog-article-item {
  border-top: 1.5px solid rgba(13, 13, 13, 0.12);
}

.blog-article-link {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2.5rem;
  padding: 1.8rem 0;
  text-decoration: none;
  transition: opacity 0.2s;
}
.blog-article-link:hover {
  opacity: 0.65;
}

.blog-article-title {
  font-family: var(--font);
  font-size: 3.7rem;
  font-weight: 500;
  font-style: normal;
  line-height: 1.2;
  flex: 1;
}

/* Colores en ciclo de 3: negro → verde → terracota */
.blog-article-item:nth-child(3n + 1) .blog-article-title {
  color: #52392e;
}
.blog-article-item:nth-child(3n + 2) .blog-article-title {
  color: var(--green-dark);
}
.blog-article-item:nth-child(3n) .blog-article-title {
  color: var(--terracotta);
}

/* Triángulo ▶ — mismo color que el título */
.blog-article-arrow {
  flex-shrink: 0;
  width: 0;
  height: 0;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-left: 18px solid var(--green-dark);
  margin-top: 0.55rem;
}
.blog-article-item:nth-child(3n + 1) .blog-article-arrow {
  border-left-color: #52392e;
}
.blog-article-item:nth-child(3n + 2) .blog-article-arrow {
  border-left-color: var(--green-dark);
}
.blog-article-item:nth-child(3n) .blog-article-arrow {
  border-left-color: var(--terracotta);
}

/* Paginación */
.blog-pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 3rem;
}

.blog-pag-prev,
.blog-pag-next {
  font-family: var(--font);
  font-size: clamp(0.9rem, 1.1vw, 1.2rem);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--black);
  transition: opacity 0.2s;
}
.blog-pag-prev:hover,
.blog-pag-next:hover {
  opacity: 0.5;
}

/* ===== BLOG — ARTÍCULO INDIVIDUAL ===== */

/* Sección de título con fondo verde + cenefa azteca */
.section-blog-titulo {
  background-color: var(--green-dark);
  background-image: url("../assets/images/blog-fondo-verde.jpg");
  background-size: 100% 100%;
  background-repeat: no-repeat;
  padding: clamp(3.5rem, 9.8vw, 10rem) clamp(2rem, 21.6vw, 373px) 10rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.blog-art-title {
  font-family: var(--font);
  font-size: clamp(2rem, 4.6vw, 5.5rem);
  font-weight: 900;
  text-transform: uppercase;
  color: var(--cream);
  line-height: 1.08;
  max-width: clamp(20rem, 57vw, 988px);
}

.blog-art-meta {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-top: clamp(1.5rem, 2.5vw, 2.5rem);
}

.blog-art-date {
  font-family: var(--font);
  font-size: clamp(0.9rem, 1.2vw, 1.3rem);
  color: var(--cream);
  font-weight: 400;
}

.blog-share-wrap {
  position: relative;
}

.blog-art-share {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--cream);
  display: flex;
  align-items: center;
  padding: 0;
  transition: opacity 0.2s;
}
.blog-art-share:hover {
  opacity: 0.6;
}

.blog-share-menu {
  display: none;
  flex-direction: column;
  position: absolute;
  top: calc(100% + 0.75rem);
  left: 50%;
  transform: translateX(-50%);
  background: var(--cream);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  min-width: 160px;
  overflow: hidden;
  z-index: 10;
}
.blog-share-menu.open {
  display: flex;
}

.blog-share-option {
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--black);
  background: none;
  border: none;
  text-align: left;
  padding: 0.7rem 1rem;
  cursor: pointer;
  transition: background 0.15s;
}
.blog-share-option:hover {
  background: rgba(13, 13, 13, 0.06);
}

/* Cuerpo del artículo */
.section-blog-body {
  padding: clamp(3rem, 6vw, 7rem) clamp(2rem, 25.3vw, 437px);
}

.blog-art-autor {
  font-family: var(--font);
  font-size: clamp(0.9rem, 1.2vw, 1.3rem);
  font-style: italic;
  font-weight: 700;
  text-align: center;
  color: var(--green-dark);
  margin-bottom: clamp(1.5rem, 3vw, 3rem);
}

.blog-art-content {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
}

.blog-art-content p {
  font-family: var(--font);
  font-size: clamp(1rem, 1.3vw, 1.4rem);
  font-weight: 400;
  line-height: 1.75;
  color: var(--black);
  margin-bottom: 1.5rem;
}

/* Navegación inferior */
.blog-art-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: clamp(2rem, 4vw, 4rem);
  border-top: 1.5px solid rgba(13, 13, 13, 0.12);
  margin-top: clamp(2rem, 4vw, 4rem);
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

.blog-art-back,
.blog-art-next {
  font-family: var(--font);
  font-size: clamp(0.9rem, 1.1vw, 1.2rem);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--black);
  transition: opacity 0.2s;
}
.blog-art-back:hover,
.blog-art-next:hover {
  opacity: 0.5;
}

.blog-card-body p {
  font-family: var(--font);
  font-size: clamp(0.8rem, 1vw, 1rem);
  color: var(--black);
  opacity: 0.35;
  line-height: 1.4;
}

/* ===== LARGE SCREENS (1400px+) — freeze vw-based top positions ===== */
/* Beyond max-width:1400px the containers stop growing but vw keeps growing,
   causing title/text collisions. Lock positions to the values they had at 1400px. */
@media (min-width: 1700px) {
  /* Quiénes somos */
  .section-quienes .ns-inner {
    min-height: 22.5rem;
  }
  .section-quienes .ns-b1 {
    top: 0.44rem;
  }
  .section-quienes .ns-t2 {
    top: 8rem;
  }
  .section-quienes .ns-b2 {
    top: 13.2rem;
  }

  /* Nuestra historia */
  .section-historia-nosotrxs .ns-inner {
    min-height: 40rem;
  }
  .section-historia-nosotrxs .ns-b1,
  .section-historia-nosotrxs .ns-b2,
  .section-historia-nosotrxs .ns-b3 {
    top: 11rem;
  }
  .section-historia-nosotrxs .ns-t2 {
    top: 24.4rem;
  }
  .ns-pajaro {
    top: 35.5rem;
  }

  /* Nuestro sueño */
  .section-sueno .ns-inner {
    min-height: 33rem;
  }
  .section-sueno .ns-t1 {
    top: 1.4rem;
  }
  .section-sueno .ns-t2 {
    top: 8.6rem;
  }
  .section-sueno .ns-b2 {
    top: 15rem;
  }
  .section-sueno .ns-b3 {
    top: 21.5rem;
  }
}

/* ===== BLOG LIST — pantallas medianas (≤1400px) ===== */

/* ===== RESPONSIVE TABLET (768-1199px) ===== */
/* ===== SLIDER RECURSOS ===== */
.section-slider-recursos {
  width: 100%;
  padding: 0 20%;
  margin-bottom: 7rem;
}
.slider-recursos {
  width: 100%;
}
.slider-recursos .swiper-slide {
  aspect-ratio: 16 / 9;
}
.slider-recursos .swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  cursor: zoom-in;
}

/* ===== LIGHTBOX ===== */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.92);
  align-items: center;
  justify-content: center;
}
.lightbox.open {
  display: flex;
}
.lightbox-img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  display: block;
  border-radius: 2px;
}
.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: none;
  border: none;
  cursor: pointer;
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  padding: 0.5rem;
  opacity: 0.8;
  transition: opacity 0.2s;
}
.lightbox-close:hover {
  opacity: 1;
}
.slider-recursos .swiper-pagination-bullet {
  background: var(--cream);
  opacity: 0.6;
}
.slider-recursos .swiper-pagination-bullet-active {
  background: var(--cream);
  opacity: 1;
}

/* ===== ACCIONES max-width por breakpoint ===== */
@media (min-width: 1200px) {
  .hero-tagline-row {
    padding-top: 10vh;
    padding-bottom: 32vh;
  }
  .accion--brown .accion-text p {
    max-width: 26rem;
  }
  .accion--green .accion-text p {
    max-width: 35rem;
  }
  .accion--black .accion-text p {
    max-width: 29rem;
  }
  .accion--terracotta .accion-text p {
    max-width: 27rem;
  }
}

@media (max-width: 1200px) {
  .section-blog-list {
    padding: 5rem 2rem 5rem 10%;
  }
}

@media (max-width: 1199px) {
  .accion--brown .accion-text p {
    max-width: 20rem;
  }
  .accion--green .accion-text p {
    max-width: 29rem;
  }
  .accion--black .accion-text p {
    max-width: 20rem;
  }
  .accion--terracotta .accion-text p {
    max-width: 24rem;
  }
}

@media (max-width: 1199px) {
  .section-historia {
    padding: 6vw 5vw 6vw 36%;
  }
  .historia-deco-left {
    width: clamp(140px, 30vw, 380px);
  }
  .historia-texts {
    gap: clamp(1.5rem, 6vw, 80px);
  }

  .mision-photos {
    gap: 3rem;
  }
  .mision-inner {
    padding: 3rem 5%;
  }

  .impacto-stats {
    margin-left: 10%;
  }

  .quienes-inner {
    grid-template-columns: 1fr;
  }
  .historia-nosotrxs-cols {
    grid-template-columns: 1fr 1fr;
  }
  .sueno-text-block {
    grid-template-columns: 1fr;
  }

  .section-recursos-libro {
    padding-left: clamp(2rem, 10vw, 10rem);
  }
  .libro-inner {
    gap: 2.5rem;
  }
  .libro-info {
    width: clamp(180px, 28vw, 280px);
  }

  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ===== RESPONSIVE TABLET (768px – 1440px) ===== */
@media (min-width: 768px) and (max-width: 1350px) {
  .footer-bottom {
    bottom: 8%;
  }
}

@media (min-width: 768px) {
  .section-galeria-text {
    padding-top: 7.5rem;
    padding-bottom: 7.5rem;
  }
  .hero-tagline {
    padding-top: 7.5rem;
    padding-bottom: 7.5rem;
  }
  .section-quienes {
    padding-top: 7rem;
  }
}

/* ===== RESPONSIVE MOBILE (<768px) ===== */
@media (max-width: 767px) {
  /* Footer mobile */
  .footer-bg-img {
    width: 100%;
  }
  .footer-bottom {
    position: relative;
    bottom: auto;
    background: #000000;
    padding: 1.5rem 5% 2.5rem;
  }

  .nav-logo img {
    height: 36px;
  }
  .site-nav {
    padding: 1rem 1.25rem;
  }
  .nav-hamburger {
    top: 1rem;
    right: 1rem;
  }

  .hero-tagline-row {
    padding: 2.5rem 6% 2rem;
    gap: 5vw;
    align-items: center;
  }
  .hero-bird {
    width: clamp(32px, 7vw, 48px);
  }

  .section-historia {
    padding: 4rem 6% 4rem 6%;
  }
  .historia-content h2 {
    margin-bottom: 2rem;
  }
  .historia-texts {
    gap: 2rem;
  }
  .historia-deco-left {
    display: block;
    position: absolute;
    bottom: 0;
    left: 0;
    top: auto;
    width: 45vw;
    height: auto;
    transform: rotate(-90deg);
    transform-origin: bottom left;
    opacity: 0.3;
  }

  .mision-photos {
    flex-direction: column;
    align-items: center;
    gap: 2.5rem;
  }
  .mision-inner {
    padding: 2.5rem 6%;
  }
  .mision-photo-item img {
    width: clamp(160px, 55vw, 280px);
    height: clamp(160px, 55vw, 280px);
  }
  .mision-photo-item span {
    max-width: clamp(160px, 55vw, 280px);
    font-size: 1rem;
  }

  .section-impacto {
    background-color: var(--green-dark);
  }
  .impacto-bg-img {
    display: none;
  }
  .impacto-content {
    padding: 4rem 6%;
  }
  .impacto-bg {
    display: none;
  }
  .impacto-stats {
    margin-left: 0;
  }

  .section-cta {
    gap: 1.5rem;
    padding: 3rem 4%;
  }
  .cta-plant {
    width: clamp(48px, 12vw, 80px);
  }

  /* Nosotrxs scattered sections → linear mobile layout */
  .ns-section {
    padding: 3rem 0;
  }
  .ns-inner {
    display: flex;
    flex-direction: column;
    padding: 0 6%;
    min-height: 0 !important;
  }
  .ns-title,
  .ns-body {
    position: static;
    width: auto !important;
  }
  .ns-title {
    font-size: clamp(3rem, 16vw, 5.5rem);
    line-height: 1;
    margin-bottom: 0.25rem;
  }
  .ns-title:last-of-type {
    margin-bottom: 1.5rem;
  }
  .ns-body {
    font-size: clamp(0.9rem, 4vw, 1.1rem);
    margin-bottom: 1rem;
  }
  /* Mobile order: title1 → title2 → bodies */
  .section-quienes .ns-t1 {
    order: 1;
  }
  .section-quienes .ns-t2 {
    order: 2;
  }
  .section-quienes .ns-b1 {
    order: 3;
  }
  .section-quienes .ns-b2 {
    order: 4;
    text-align: left;
  }

  .section-historia-nosotrxs .ns-t1 {
    order: 1;
  }
  .section-historia-nosotrxs .ns-t2 {
    order: 2;
  }
  .section-historia-nosotrxs .ns-b1 {
    order: 3;
  }
  .section-historia-nosotrxs .ns-b2 {
    order: 4;
  }
  .section-historia-nosotrxs .ns-b3 {
    order: 5;
  }
  .ns-pajaro {
    position: static;
    order: 6;
    width: 60px;
    margin-top: 1rem;
  }

  .section-sueno .ns-t1 {
    order: 1;
  }
  .section-sueno .ns-t2 {
    order: 2;
  }
  .section-sueno .ns-b1 {
    order: 3;
  }
  .section-sueno .ns-b2 {
    order: 4;
    text-align: left;
  }
  .section-sueno .ns-b3 {
    order: 5;
  }

  .accion-item {
    flex-direction: column;
    padding: 2rem 5%;
    text-align: center;
    gap: 1rem;
  }
  .accion-item.reverse {
    flex-direction: column;
  }
  .accion-icon {
    margin: 0 auto;
  }
  .accion-border-img {
    display: none;
  }
  .accion--brown .accion-text p,
  .accion--green .accion-text p,
  .accion--black .accion-text p,
  .accion--terracotta .accion-text p {
    max-width: 80%;
  }
  .accion-text {
    text-align: center;
  }
  .accion-text h3 {
    font-size: clamp(1.8rem, 5.5vw, 3rem);
  }
  .accion-text p {
    font-size: clamp(1.08rem, 4vw, 1.5rem);
    margin: 0 auto;
  }

  .section-recursos-libro {
    padding: 3rem 5% 3.5rem;
  }
  .libro-inner {
    flex-direction: column;
    text-align: center;
    gap: 2rem;
  }
  .libro-cover {
    margin: 0 auto;
    width: clamp(160px, 50vw, 320px);
  }
  .libro-info {
    width: 100%;
  }
  .libro-info h2 {
    font-size: clamp(2.16rem, 8.4vw, 3.6rem);
  }
  .libro-info p {
    font-size: clamp(1.3rem, 5.4vw, 1.8rem);
    max-width: 80%;
    margin: 0 auto;
  }
  .btn-descargar {
    font-size: clamp(1.05rem, 4vw, 1.54rem);
    margin-top: 1rem;
  }
  .recursos-pajaro {
    position: absolute;
    bottom: -10%;
    right: 5%;
    margin: 0;
    width: clamp(56px, 20vw, 112px);
  }
  .recursos-wave-divider {
    height: 4rem;
  }
  .section-slider-recursos {
    padding: 0;
  }

  /* Blog mobile overrides */
  .blog-border-img {
    display: none;
  }
  .section-blog-list {
    padding: 3rem 5% 2rem 5%;
  }
  .blog-article-link {
    gap: 1.5rem;
    padding: 1.2rem 0;
  }
  .blog-article-title {
    font-size: clamp(1.4rem, 5.5vw, 2rem);
  }
  .blog-article-arrow {
    border-top-width: 8px;
    border-bottom-width: 8px;
    border-left-width: 14px;
    margin-top: 0.5rem;
  }
  .blog-pagination {
    margin-top: 2rem;
  }
  .blog-pag-prev,
  .blog-pag-next {
    font-size: clamp(0.85rem, 3.5vw, 1rem);
  }

  /* Blog artículo mobile */
  .section-blog-titulo {
    padding: 3rem 5% 3.5rem;
  }
  .blog-art-title {
    font-size: 1.5rem;
  }
  .section-blog-body {
    padding: 3rem 5%;
  }
  .blog-art-autor {
    font-size: clamp(1rem, 4vw, 1.4rem);
  }
  .blog-art-content p {
    font-size: clamp(1rem, 4vw, 1.3rem);
  }
  .blog-art-nav {
    padding: 2rem 5% 3rem;
  }
  .blog-art-back,
  .blog-art-next {
    font-size: clamp(0.85rem, 3.5vw, 1rem);
  }

  .hero-page-title {
    font-size: clamp(2.5rem, 12vw, 5rem);
    white-space: normal;
    text-align: center;
    width: 90%;
  }

  /* Valores + alianzas — mobile */
  .section-va {
    padding: 3rem 0 4rem;
  }
  .va-row,
  .va-row-b {
    flex-direction: column;
    align-items: flex-start;
    flex-wrap: nowrap;
    margin-bottom: 3rem;
  }
  /* Gráfico siempre primero */
  .va-row .va-graphic,
  .va-row-b .va-graphic {
    order: 1;
    width: 90%;
    margin: 0;
  }
  .va-row-b .va-graphic {
    margin-left: 10% !important;
  }
  /* Texto siempre después del gráfico */
  .va-row .va-text-block,
  .va-row-b .va-text-block {
    order: 2;
    width: 85vw;
    margin: 1.5rem 5vw 0;
  }
  .va-text-block h3 {
    font-size: clamp(1rem, 4.5vw, 1.4rem);
    white-space: normal;
  }
  .va-text-block p {
    font-size: clamp(0.85rem, 3.8vw, 1rem);
  }
  .va-logos {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 60px;
    gap: 1rem;
    margin-left: 5vw;
    width: 80vw;
    margin-top: 1rem;
  }

  .footer-insignia {
    width: 200px;
  }
}

/* hamburger is always fixed — no desktop override needed */
