/* ==========================================================================
   AgroDesign — estilos custom (complemento de Tailwind CDN)
   ========================================================================== */

:root {
  --primary: #277d30;
  --primary-dark: #1b5e20;
  --forest: #0c2310;
  --accent: #c7af27;
  --ink: #0f1a12;
  --mist: #f7f9f6;
}

/* ---------- Accesibilidad ---------- */

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--forest);
  color: #fff;
  padding: 0.6rem 1.2rem;
  border-radius: 0 0 0.5rem 0;
}
.skip-link:focus {
  left: 0;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ---------- Tipografía de acento ---------- */

.serif-accent {
  font-family: "Fraunces", serif;
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
}

.hero-title {
  font-size: clamp(2.7rem, 7.5vw, 5.6rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.hero-title .serif-accent {
  color: var(--accent);
}

/* ---------- Botones ---------- */

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 9999px;
  background: var(--accent);
  color: var(--ink);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.85rem 1.9rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px -8px rgba(199, 175, 39, 0.55);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.85rem 1.9rem;
  backdrop-filter: blur(4px);
  transition: border-color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}
.btn-ghost:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-2px);
}

.btn-nav {
  display: inline-flex;
  border-radius: 9999px;
  background: var(--accent);
  color: var(--ink);
  font-weight: 600;
  font-size: 0.88rem;
  padding: 0.5rem 1.2rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.btn-nav:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px -8px rgba(199, 175, 39, 0.7);
}

/* ---------- Navbar ---------- */

#navbar {
  background: linear-gradient(rgba(12, 35, 16, 0.55), transparent);
}
#navbar .nav-logo,
#navbar .nav-link {
  color: #fff;
}
#navbar .menu-toggle span {
  background: #fff;
}

#navbar.scrolled {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 24px -10px rgba(15, 26, 18, 0.2);
}
#navbar.scrolled .nav-logo,
#navbar.scrolled .nav-link {
  color: var(--ink);
}
#navbar.scrolled .menu-toggle span {
  background: var(--ink);
}

.nav-link {
  position: relative;
  font-size: 0.92rem;
  font-weight: 500;
  padding: 0.3rem 0;
  transition: color 0.2s ease;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}
.nav-link:hover::after,
.nav-link.active::after {
  transform: scaleX(1);
}
.nav-link.active {
  color: var(--accent);
}
#navbar.scrolled .nav-link.active {
  color: var(--primary);
}

.lang-switch {
  display: inline-flex;
  gap: 0.25rem;
  border-radius: 9999px;
  padding: 0.2rem;
  background: rgba(255, 255, 255, 0.14);
}
#navbar.scrolled .lang-switch {
  background: rgba(15, 26, 18, 0.06);
}
.lang-btn {
  border-radius: 9999px;
  padding: 0.25rem 0.7rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: inherit;
  opacity: 0.65;
  transition: opacity 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.lang-btn.active {
  opacity: 1;
  background: var(--accent);
  color: var(--ink);
}

.menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 9px;
  border-radius: 0.6rem;
}
.menu-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-menu {
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(10px);
  box-shadow: 0 20px 30px -20px rgba(15, 26, 18, 0.25);
  animation: menuIn 0.25s ease;
}
@keyframes menuIn {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.mobile-link {
  display: block;
  padding: 0.7rem 1rem;
  border-radius: 0.6rem;
  font-weight: 500;
  color: var(--ink);
  transition: background 0.2s ease, color 0.2s ease;
}
.mobile-link:hover,
.mobile-link.active {
  background: var(--mist);
  color: var(--primary);
}

/* ---------- Hero ---------- */

.hero-media {
  position: absolute;
  inset: 0;
  overflow: hidden;
  animation: heroZoom 18s ease-out both;
}
.hero-img {
  width: 100%;
  height: 115%;
  object-fit: cover;
  will-change: transform;
}
@keyframes heroZoom {
  from { transform: scale(1.12); }
  to   { transform: scale(1); }
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(12, 35, 16, 0.55) 0%, rgba(12, 35, 16, 0.25) 40%, rgba(12, 35, 16, 0.82) 100%),
    linear-gradient(75deg, rgba(12, 35, 16, 0.65) 0%, transparent 60%);
}

.pulse-dot {
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.4; transform: scale(0.8); }
}

/* Chips de los 3 ejes en el hero */
.eje-chip {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-areas: "num name arrow" "num desc arrow";
  align-items: center;
  column-gap: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
  padding: 1rem 1.2rem;
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}
.eje-chip:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(199, 175, 39, 0.7);
  transform: translateY(-3px);
}
.eje-num {
  grid-area: num;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
}
.eje-name {
  grid-area: name;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.15rem;
  font-weight: 600;
}
.eje-desc {
  grid-area: desc;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.65);
}
.eje-arrow {
  grid-area: arrow;
  width: 22px;
  height: 22px;
  color: var(--accent);
  transition: transform 0.25s ease;
}
.eje-chip:hover .eje-arrow {
  transform: translate(3px, -3px);
}

/* ---------- Marquee ---------- */

.marquee {
  overflow: hidden;
  padding: 0.9rem 0;
  white-space: nowrap;
}
.marquee-track {
  display: inline-flex;
  align-items: center;
  gap: 2.2rem;
  padding-right: 2.2rem;
  animation: marquee 28s linear infinite;
  will-change: transform;
}
.marquee:hover .marquee-track {
  animation-play-state: paused;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.marquee-item {
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.marquee-dot {
  font-size: 0.85rem;
  opacity: 0.6;
}

/* ---------- Secciones ---------- */

.section-kicker {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 0.8rem;
}
.section-title {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: clamp(2rem, 4.2vw, 3.1rem);
  line-height: 1.12;
  letter-spacing: -0.015em;
  color: var(--ink);
  text-wrap: balance;
}

.section-texture {
  position: absolute;
  inset: 0;
  opacity: 0.3;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 48px 48px;
}

/* Fondo con parallax (sección Proyectos/Agro) */
.parallax-bg {
  position: absolute;
  inset: -18% 0;
  overflow: hidden;
}
.parallax-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  will-change: transform;
}

/* ---------- Qué Hacemos: tarjetas de eje ---------- */

.eje-card {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 520px;
  overflow: hidden;
  border-radius: 1.4rem;
  isolation: isolate;
  scroll-margin-top: 90px;
}
.eje-card-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  transition: transform 0.7s ease;
}
.eje-card:hover .eje-card-img {
  transform: scale(1.07);
}
.eje-card-scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(185deg, rgba(12, 35, 16, 0.05) 20%, rgba(12, 35, 16, 0.68) 62%, rgba(12, 35, 16, 0.92) 100%);
  transition: background 0.4s ease;
}
.eje-card-body {
  padding: 1.9rem 1.7rem;
  color: #fff;
}
.eje-card-tag {
  display: inline-block;
  border-radius: 9999px;
  border: 1px solid rgba(199, 175, 39, 0.6);
  background: rgba(12, 35, 16, 0.45);
  color: var(--accent);
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.3rem 0.85rem;
  backdrop-filter: blur(4px);
}
.eje-card-title {
  margin-top: 0.9rem;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.45rem;
  font-weight: 600;
  line-height: 1.25;
  text-wrap: balance;
}
.eje-card-text {
  margin-top: 0.8rem;
  font-size: 0.9rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.82);
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.55s ease, opacity 0.45s ease, margin-top 0.45s ease;
}
.eje-card:hover .eje-card-text,
.eje-card:focus-within .eje-card-text {
  max-height: 16rem;
  opacity: 1;
}
/* En pantallas táctiles el texto queda siempre visible */
@media (hover: none) {
  .eje-card-text {
    max-height: none;
    opacity: 1;
  }
  .eje-card {
    min-height: 0;
    padding-top: 14rem;
  }
}

/* Pad de beneficios */
.benefit-pad {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  text-align: center;
  padding: 1.1rem 0.9rem;
  border-radius: 1.1rem;
  border: 1.5px solid rgba(15, 26, 18, 0.1);
  background: var(--mist);
  cursor: pointer;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease,
    border-color 0.3s ease, background 0.3s ease;
}
.benefit-pad:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 34px -18px rgba(15, 26, 18, 0.3);
}
.benefit-pad:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.benefit-pad-toggle {
  position: absolute;
  top: 0.7rem;
  right: 0.7rem;
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  border: 1.5px solid rgba(15, 26, 18, 0.15);
  color: rgba(15, 26, 18, 0.4);
  transition: transform 0.35s ease, border-color 0.3s ease, color 0.3s ease;
}
.benefit-pad-toggle svg {
  width: 11px;
  height: 11px;
}
.benefit-pad.is-active .benefit-pad-toggle {
  transform: rotate(45deg);
}

.benefit-pad-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  transition: flex-direction 0.3s ease;
}
.benefit-pad.is-active .benefit-pad-head {
  flex-direction: row;
  align-items: center;
  gap: 0.8rem;
}

.benefit-pad-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: 0.85rem;
  transition: transform 0.3s ease;
}
.benefit-pad-icon svg {
  width: 20px;
  height: 20px;
}
.benefit-pad:hover .benefit-pad-icon {
  transform: scale(1.25);
}

.benefit-pad-name {
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.25;
  color: var(--ink);
}

.benefit-pad-desc {
  font-size: 0.8rem;
  line-height: 1.55;
  color: rgba(15, 26, 18, 0.65);
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, opacity 0.3s ease 0.05s, margin-top 0.4s ease;
}
.benefit-pad.is-active .benefit-pad-desc {
  max-height: 220px;
  opacity: 1;
  margin-top: 0.2rem;
}

/* Tonalidad por categoría (cuenca / agro / urbano) */
.benefit-pad[data-cat="cuenca"] {
  background: linear-gradient(160deg, rgba(43, 111, 143, 0.07), var(--mist) 60%);
}
.benefit-pad[data-cat="cuenca"] .benefit-pad-icon {
  background: rgba(43, 111, 143, 0.14);
  color: #2b6f8f;
}
.benefit-pad[data-cat="cuenca"]:hover {
  border-color: rgba(43, 111, 143, 0.45);
}
.benefit-pad[data-cat="cuenca"]:hover .benefit-pad-toggle {
  border-color: #2b6f8f;
  color: #2b6f8f;
}
.benefit-pad.is-active[data-cat="cuenca"] {
  border-color: #2b6f8f;
}

.benefit-pad[data-cat="agro"] {
  background: linear-gradient(160deg, rgba(39, 125, 48, 0.07), var(--mist) 60%);
}
.benefit-pad[data-cat="agro"] .benefit-pad-icon {
  background: rgba(39, 125, 48, 0.12);
  color: var(--primary);
}
.benefit-pad[data-cat="agro"]:hover {
  border-color: rgba(39, 125, 48, 0.4);
}
.benefit-pad[data-cat="agro"]:hover .benefit-pad-toggle {
  border-color: var(--primary);
  color: var(--primary);
}
.benefit-pad.is-active[data-cat="agro"] {
  border-color: var(--primary);
}

.benefit-pad[data-cat="urbano"] {
  background: linear-gradient(160deg, rgba(199, 175, 39, 0.1), var(--mist) 60%);
}
.benefit-pad[data-cat="urbano"] .benefit-pad-icon {
  background: rgba(199, 175, 39, 0.2);
  color: #8a7a1b;
}
.benefit-pad[data-cat="urbano"]:hover {
  border-color: rgba(199, 175, 39, 0.5);
}
.benefit-pad[data-cat="urbano"]:hover .benefit-pad-toggle {
  border-color: #8a7a1b;
  color: #8a7a1b;
}
.benefit-pad.is-active[data-cat="urbano"] {
  border-color: #c7af27;
}

/* Estado expandido */
.benefit-pad.is-active {
  align-items: flex-start;
  text-align: left;
  grid-column: span 2;
  grid-row: span 2;
  padding: 1.5rem 1.4rem;
  box-shadow: 0 22px 45px -20px rgba(15, 26, 18, 0.45);
  z-index: 2;
}

/* Tarjeta de video */
.video-card {
  scroll-snap-align: start;
  position: relative;
  flex: 0 0 270px;
  aspect-ratio: 9 / 14;
  overflow: hidden;
  border-radius: 1.3rem;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.5rem 1.4rem;
  color: #fff;
  text-align: left;
}
.video-card img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}
.video-card:hover img {
  transform: scale(1.08);
}
.video-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(12, 35, 16, 0.5), rgba(27, 94, 32, 0.35) 45%, rgba(12, 35, 16, 0.85));
}
.video-card-place {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
}
.video-card-title {
  font-family: "Fraunces", serif;
  font-style: italic;
  font-size: 1.55rem;
  font-weight: 500;
  line-height: 1.2;
}
.video-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 62px;
  height: 62px;
  border-radius: 9999px;
  border: 1.5px solid rgba(255, 255, 255, 0.8);
  background: rgba(12, 35, 16, 0.35);
  backdrop-filter: blur(4px);
  transition: transform 0.3s ease, background 0.3s ease;
}
.video-card:hover .video-play {
  transform: translate(-50%, -50%) scale(1.12);
  background: var(--accent);
  border-color: var(--accent);
  color: var(--ink);
}
.video-play svg {
  width: 22px;
  height: 22px;
  margin-left: 3px;
}

/* ---------- Pilares ---------- */

.pillar-card {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 460px;
  overflow: hidden;
  border-radius: 1.4rem;
  isolation: isolate;
  text-align: left;
  color: #fff;
  width: 100%;
}
.pillar-card img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}
.pillar-card:hover img {
  transform: scale(1.07);
}
.pillar-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(185deg, rgba(12, 35, 16, 0.15) 25%, rgba(12, 35, 16, 0.85) 100%);
}
.pillar-body {
  padding: 1.9rem 1.7rem;
  width: 100%;
}
.pillar-name {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
}
.pillar-phrase {
  margin-top: 0.7rem;
  font-size: 0.92rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.85);
}
.pillar-more {
  margin-top: 1.1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
}
.pillar-more svg {
  width: 18px;
  height: 18px;
  transition: transform 0.25s ease;
}
.pillar-card:hover .pillar-more svg {
  transform: translateX(4px);
}

/* Modal de pilar */
.pillar-dialog {
  width: min(720px, calc(100vw - 2rem));
  max-height: 85vh;
  border: none;
  border-radius: 1.4rem;
  padding: 0;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 40px 90px -30px rgba(12, 35, 16, 0.6);
}
.pillar-dialog::backdrop {
  background: rgba(12, 35, 16, 0.55);
  backdrop-filter: blur(6px);
}
.pillar-dialog[open] {
  animation: dialogIn 0.3s ease;
}
@keyframes dialogIn {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}
.pillar-dialog-inner {
  position: relative;
  padding: 2.4rem 2.2rem;
  overflow-y: auto;
  max-height: 85vh;
}
.pillar-close {
  position: absolute;
  top: 1.1rem;
  right: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 9999px;
  background: var(--mist);
  color: var(--ink);
  transition: background 0.2s ease, color 0.2s ease;
}
.pillar-close:hover {
  background: var(--primary);
  color: #fff;
}
.pillar-dialog h3 {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  padding-right: 3rem;
}
.pillar-dialog .pillar-dialog-phrase {
  margin-top: 0.6rem;
  font-family: "Fraunces", serif;
  font-style: italic;
  font-size: 1.05rem;
  color: var(--primary-dark);
}
.pillar-dialog h4 {
  margin-top: 1.6rem;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--primary-dark);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.pillar-dialog h4::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--accent);
}
.pillar-dialog ul {
  margin-top: 0.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.pillar-dialog li {
  position: relative;
  padding-left: 1.1rem;
  font-size: 0.9rem;
  line-height: 1.55;
  color: rgba(15, 26, 18, 0.72);
}
.pillar-dialog li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 5px;
  height: 5px;
  border-radius: 9999px;
  background: var(--primary);
}

/* ---------- Proyectos: métricas ---------- */

.metric-card {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  border-radius: 1.2rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(12, 35, 16, 0.35);
  padding: 2.2rem 1.8rem;
  backdrop-filter: blur(6px);
  transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}
.metric-card:hover {
  transform: translateY(-5px);
  border-color: rgba(199, 175, 39, 0.55);
  background: rgba(12, 35, 16, 0.55);
}
.metric-value {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2.1rem, 4vw, 2.9rem);
  font-weight: 700;
  color: var(--accent);
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.metric-label {
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.75);
}

/* ---------- Kenia ---------- */

.kenya-stat {
  border-left: 3px solid var(--accent);
  padding-left: 0.9rem;
}
.kenya-stat-value {
  display: block;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  font-weight: 700;
  color: var(--primary-dark);
  font-variant-numeric: tabular-nums;
}
.kenya-stat-label {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.78rem;
  line-height: 1.4;
  color: rgba(15, 26, 18, 0.6);
}

.kenya-block {
  border-radius: 1.1rem;
  background: var(--mist);
  border: 1px solid rgba(39, 125, 48, 0.1);
  padding: 1.5rem 1.6rem;
}
.kenya-block-title {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--primary-dark);
}
.kenya-block-text {
  margin-top: 0.5rem;
  font-size: 0.92rem;
  line-height: 1.65;
  color: rgba(15, 26, 18, 0.7);
}

.kenya-collage {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-auto-rows: minmax(180px, auto);
  gap: 1rem;
  align-content: start;
}
.kenya-photo {
  overflow: hidden;
  border-radius: 1.2rem;
}
.kenya-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}
.kenya-photo:hover img {
  transform: scale(1.06);
}
.kenya-photo-main {
  grid-column: 1 / -1;
  min-height: 320px;
}

.kenya-video {
  position: relative;
  display: block;
}
.kenya-video::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 45%, rgba(0, 0, 0, 0.4) 100%);
}
.kenya-video-play {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.kenya-video-play svg {
  width: 46px;
  height: 46px;
  color: #fff;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.4));
  transition: transform 0.3s ease;
}
.kenya-video:hover .kenya-video-play svg {
  transform: scale(1.12);
}

/* ---------- Equipo ---------- */

.team-card {
  position: relative;
  overflow: hidden;
  border-radius: 1.2rem;
  background: var(--mist);
  border: 1px solid rgba(39, 125, 48, 0.08);
  padding: 2.2rem 1.8rem 1.8rem;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.team-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 45px -20px rgba(27, 94, 32, 0.35);
}
.team-avatar {
  width: 92px;
  height: 92px;
  margin: 0 auto 1.1rem;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.7rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, var(--primary) 0%, var(--forest) 100%);
  border: 3px solid rgba(199, 175, 39, 0.55);
  transition: transform 0.3s ease;
}
.team-card:hover .team-avatar {
  transform: scale(1.06);
}
.team-name {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--ink);
}
.team-role {
  margin-top: 0.2rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
}
.team-bio {
  margin-top: 0.55rem;
  font-size: 0.85rem;
  line-height: 1.55;
  color: rgba(15, 26, 18, 0.62);
}

/* ---------- Contacto ---------- */

/* Campo trampa anti-spam: invisible para personas, visible para bots */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.mail-link {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.15rem;
  font-weight: 600;
  color: #fff;
  border-bottom: 2px solid rgba(199, 175, 39, 0.5);
  padding-bottom: 0.3rem;
  transition: border-color 0.25s ease, color 0.25s ease;
}
.mail-link:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.45rem;
}
.form-input {
  width: 100%;
  border-radius: 0.7rem;
  border: 1.5px solid rgba(15, 26, 18, 0.14);
  background: var(--mist);
  padding: 0.7rem 1rem;
  font-size: 0.95rem;
  color: var(--ink);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.form-input:focus {
  outline: none;
  border-color: var(--primary);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(39, 125, 48, 0.15);
}
.form-input.invalid {
  border-color: #b3261e;
}
.form-error {
  display: none;
  margin-top: 0.35rem;
  font-size: 0.78rem;
  color: #b3261e;
}
.form-input.invalid + .form-error,
.form-input.invalid ~ .form-error {
  display: block;
}

#form-status.ok    { color: var(--primary); }
#form-status.error { color: #b3261e; }

.btn-primary.loading {
  pointer-events: none;
  opacity: 0.75;
}
.btn-primary.loading::before {
  content: "";
  width: 1em;
  height: 1em;
  border: 2px solid rgba(15, 26, 18, 0.35);
  border-top-color: var(--ink);
  border-radius: 9999px;
  animation: spin 0.7s linear infinite;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ---------- Footer ---------- */

.footer-link {
  transition: color 0.2s ease;
}
.footer-link:hover {
  color: var(--accent);
}
.social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease, color 0.25s ease;
}
.social-btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--ink);
  transform: translateY(-2px);
}

/* ---------- Reveal on scroll ---------- */

[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.75s ease, transform 0.75s ease;
  transition-delay: var(--reveal-delay, 0ms);
}
[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- prefers-reduced-motion ---------- */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  [data-reveal] {
    opacity: 1;
    transform: none;
  }
  .marquee-track {
    animation: none;
  }
  html {
    scroll-behavior: auto;
  }
}
