@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Playfair+Display:wght@600;700&display=swap');

/* ==========================================================================
   1. VARIABLES GLOBALES Y RESET BASE
   ========================================================================== */
:root {
  --forest-deep: #16382A;
  --forest: #2F5D3A;
  --leaf: #4F7C4C;
  --sage: #78966B;
  --earth: #7A5238;
  --ochre: #B58A3A;
  --sand: #DCCCB0;
  --cream: #F4F0E6;
  --paper: #FBFAF6;
  --ink: #183026;
  --muted: #526159;
  --line: rgba(24, 48, 38, .14);
  --white: #FFFFFF;
  --max: 1180px;
  --deep: var(--forest-deep);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  margin: 0;
  overflow-x: clip;
  color: var(--ink);
  background: var(--paper);
  font-family: "DM Sans", sans-serif;
  line-height: 1.6;
}

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

.container {
  width: min(calc(100% - 40px), var(--max));
  margin: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.section {
  padding: 105px 0;
}

.cream {
  background: var(--cream);
}

.section-heading {
  max-width: 720px;
  margin-bottom: 52px;
}

.section-heading h2,
.two-col h2 {
  margin: 0 0 18px;
  font: 700 clamp(2.4rem, 5vw, 4.2rem)/1.05 "Playfair Display", serif;
  letter-spacing: -.035em;
}

.section-heading h2 span,
.two-col h2 span {
  color: var(--leaf);
}

.eyebrow {
  margin: 0 0 12px;
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  opacity: .78;
}

.texto-resaltado {
  color: #fff267;
  font-style: italic;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 800;
  cursor: pointer;
}

.primary {
  background: #fff;
  color: var(--deep);
}

.primary2 {
  border: 1px solid #16382A;
  color: var(--deep);
}

.secondary {
  border: 1px solid #ffffffaa;
  color: #fff;
}

/* ==========================================================================
   2. HEADER, NAVEGACIÓN Y DROPDOWN
   ========================================================================== */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  color: #fff;
  background: linear-gradient(#0b1c14aa, transparent);
  transition: .3s;
}

.site-header.scrolled {
  background: #0d211af2;
  backdrop-filter: blur(10px);
}

.nav {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: .05em;
  white-space: nowrap;
}

.brand-logo {
  height: 85px;
  width: auto;
  max-width: 90%;
  object-fit: contain;
  display: block;
}


.brand-logo-footer {
  height: 100px;
  width: auto;
  max-width: 45%;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}


.nav-links {
  display: flex;
  align-items: center;
  gap: 12px; /* Reducido de 20px a 15px para ganar espacio */
  font-size: 0.86rem; /* Ligeramente más compacto para albergar todos los ítems */
}

.nav-links a {
  opacity: .92;
}

.nav-action {
  border: 1px solid #ffffff88;
  border-radius: 999px;
  padding: 7px 13px;
}

.nav-donate {
  background: #fff;
  color: var(--deep);
  border-color: #fff;
}

/* Submenú Desplegable */
.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-trigger {
  cursor: pointer;
}

.dropdown-trigger .arrow {
  font-size: 1.1em;
  margin-left: 4px;
  transition: transform 0.3s ease;
}

.dropdown:hover .dropdown-trigger .arrow {
  transform: rotate(180deg);
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 160px;
  background: rgba(20, 20, 20, 0.75);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  padding: 8px 0;
  z-index: 1000;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.dropdown:hover .dropdown-menu {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.dropdown-menu a {
  display: block;
  padding: 10px 18px;
  color: #ffffff;
  text-decoration: none;
  font-size: 0.95rem;
  transition: background-color 0.2s ease, border-left 0.2s ease;
  border-left: 3px solid transparent;
}

.dropdown-menu a:hover {
  background-color: rgba(255, 255, 255, 0.12);
  border-left: 3px solid #76d577;
}

/* BOTÓN HAMBURGUESA Y MICRO-ANIMACIÓN */
.menu-toggle {
  display: none;
  width: 36px;
  height: 36px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 7px;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 0;
  position: relative;
}

.menu-toggle i {
  display: block;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transform-origin: center;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), 
              width 0.4s ease, 
              background-color 0.4s ease, 
              opacity 0.4s ease !important;
}

.menu-toggle i:nth-child(1),
.menu-toggle i:nth-child(3) {
  width: 16px;
}

.menu-toggle i:nth-child(2) {
  width: 22px;
}

.menu-toggle.arrow i {
  background: transparent !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 12'%3E%3Cpath fill='%2376d577' d='M0,6 C6,0 24,0 30,6 C24,12 6,12 0,6 Z'/%3E%3C/svg%3E") !important;
  background-size: 100% 100% !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
}

.menu-toggle.arrow i:nth-child(1) {
  width: 18px;
  height: 8px;
  animation: planeoOndulado1 5.0s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite -1.0s;
}

.menu-toggle.arrow i:nth-child(2) {
  width: 22px;
  height: 9px;
  animation: planeoOndulado2 5.2s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite -2.6s;
}

.menu-toggle.arrow i:nth-child(3) {
  width: 17px;
  height: 7.5px;
  animation: planeoOndulado3 5.4s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite -0.5s;
}

@keyframes planeoOndulado1 {
  0% { transform: translate3d(0px, -10px, 0) rotate(-10deg); opacity: 0; }
  20% { opacity: 1; }
  50% { transform: translate3d(-7px, 10px, 0) rotate(-22deg); }
  80% { opacity: 1; }
  100% { transform: translate3d(0px, 30px, 0) rotate(-10deg); opacity: 0; }
}

@keyframes planeoOndulado2 {
  0% { transform: translate3d(0px, -8px, 0) rotate(8deg); opacity: 0; }
  20% { opacity: 1; }
  50% { transform: translate3d(7px, 12px, 0) rotate(20deg); }
  80% { opacity: 1; }
  100% { transform: translate3d(0px, 32px, 0) rotate(8deg); opacity: 0; }
}

@keyframes planeoOndulado3 {
  0% { transform: translate3d(0px, -12px, 0) rotate(-12deg); opacity: 0; }
  20% { opacity: 1; }
  50% { transform: translate3d(-6px, 8px, 0) rotate(-24deg); }
  80% { opacity: 1; }
  100% { transform: translate3d(0px, 28px, 0) rotate(-12deg); opacity: 0; }
}

/* ==========================================================================
   3. SECCIONES PRINCIPALES Y GRILLAS (PC FIRST)
   ========================================================================== */
.hero {
  min-height: 100svh;
  position: relative;
  display: grid;
  place-items: center;
  text-align: center;
  color: #fff;
  overflow: hidden;
  background: linear-gradient(120deg, #16342511, #16342505),
              url("../assets/hero-desktop.jpg") center/cover no-repeat, var(--forest);
}

.hero:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, #05120cb0, #05120c10 5%);
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  padding-top: 80px;
}

.hero h1 {
  margin: 0;
  font: 700 clamp(4rem, 10vw, 8.5rem)/.85 "Playfair Display", serif;
  letter-spacing: -.045em;
}

.hero-text {
  max-width: 600px;
  margin: 28px auto;
  font-size: clamp(0.7rem, 2.3vw, 1.3rem);
  color: #76d577;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* Grilla de Proyectos */
.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.project-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  overflow: hidden;
  transition: .25s;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 45px #0d211a1f;
}

.project-image {
  height: 280px;
  position: relative;
}

.project-image b {
  position: absolute;
  top: 18px;
  left: 18px;
  padding: 5px 10px;
  background: #fffdf0dd;
  border-radius: 999px;
}

.p1 { background: linear-gradient(135deg, rgba(79, 124, 76, 0.1), rgba(22, 56, 42, 0.1)), url('../assets/la-milla.jpg') center/cover no-repeat; }
.p2 { background: linear-gradient(135deg, rgba(120, 150, 107, 0.1), rgba(47, 93, 58, 0.1)), url('../assets/jardin-desktop.jpg') center/cover no-repeat; }
.p3 { background: linear-gradient(135deg, rgba(181, 138, 58, 0.1), rgba(122, 82, 56, 0.1)), url('../assets/biohuerto.jpg') center/cover no-repeat; }

.project-body { padding: 25px; }
.project-body small, .schedule small { color: var(--leaf); font-weight: 800; letter-spacing: .12em; }
.project-body h3, .schedule h3 { margin: 3px 0 9px; font: 700 1.8rem "Playfair Display", serif; }
.project-body p { color: #526159; }
.project-body a { font-weight: 800; color: #315637; }

/* Layouts de Dos Columnas e Impacto */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: center;
}

.two-col p { font-size: 1.05rem; }

.impact {
  padding: 100px 0;
  background: var(--deep);
  color: #fff;
}

.impact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-block: 1px solid #ffffff2e;
}

.impact-grid > div {
  padding: 28px 20px;
  border-right: 1px solid #ffffff2e;
}

.impact-grid > div:last-child { border: 0; }
.impact-grid strong { display: block; font: 700 3.2rem "Playfair Display", serif; }

/* Grilla de Aportes */
.contribute-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.contribute-grid article {
  padding: 28px 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
}

.contribute-grid h3 { margin: 12px 0 6px; font: 700 1.35rem "Playfair Display", serif; }
.contribute-grid p { margin: 0; color: #526159; font-size: .92rem; }

/* Galería Placeholder */
.gallery-placeholder {
  min-height: 360px;
  border: 2px dashed var(--line);
  border-radius: 24px;
  display: grid;
  place-content: center;
  text-align: center;
  font-size: 3rem;
  color: #66746d;
}

.gallery-placeholder span { font-size: 1rem; }

/* ==========================================================================
   4. MODALES, FORMULARIOS Y REDES SOCIALES
   ========================================================================== */
.donate-action-wrapper {
  text-align: center;
  margin-top: 40px;
}

.donate-btn-trigger {
  background: var(--forest);
  color: var(--white);
  padding: 14px 36px;
  font-size: 1.05rem;
  letter-spacing: 0.03em;
  box-shadow: 0 8px 20px rgba(22, 56, 42, 0.2);
  transition: transform 0.2s, background-color 0.2s;
  border: none;
  cursor: pointer;
}

.donate-btn-trigger:hover {
  background: var(--forest-deep);
  transform: translateY(-2px);
}

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(13, 33, 26, 0.75);
  backdrop-filter: blur(5px);
  display: grid;
  place-items: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  position: relative;
  background: var(--white);
  border-radius: 24px;
  padding: 40px;
  width: min(100%, 780px);
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.modal-overlay.active .modal-content { transform: translateY(0); }

.modal-close {
  position: absolute;
  top: 20px;
  right: 24px;
  background: none;
  border: none;
  font-size: 2.2rem;
  line-height: 1;
  color: var(--muted);
  cursor: pointer;
  transition: color 0.2s;
}

.modal-close:hover { color: var(--ink); }

.form-header { margin-bottom: 25px; text-align: center; padding-right: 20px; }
.form-header h3 { font: 700 1.8rem "Playfair Display", serif; color: var(--ink); margin: 0 0 8px; }
.form-header p { color: var(--muted); margin: 0; font-size: 0.95rem; }

.legado-form .form-grid { display: flex; flex-direction: column; gap: 18px; }
.legado-form .form-group { display: flex; flex-direction: column; gap: 6px; }
.legado-form label { font-weight: 700; font-size: 0.9rem; color: var(--ink); }

.legado-form input[type="text"],
.legado-form input[type="email"],
.legado-form input[type="tel"],
.legado-form textarea,
.legado-form select {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid var(--line);
  border-radius: 12px;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--ink);
  background: var(--paper);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.legado-form input:focus,
.legado-form textarea:focus,
.legado-form select:focus {
  outline: none;
  border-color: var(--leaf);
  box-shadow: 0 0 0 3px rgba(79, 124, 76, 0.15);
  background: var(--white);
}

.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.checkbox-options { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.checkbox-card {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s;
}

.checkbox-card:hover { background: var(--cream); border-color: var(--sage); }
.checkbox-card input[type="checkbox"] { margin-top: 3px; width: 17px; height: 17px; accent-color: var(--forest); }
.checkbox-card span { font-weight: 400; font-size: 0.88rem; color: var(--ink); line-height: 1.3; }

.btn-submit-form {
  background: var(--forest);
  color: var(--white);
  border: none;
  cursor: pointer;
  font-size: 1rem;
  padding: 14px 28px;
  margin-top: 10px;
  transition: background-color 0.2s;
}

.btn-submit-form:hover { background: var(--forest-deep); }

/* Sección Contacto y Redes */
.section-contacto {
  background-color: var(--forest);
  color: var(--white);
  padding: 80px 20px;
  position: relative;
  overflow: hidden;
}

.section-contacto .container { position: relative; z-index: 2; }
.eyebrow-light { color: var(--ochre); font-size: 0.85rem; font-weight: 700; text-transform: uppercase; letter-spacing: 2px; margin-bottom: 8px; }
.title-light { color: #ffffff; font-family: 'Playfair Display', serif; font-size: 2.2rem; margin-bottom: 15px; }
.title-light span { color: var(--ochre); }
.lead-light { color: rgba(255, 255, 255, 0.8); max-width: 600px; margin: 0 auto 40px auto; font-size: 1.05rem; line-height: 1.6; }

.social-grid { display: flex; justify-content: center; align-items: center; gap: 40px; flex-wrap: wrap; }
.social-card { display: flex; flex-direction: column; align-items: center; text-decoration: none; transition: transform 0.3s ease; }
.social-icon { width: 56px; height: 56px; fill: var(--ochre); opacity: 0.75; transition: opacity 0.3s ease, transform 0.3s ease; margin-bottom: 12px; }
.social-name { color: #ffffff; font-weight: 600; font-size: 1rem; margin-bottom: 2px; }
.social-platform { color: rgba(255, 255, 255, 0.6); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 1px; }

.social-card:hover { transform: translateY(-5px); }
.social-card:hover .social-icon { opacity: 1; transform: scale(1.1); }
.social-card:hover .social-name { color: var(--ochre); }

.gecko-bg {
  position: absolute;
  top: 50%;
  right: 25px;
  transform: translateY(-50%) rotate(-15deg);
  width: 240px;
  height: auto;
  opacity: 0.12;
  pointer-events: none;
  z-index: 0;
  transition: all 0.3s ease;
}

.whatsapp {
  position: fixed;
  z-index: 30;
  right: 22px;
  bottom: 22px;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  box-shadow: 0 10px 28px #0003;
  font-size: 1.8rem;
}

.whatsapp svg { width: 30px; height: 30px; fill: white; }

/* ==========================================================================
   5. FOOTER INSTITUCIONAL
   ========================================================================== */
.footer { background-color: #0b1a10; color: #ffffff; padding-top: 40px; }
.footer-container { max-width: 1200px; margin: 0 auto; padding: 0 20px 40px 20px; display: grid; grid-template-columns: 2fr 1fr 1.5fr; gap: 40px; }
.footer-col h3, .footer-col h4 { margin-bottom: 15px; color: #ffffff; }
.footer-col ul { list-style: none; padding: 0; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a { color: #d0d0d0; text-decoration: none; transition: color 0.2s; }
.footer-col ul li a:hover { color: #6bb074; }

.footer-buttons { display: flex; gap: 10px; margin-top: 15px; flex-wrap: wrap; }
.footer-buttons button, .newsletter-form button { cursor: pointer; }

.footer-buttons .btn-primary {
  background-color: #8b7336;
  color: #ffffff;
  border: 1px solid #8b7336;
  padding: 8px 16px;
  border-radius: 20px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.footer-buttons .btn-primary:hover { background-color: #a48943; border-color: #a48943; }

.footer-buttons .btn-secondary {
  background-color: transparent;
  color: #ffffff;
  border: 1px solid #ffffff;
  padding: 8px 16px;
  border-radius: 20px;
  font-weight: 500;
  transition: all 0.3s ease;
}



.footer-text {
  max-width: 600px;
  margin: 28px auto;
  font-size: clamp(0.8rem, 2.3vw, 1.1rem);
  color: #76d577;
  text-align: center;
}



.footer-buttons .btn-secondary:hover { background-color: #2e6f40; border-color: #2e6f40; color: #ffffff; }

.newsletter-form { display: flex; gap: 8px; margin-top: 10px; }
.newsletter-form input { padding: 8px 12px; border-radius: 4px; border: 1px solid #ccc; outline: none; flex: 1; }
.newsletter-form button { background-color: #2b4c30; color: #fff; border: none; padding: 8px 16px; border-radius: 4px; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.1); text-align: center; padding: 20px; font-size: 0.85rem; color: #a0a0a0; }

/* ==========================================================================
   6. ESTILOS DE SUBPÁGINAS (QUIÉNES SOMOS, EQUIPO, POLÍTICAS, ALIANZAS, PRENSA)
   ========================================================================== */

/* Alianzas */
.partners-group { margin-bottom: 45px; }
.partners-group:last-child { margin-bottom: 0; }


	.partners-subtitle { 
	  font-family: "Playfair Display", serif; 
	  font-size: 1.4rem; 
	  color: var(--forest-deep); 
	  text-align: center; 
	  margin-bottom: 24px; 
	}

.partners-grid { display: grid; gap: 20px; align-items: center; }
.partners-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 700px; margin: 0 auto; }
.partners-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 950px; margin: 0 auto; }

.partner-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 25px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 140px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  color: inherit;
}

.partner-card:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(13, 33, 26, 0.08); }
.partner-logo { max-width: 140px; max-height: 65px; width: auto; height: auto; object-fit: contain; filter: grayscale(30%); opacity: 0.9; transition: filter 0.3s ease, opacity 0.3s ease; margin-bottom: 10px; }
.partner-card:hover .partner-logo { filter: grayscale(0%); opacity: 1; }
.partner-card span { font-size: 0.85rem; font-weight: 700; color: var(--muted); }

/* Quiénes Somos */
.lead-text { font-size: 1.15rem; font-weight: 600; color: var(--forest-deep); line-height: 1.5; margin-bottom: 15px; }
.about-pillars { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 15px; margin-top: 25px; }
.pillar-item { background: var(--cream); padding: 15px; border-radius: 12px; border-left: 3px solid var(--forest); }
.pillar-item strong { display: block; color: var(--forest-deep); font-size: 0.95rem; }
.pillar-item span { font-size: 0.82rem; color: var(--muted); line-height: 1.3; display: block; margin-top: 3px; }
.about-image-wrapper { width: 100%; max-width: 550px; margin: 0 auto; }
.about-image-wrapper img, .rounded-image { width: 100%; max-width: 100%; height: auto; display: block; object-fit: cover; }
.rounded-image { border-radius: 20px; }
.shadow { box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12); }

/* Equipo */
.team-leader-card { background: var(--white); border-radius: 24px; padding: 40px; box-shadow: 0 15px 45px rgba(22, 56, 42, 0.07); display: grid; grid-template-columns: 280px 1fr; gap: 35px; align-items: center; margin-bottom: 50px; }
.team-leader-img-wrap { width: 100%; aspect-ratio: 1 / 1; border-radius: 20px; overflow: hidden; box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1); }
.team-leader-img-wrap img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; display: block; }
.team-leader-info h3 { font: 700 2rem "Playfair Display", serif; color: var(--forest-deep); margin: 0 0 6px 0; }
.team-role-tag { display: inline-block; font-size: 0.8rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ochre); margin-bottom: 16px; }
.team-leader-info p { color: var(--muted); font-size: 1rem; line-height: 1.6; margin-bottom: 20px; }
.team-skills { display: flex; flex-wrap: wrap; gap: 8px; }
.skill-chip { background: var(--cream); color: var(--forest); font-size: 0.82rem; font-weight: 700; padding: 6px 14px; border-radius: 999px; }
/* ==========================================================================
   ESTILOS DE EQUIPO (PC y Móvil adaptados correctamente)
   ========================================================================== */

.team-grid-2 { 
  display: grid; 
  grid-template-columns: repeat(2, minmax(0, 1fr)); 
  gap: 30px; 
}

.team-member-card { 
  background: var(--white); 
  border-radius: 20px; 
  padding: 30px; 
  box-shadow: 0 10px 30px rgba(13, 33, 26, 0.05); 	
  display: flex; 
  gap: 22px; 
  align-items: center; 
  transition: transform 0.3s ease, box-shadow 0.3s ease; 
}

.team-member-card:hover { 
  transform: translateY(-4px); 
  box-shadow: 0 18px 40px rgba(13, 33, 26, 0.09); 
}

.team-member-avatar { 
  width: 180px; 
  height: 180px; 
  border-radius: 50%; 
  overflow: hidden; 
  flex-shrink: 0; 
  background: var(--cream); 
  box-shadow: 0 4px 12px rgba(0,0,0,0.06); 
}

.team-member-avatar img { 
  width: 100%; 
  height: 100%; 
  object-fit: cover; 
}

.team-member-body { 
  flex: 1; 
}

.team-member-body .team-role-tag { 
  margin-bottom: 4px; 
  font-size: 0.73rem; 
}

.team-member-body h4 { 
  font: 700 1.25rem "Playfair Display", serif; 
  color: var(--forest-deep); 
  margin: 0 0 6px; 
}

.team-member-body p { 
  margin: 0; 
  color: var(--muted); 
  font-size: 0.88rem; 
  line-height: 1.45; 
}




/* Galería Integrada */
.bio-gallery { display: grid; grid-template-columns: 2fr 1fr; gap: 20px; margin-top: 30px; }
.bio-gallery-side { display: flex; flex-direction: column; gap: 20px; }

.bio-gallery-box {
  position: relative;
  margin: 0 !important;
  padding: 0 !important;
  border-radius: 20px !important;
  overflow: hidden !important;
  background: transparent !important;
  border: 1px solid var(--line) !important;
  box-shadow: 0 10px 30px rgba(13, 33, 26, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  min-height: auto !important;
  display: block !important;
}

.bio-gallery-box:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(13, 33, 26, 0.16); }
.bio-gallery-box img { width: 100%; height: 100%; min-height: 220px; object-fit: cover; display: block; transition: transform 0.5s ease; }
.bio-gallery-box.tall img { min-height: 480px; }
.bio-gallery-box:hover img { transform: scale(1.04); }

.bio-gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  margin: 0;
  padding: 35px 20px 16px;
  background: linear-gradient(180deg, transparent 0%, rgba(13, 33, 26, 0.88) 100%);
  color: #ffffff;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  pointer-events: none;
  text-align: left;
}



/* Estilos para separar las secciones del equipo */
.team-section-title {
  font: 700 1.8rem "Playfair Display", serif;
  color: var(--forest-deep);
  margin: 60px 0 25px 0;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--line);
  grid-column: 1 / -1;
}

.team-section-title:first-of-type {
  margin-top: 0;
}



/* Bloque contenedor especial para los Miembros Activos con fondo diferenciado */
.active-members-wrapper {
  background: #E8ECE9; /* Un tono gris verdoso institucional muy elegante */
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 40px 30px;
  margin-top: 50px;
  grid-column: 1 / -1; /* Ocupa todo el ancho de la grilla */
}

.active-members-wrapper .team-section-title {
  margin-top: 0;
}

.active-members-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 30px;
  margin-top: 25px;
}


@media (max-width: 768px) {
  /* La grilla general de equipo pasa a 1 columna */
  .team-grid-2 {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  /* La grilla interna de miembros activos también pasa a 1 columna */
  .active-members-grid {
    grid-template-columns: 1fr !important;
    gap: 20px;
  }

  .active-members-wrapper {
    padding: 25px 15px;
  }

  /* Diseño adaptado de tarjeta en móvil para que el avatar y texto respiren bien */
  .team-member-card {
    flex-direction: column;
    text-align: center;
    padding: 24px 20px;
    gap: 16px;
  }

  .team-member-avatar {
    width: 150px;
    height: 150px;
    margin: 0 auto;
  }
}



/* ==========================================================================
   7. MEDIA QUERIES (BREAKPOINTS RESPONSIVOS BALANCEADOS)
   ========================================================================== */



/* Breakpoint ajustado a 1120px para albergar el nuevo tamaño del logo sin desbordes */
@media (max-width: 1120px) {
  .menu-toggle {
    display: flex;
  }

  .nav-links {
    position: absolute;
    top: 70px;
    left: 14px;
    right: 14px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 20px;
    background: #0d211af8;
    border-radius: 18px;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-action {
    text-align: center;
  }

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

  .two-col {
    grid-template-columns: 1fr;
    gap: 35px;
  }

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

  .impact-grid > div:nth-child(2) {
    border-right: 0;
  }

  .impact-grid > div:nth-child(-n+2) {
    border-bottom: 1px solid #ffffff2e;
  }

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

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






/* Breakpoint 1: Laptops y Tablets Horizontales (<= 950px) */
@media (max-width: 950px) {
  .menu-toggle {
    display: flex;
  }

  .nav-links {
    position: absolute;
    top: 70px;
    left: 14px;
    right: 14px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 20px;
    background: #0d211af8;
    border-radius: 18px;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-action {
    text-align: center;
  }

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

  .two-col {
    grid-template-columns: 1fr;
    gap: 35px;
  }

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

  .impact-grid > div:nth-child(2) {
    border-right: 0;
  }

  .impact-grid > div:nth-child(-n+2) {
    border-bottom: 1px solid #ffffff2e;
  }

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

  .insta-grid {
    grid-template-columns: repeat(2, 1fr);
  }
} /* Fin de @media (max-width: 950px) */

/* Breakpoint 2: Tablets y Móviles Grandes (<= 768px) */
@media (max-width: 768px) {
  .modal-content {
    padding: 30px 20px;
  }

  .form-row-2,
  .checkbox-options {
    grid-template-columns: 1fr;
  }

  .gecko-bg {
    top: 68%;
    left: 50%;
    right: auto;
    transform: translate(-50%, -50%) rotate(0deg);
    width: 190px;
    opacity: 0.08;
  }

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

  .footer-container {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 30px 20px;
  }





.brand-logo-footer {
  height: 100px;
  width: auto;
  max-width: 65%;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}





  .footer-buttons,
  .newsletter-form {
    flex-direction: column;
    width: 100%;
  }

  .btn-primary,
  .btn-secondary,
  .newsletter-form input,
  .newsletter-form button {
    width: 100%;
    box-sizing: border-box;
  }

  .team-leader-card {
    grid-template-columns: 1fr;
    padding: 28px;
    gap: 24px;
  }

  .team-leader-img-wrap {
    max-width: 220px;
    margin: 0 auto;
  }

  .team-grid-2 {
    grid-template-columns: 1fr;
  }
} /* Fin de @media (max-width: 768px) */





/* Breakpoint 3: Móviles Pequeños (<= 600px) */
@media (max-width: 600px) {
  .container {
    width: min(calc(100% - 28px), var(--max));
  }

  .brand-logo {
    height: 80px;
  }

  .hero {
    background-image: linear-gradient(180deg, #091c1211, #091c1205),
                      url("../assets/hero-mobile.jpg"),
                      linear-gradient(135deg, var(--leaf), var(--forest-deep));
    background-position: center;
  }

  .hero h1 {
    font-size: clamp(3.8rem, 19vw, 5.8rem);
  }

  .hero-actions {
    display: grid;
  }

  .button {
    width: 100%;
  }

  .section {
    padding: 78px 0;
  }

  .project-image {
    height: 250px;
  }

  .impact {
    padding: 78px 0;
  }

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

  .whatsapp {
    right: 16px;
    bottom: 16px;
  }

  .insta-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 15px;
    padding-bottom: 15px;
  }

  .insta-card {
    min-width: min(82%, 390px);
    scroll-snap-align: start;
  }

  .bio-gallery {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .bio-gallery-side {
    gap: 16px;
  }

  .bio-gallery-box img,
  .bio-gallery-box.tall img {
    min-height: 260px;
    height: 260px;
  }
} /* Fin de @media (max-width: 600px) */



/* ==========================================================================
   AJUSTES ESPECÍFICOS PARA ALIANZAS.HTML Y PÁGINAS INTERNAS
   ========================================================================== */

.text-center {
  text-align: center;
}

.section-heading.text-center {
  margin-left: auto;
  margin-right: auto;
}

/* Cabecera / Hero para Páginas Secundarias */
.page-hero {
  padding: 140px 0 60px;
  background: var(--forest-deep);
  color: var(--white);
  text-align: center;
}

.page-hero h1 {
  font: 700 clamp(2.5rem, 6vw, 4rem)/1.1 "Playfair Display", serif;
  margin: 10px 0 15px;
  color: var(--white);
}

.page-hero h1 span {
  color: var(--ochre);
}

.page-hero-text {
  max-width: 680px;
  margin: 0 auto;
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.05rem;
  line-height: 1.6;
}

/* Detalle de Tarjetas de Alianzas */
.alliance-category {
  margin-bottom: 50px;
}

.alliance-category:last-child {
  margin-bottom: 0;
}

.alliance-category-title {
  font: 700 1.8rem "Playfair Display", serif;
  color: var(--forest-deep);
  margin-bottom: 25px;
  border-bottom: 2px solid var(--line);
  padding-bottom: 10px;
}

.alliance-detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 25px;
}

.alliance-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.alliance-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 35px rgba(13, 33, 26, 0.08);
}

.alliance-card-logo {
  height: 70px;
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

.alliance-card-logo img {
  max-height: 100%;
  max-width: 160px;
  object-fit: contain;
}

.alliance-card-content h3 {
  font: 700 1.35rem "Playfair Display", serif;
  color: var(--ink);
  margin: 0 0 6px;
}

.alliance-type {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--leaf);
  margin-bottom: 12px;
}

.alliance-card-content p {
  color: var(--muted);
  font-size: 0.93rem;
  line-height: 1.5;
  margin: 0 0 20px;
}

.alliance-link {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--forest);
  margin-top: auto;
}

.partner-form-wrapper {
  background: var(--white);
  padding: 40px;
  border-radius: 24px;
  border: 1px solid var(--line);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
}

@media (max-width: 768px) {
  .page-hero {
    padding: 120px 0 45px;
  }
  .alliance-detail-grid {
    grid-template-columns: 1fr;
  }
  .partner-form-wrapper {
    padding: 25px 20px;
  }
}





/* ==========================================================================
   ESTILOS COMPLEMENTARIOS PARA QUIÉNES SOMOS Y ESTRUCTURAS GENERALES
   ========================================================================== */

/* Grilla genérica de 2 columnas */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.grid-2.align-center {
  align-items: center;
}

/* Adaptación responsive para grillas de 2 columnas */
@media (max-width: 850px) {
  .grid-2 {
    grid-template-columns: 1fr;
    gap: 25px;
  }
}






/* ==========================================================================
   ESTILOS COMPLEMENTARIOS DEFINITIVOS DE QUIÉNES SOMOS Y PÁGINAS INTERNAS
   ========================================================================== */

/* Auxiliares de texto */
.text-white {
  color: var(--white) !important;
}

.eyebrow.light,
.page-hero-text.light {
  color: #76d577 !important;
}

/* Hero con imagen de fondo */
.page-hero-bg {
  padding: 160px 0 80px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: var(--white);
  text-align: center;
}

.page-hero-bg h1 {
  font: 700 clamp(2.5rem, 6vw, 4.2rem)/1.1 "Playfair Display", serif;
  margin: 15px 0 20px;
}

.page-hero-bg h1 span {
  color: var(--ochre);
}

/* Grilla general de 2 columnas */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
}

.grid-2.align-center {
  align-items: center;
}

/* Bloque de cita destacada */
.quote-box-wrapper {
  background: var(--cream);
  border-left: 4px solid var(--forest);
  padding: 30px;
  border-radius: 16px;
}

.highlight-quote {
  margin: 0;
  font: 600 1.3rem/1.5 "Playfair Display", serif;
  color: var(--forest-deep);
  font-style: italic;
}

/* Tarjetas de Misión y Visión */
.card-info {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 35px;
  box-shadow: 0 10px 30px rgba(13, 33, 26, 0.04);
}

.card-icon {
  font-size: 2.5rem;
  margin-bottom: 15px;
}

.card-info h3 {
  font: 700 1.8rem "Playfair Display", serif;
  color: var(--forest-deep);
  margin: 0 0 15px;
}

.card-info p {
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.6;
}

/* Filosofía de trabajo y pasos */
.philosophy-block {
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid var(--line);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.step-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 25px 20px;
}

.step-num {
  display: inline-block;
  font-weight: 800;
  font-size: 0.85rem;
  color: var(--ochre);
  background: var(--cream);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 12px;
}

.step-card h4 {
  font: 700 1.15rem "Playfair Display", serif;
  color: var(--ink);
  margin: 0 0 8px;
}

.step-card p {
  font-size: 0.88rem;
  color: var(--muted);
  margin: 0;
}

/* Pilares Grandes */
.pillars-grid-large {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
  margin-top: 40px;
}

.pillar-card-detail {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 35px 25px;
  text-align: center;
  transition: transform 0.25s ease;
}

.pillar-card-detail:hover {
  transform: translateY(-5px);
}

.pillar-card-detail h3 {
  font: 700 1.5rem "Playfair Display", serif;
  color: var(--forest);
  margin: 0 0 12px;
  letter-spacing: 0.05em;
}

.pillar-card-detail p {
  color: var(--muted);
  font-size: 0.93rem;
  margin: 0;
}

/* Liderazgo Institucional */
.leader-card-wrapper {
  max-width: 750px;
  margin: 0 auto;
}

.leader-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 40px;
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 30px;
  align-items: center;
  box-shadow: 0 12px 35px rgba(13, 33, 26, 0.06);
}

.leader-avatar-wrapper {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  overflow: hidden;
}

.leader-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.leader-info h3 {
  font: 700 1.8rem "Playfair Display", serif;
  color: var(--forest-deep);
  margin: 0 0 4px;
}

.leader-role {
  display: block;
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--ochre);
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}

.leader-info p {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.55;
  margin: 0;
}

/* Responsive para Quiénes Somos */
@media (max-width: 950px) {
  .steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .pillars-grid-large {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .page-hero-bg {
    padding: 130px 0 60px;
  }
  .grid-2 {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .steps-grid {
    grid-template-columns: 1fr;
  }
  .leader-card {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 30px 20px;
  }
  .leader-avatar-wrapper {
    margin: 0 auto;
    width: 140px;
    height: 140px;
  }
}





/* ==========================================================================
   ESTILOS COMPLEMENTARIOS DEFINITIVOS PARA PRENSA Y MEDIOS
   ========================================================================== */

.prensa-hero {
  background: var(--forest-deep);
}

.press-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

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

.press-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.press-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(13, 33, 26, 0.08);
}

.press-video-wrap {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* Relación de aspecto 16:9 */
  background: #000;
  display: block;
  overflow: hidden;
}

.press-video-wrap iframe,
.press-video-wrap img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 0;
}

.press-media {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.press-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.press-media-label {
  position: absolute;
  bottom: 12px;
  left: 12px;
  background: rgba(13, 33, 26, 0.85);
  color: var(--white);
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
}

.press-card-body {
  padding: 25px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.press-source {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--leaf);
  margin-bottom: 8px;
  display: block;
}

.press-card-body h3 {
  font: 700 1.25rem/1.3 "Playfair Display", serif;
  color: var(--ink);
  margin: 0 0 10px;
}

.press-card-body p {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
  margin: 0 0 20px;
}

.press-link {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--forest);
  margin-top: auto;
}

/* Tarjetas para Podcasts y Audio */
.press-audio-media {
  background: linear-gradient(135deg, var(--forest-deep), var(--forest));
  color: var(--white);
  padding: 30px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.press-audio-media-alt {
  background: linear-gradient(135deg, var(--earth), var(--ochre));
}

.audio-mark {
  font-size: 1.2rem;
  letter-spacing: 2px;
  opacity: 0.8;
}

/* Cierre de sección */
.press-closing-box {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 50px 30px;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.press-closing-box h2 {
  font: 700 2.2rem "Playfair Display", serif;
  margin: 10px 0 15px;
}

.press-closing-box h2 span {
  color: var(--leaf);
}

.press-closing-box p {
  color: var(--muted);
  max-width: 600px;
  margin: 0 auto 25px;
}

/* Adaptación responsive para prensa */
@media (max-width: 950px) {
  .press-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 650px) {
  .press-grid,
  .press-grid-2 {
    grid-template-columns: 1fr;
  }
}




/* ==========================================================================
   ESTILOS COMPLEMENTARIOS DEFINITIVOS PARA POLÍTICAS INSTITUCIONALES
   ========================================================================== */

.policies-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  margin-bottom: 50px;
}

.policy-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 35px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 30px rgba(13, 33, 26, 0.04);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.policy-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 35px rgba(13, 33, 26, 0.08);
}

.policy-icon-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 18px;
}

.policy-icon-badge {
  font-size: 1.8rem;
  background: var(--cream);
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  flex-shrink: 0;
}

.policy-icon-header h3 {
  font: 700 1.35rem/1.2 "Playfair Display", serif;
  color: var(--forest-deep);
  margin: 0;
}

.policy-card p {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.55;
  margin: 0 0 18px;
}

.policy-list {
  margin: 0 0 25px 0;
  padding-left: 20px;
  color: var(--ink);
  font-size: 0.9rem;
}

.policy-list li {
  margin-bottom: 8px;
  line-height: 1.45;
}

.policy-tag {
  align-self: flex-start;
  margin-top: auto;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--leaf);
  background: var(--paper);
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
}

/* Banner de Código de Ética */
.policy-banner {
  background: var(--forest-deep);
  color: var(--white);
  border-radius: 24px;
  padding: 40px;
  display: grid;
  grid-template-columns: 1fr 240px;
  gap: 30px;
  align-items: center;
}

.policy-banner h3 {
  font: 700 1.8rem "Playfair Display", serif;
  margin: 0 0 12px;
  color: var(--white);
}

.policy-banner p {
  color: rgba(255, 255, 255, 0.85);
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.6;
}

.policy-download-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.06);
  padding: 20px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.policy-download-box span {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--ochre);
}

.policy-download-box .button {
  width: 100%;
}

/* Responsividad para Políticas */
@media (max-width: 850px) {
  .policies-grid {
    grid-template-columns: 1fr;
  }
  
  .policy-banner {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 30px 20px;
  }

  .policy-download-box {
    width: 100%;
  }
}








/* ==========================================================================
   HERO RESPONSIVO CON PICTURE (SOPORTE PARA IMAGEN MÓVIL Y DESKTOP)
   ========================================================================== */

.page-hero-picture {
  position: relative;
  padding: 160px 0 80px;
  overflow: hidden;
  color: var(--white);
  text-align: center;
  display: flex;
  align-items: center;
  min-height: 380px;
}

.page-hero-picture .hero-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
}

.page-hero-picture .hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(13, 33, 26, 0.75);
  z-index: 1;
}

.hero-picture-content {
  position: relative;
  z-index: 2;
}

.page-hero-picture h1 {
  font: 700 clamp(2.5rem, 6vw, 4.2rem)/1.1 "Playfair Display", serif;
  margin: 15px 0 20px;
}

.page-hero-picture h1 span {
  color: var(--ochre);
}

@media (max-width: 768px) {
  .page-hero-picture {
    padding: 130px 0 60px;
    min-height: 320px;
  }
}





/* ==========================================================================
   GALERÍA GRID DINÁMICA & CARRUSEL RESPONSIVO
   ========================================================================== */
.interactive-gallery-wrapper {
  width: 100%;
  margin-top: 20px;
}

/* Layout en PC / Pantallas grandes: CSS Grid 3x3 */
.gallery-grid-layout {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 200px);
  gap: 16px;
  width: 100%;
}

.gallery-item {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--cream);
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.04);
}

.gallery-caption {
  position: absolute;
  bottom: 0;
  inset-inline: 0;
  padding: 25px 15px 12px;
  background: linear-gradient(180deg, transparent 0%, rgba(13, 33, 26, 0.85) 100%);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

/* Asignación de posiciones exactas según el bosquejo */
.item-main {
  grid-column: 1 / 3;
  grid-row: 1 / 3;
}

.item-side-1 {
  grid-column: 3 / 4;
  grid-row: 1 / 2;
}

.item-side-2 {
  grid-column: 3 / 4;
  grid-row: 2 / 3;
}

.item-bottom-1 {
  grid-column: 1 / 2;
  grid-row: 3 / 4;
}

.item-bottom-2 {
  grid-column: 2 / 3;
  grid-row: 3 / 4;
}

.item-bottom-3 {
  grid-column: 3 / 4;
  grid-row: 3 / 4;
}

/* Modo Móvil (<= 768px): Carrusel Horizontal con Scroll Snap */
@media (max-width: 768px) {
  .gallery-grid-layout {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 14px;
    padding-bottom: 15px;
    grid-template-columns: none;
    grid-template-rows: none;
    -webkit-overflow-scrolling: touch;
  }

  .gallery-item {
    flex: 0 0 82%;
    height: 320px;
    scroll-snap-align: center;
  }

  .gallery-caption {
    font-size: 0.9rem;
    padding: 30px 18px 15px;
  }
}





/* ==========================================================================
   CARRUSEL DE INSTAGRAM (TARJETAS MÁS GRANDES Y PROPORCIÓN 3:4)
   ========================================================================== */
.insta-grid {
  display: flex !important;
  overflow-x: auto !important;
  scroll-snap-type: x mandatory;
  gap: 24px;
  padding: 15px 5px 30px 5px;
  -webkit-overflow-scrolling: touch;
}

.insta-grid::-webkit-scrollbar {
  height: 6px;
}
.insta-grid::-webkit-scrollbar-thumb {
  background: var(--sage);
  border-radius: 10px;
}
.insta-grid::-webkit-scrollbar-track {
  background: var(--paper);
}

/* Tarjetas más amplias */
.insta-card {
  flex: 0 0 320px; /* Aumentado de 260px a 320px en PC para mayor visibilidad */
  min-width: 320px;
  aspect-ratio: 3 / 4;
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--white);
  scroll-snap-align: start;
  box-shadow: 0 10px 25px rgba(13, 33, 26, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.insta-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 35px rgba(13, 33, 26, 0.15);
}

.insta-media {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.insta-body {
  position: absolute;
  inset: auto 0 0 0;
  padding: 45px 18px 18px;
  background: linear-gradient(180deg, transparent 0%, rgba(13, 33, 26, 0.92) 100%);
  color: var(--white);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.insta-date {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #76d577;
}

.insta-caption {
  font-size: 0.9rem;
  line-height: 1.4;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.insta-link {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--white);
  margin-top: 4px;
}

.insta-action {
  text-align: center;
  margin-top: 30px;
}

@media (max-width: 768px) {
  .insta-card {
    flex: 0 0 85%; /* En móvil ocupa casi todo el ancho para destacar la publicación */
    min-width: 280px;
  }
}

/* ==========================================================================
   VISOR / LIGHTBOX PARA AMPLIAR IMÁGENES DE LA GALERÍA
   ========================================================================== */
.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(10, 24, 18, 0.92);
  backdrop-filter: blur(8px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.gallery-lightbox.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-content {
  position: relative;
  max-width: 92vw;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: scale(0.92);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.gallery-lightbox.active .lightbox-content {
  transform: scale(1);
}

.lightbox-img {
  max-width: 100%;
  max-height: 75vh;
  object-fit: contain;
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.lightbox-caption {
  margin-top: 15px;
  color: var(--paper);
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  max-width: 600px;
}

.lightbox-close {
  position: absolute;
  top: -45px;
  right: -5px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: var(--white);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  line-height: 1;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
}

@media (max-width: 600px) {
  .lightbox-close {
    top: -50px;
    right: 0px;
  }
}







/* ==========================================================================
   ALIANZAS Y COLABORACIONES (CORRECCIÓN DE SIMETRÍA Y ALTURA EN MÓVIL)
   ========================================================================== */
.partners-group {
  margin-bottom: 45px;
}

.partners-subtitle {
  font-family: "Playfair Display", serif;
  font-size: 1.4rem;
  color: var(--forest-deep);
  text-align: center;
  margin-bottom: 24px;
}

.partners-grid {
  display: grid;
  gap: 16px;
  align-items: stretch; /* Fuerza a que todas las tarjetas de una misma fila midan exactamente lo mismo de alto */
}

.partners-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 700px;
  margin: 0 auto;
}

.partners-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 950px;
  margin: 0 auto;
}

.partner-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 20px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start; /* Alinea los elementos desde arriba para mantener simetría */
  text-align: center;
  height: 100%; /* Ocupa todo el alto de la grilla */
  box-sizing: border-box;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  color: inherit;
}

.partner-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(13, 33, 26, 0.08);
}

.partner-logo {
  max-width: 100%;
  height: 52px; /* Altura fija para el contenedor del logo para uniformizar el inicio del texto */
  object-fit: contain;
  margin-bottom: 12px;
  filter: grayscale(20%);
  opacity: 0.95;
  transition: filter 0.3s ease, opacity 0.3s ease;
}

.partner-card:hover .partner-logo {
  filter: grayscale(0%);
  opacity: 1;
}

.partner-card span {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
  line-height: 1.35;
  margin-top: auto; /* Empuja el texto hacia abajo suavemente manteniendo la base uniforme */
}

/* Ajuste específico para pantallas móviles */
@media (max-width: 768px) {
  .partners-2,
  .partners-3 {
    grid-template-columns: repeat(2, 1fr); /* Mantiene 2 columnas pero de tamaño idéntico */
    gap: 12px;
  }

  .partner-card {
    padding: 16px 10px;
  }

  .partner-logo {
    height: 44px; /* Ajuste proporcional del logo en móvil */
  }

  .partner-card span {
    font-size: 0.78rem;
  }
}






/* ==========================================================================
   GRILLA DE IMPACTO COMPLETA (6 INDICADORES CORREGIDA)
   ========================================================================== */
.impact {
  padding: 100px 0;
  background: var(--deep);
  color: var(--white);
}

.impact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 45px;
  margin-bottom: 25px;
  border-block: none !important; /* Elimina las líneas horizontales pegadas arriba y abajo */
  border-top: none !important;
  border-bottom: none !important;
}

.impact-item {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  padding: 28px 22px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: transform 0.25s ease, background 0.25s ease;
}

.impact-item:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.08);
}

.impact-item strong {
  display: block;
  font: 700 clamp(2.2rem, 3.8vw, 3rem) "Playfair Display", serif;
  color: var(--white);
  line-height: 1.1;
}

.impact-label {
  font-size: 1.02rem;
  font-weight: 700;
  color: #76d577;
  margin-bottom: 2px;
}

.impact-desc {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.45;
  margin: 0;
}

.impact .note {
  margin-top: 40px;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.5);
  text-align: center;
}

/* Adaptación responsive */
@media (max-width: 950px) {
  .impact-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
}

@media (max-width: 600px) {
  .impact-grid {
    grid-template-columns: 1fr;
  }
  .impact-item {
    padding: 22px 18px;
  }
}





/* ==========================================================================
   ESTILOS MODERNOS PARA CONTRIBUCIONES Y APORTES 2026
   ========================================================================== */
.contributions-section {
  background: var(--white);
  border-top: 1px solid var(--line);
  padding: 80px 0;
}

.contributions-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 50px auto;
}

.contributions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
  margin-bottom: 40px;
}

.contribution-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 25px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  position: relative;
  overflow: hidden;
}

.contribution-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(13, 33, 26, 0.08);
}

.contribution-top {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.contribution-logo-box {
  width: 60px;
  height: 60px;
  border-radius: 14px;
  background: var(--white);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  flex-shrink: 0;
}

.contribution-logo-box img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.contribution-meta h4 {
  font: 700 1.1rem "Playfair Display", serif;
  color: var(--forest-deep);
  margin: 0 0 4px 0;
}

.contribution-location {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ochre);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.contribution-body p {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
  margin: 0 0 16px 0;
}

.contribution-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(79, 124, 76, 0.1);
  color: var(--forest);
  font-weight: 800;
  font-size: 0.88rem;
  padding: 6px 14px;
  border-radius: 999px;
  align-self: flex-start;
}

/* Tarjeta Destacada de Total Acumulado */
.contribution-total-banner {
  background: linear-gradient(135deg, var(--forest-deep), var(--forest));
  color: var(--white);
  border-radius: 24px;
  padding: 35px 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  box-shadow: 0 15px 35px rgba(22, 56, 42, 0.15);
}

.contribution-total-info h3 {
  font: 700 1.6rem "Playfair Display", serif;
  margin: 0 0 6px 0;
  color: var(--white);
}

.contribution-total-info p {
  margin: 0;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.95rem;
}

.contribution-total-number {
  font: 700 clamp(2rem, 3.5vw, 2.8rem) "Playfair Display", serif;
  color: #76d577;
  white-space: nowrap;
  background: rgba(255, 255, 255, 0.08);
  padding: 12px 24px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

@media (max-width: 768px) {
  .contribution-total-banner {
    flex-direction: column;
    text-align: center;
    padding: 25px 20px;
  }
  .contribution-total-number {
    width: 100%;
  }
}