:root {
  /* Colores (copiados/igualados al look del screenshot) */
  --bg: #f3f7f2;
  --card: #eef4ee;
  --card-2: #edf3ed;
  --text: #1b2a21;
  --muted: #6b7d72;

  --green-900: #163323;
  --green-700: #1f4a2f;
  --green-600: #2a6b3f;
  --green-500: #2f8a4b;
  --green-200: #d9eadc;

  --yellow-500: #c9aa34;
  --shadow: 0 18px 45px rgba(0, 0, 0, 0.1);
  --shadow-soft: 0 12px 35px rgba(0, 0, 0, 0.08);
  --radius: 22px;
  --radius-sm: 16px;

  --max: 1120px;
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font-family:
    "Quicksand",
    system-ui,
    -apple-system,
    Segoe UI,
    Roboto,
    Arial,
    sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}
.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 22px;
}
.section {
  padding: 84px 0;
}
.center {
  text-align: center;
}
.muted {
  color: var(--muted);
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid rgba(47, 138, 75, 0.25);
  background: rgba(217, 234, 220, 0.55);
  color: var(--green-700);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 12px;
}

/* Navbar */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(243, 247, 242, 0.78);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(22, 51, 35, 0.08);
}
.nav-inner {
  height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--green-900);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  font-weight: 600;
  color: rgba(27, 42, 33, 0.62);
}
.nav-links a {
  padding: 10px 10px;
  border-radius: 12px;
  transition: all 0.25s ease;
}
.nav-links a:hover {
  color: var(--green-900);
  background: rgba(217, 234, 220, 0.5);
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 999px;
  font-weight: 700;
  border: 1px solid transparent;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    background 0.25s ease;
  user-select: none;
  cursor: pointer;
  white-space: nowrap;
}
.btn:active {
  transform: translateY(1px);
}
.btn-primary {
  background: var(--green-500);
  color: #fff;
  box-shadow: 0 14px 28px rgba(47, 138, 75, 0.18);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 36px rgba(47, 138, 75, 0.22);
}
.btn-ghost {
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(22, 51, 35, 0.12);
  color: var(--green-900);
}
.btn-ghost:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-soft);
}
.btn-small {
  padding: 10px 14px;
  font-size: 14px;
}

/* Hero */
/* HERO FULLSCREEN CON VIDEO */
.hero {
  position: relative;
  min-height: 100vh; /* ✅ ocupa toda la pantalla */
  display: flex;
  align-items: center; /* ✅ centra verticalmente el contenido */
  padding: 110px 0 90px; /* ✅ deja espacio por el navbar sticky */
  overflow: hidden;
}
.hero-video {
  position: absolute;
  inset: 0;
  z-index: -3;
}

.hero-video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(1.05) contrast(1.05);
  transform: scale(1.02);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -2;

  background:
    radial-gradient(
      800px 320px at 20% 20%,
      rgba(47, 138, 75, 0.22),
      transparent 60%
    ),
    radial-gradient(
      800px 320px at 85% 10%,
      rgba(201, 170, 52, 0.16),
      transparent 60%
    ),
    linear-gradient(180deg, rgba(243, 247, 242, 0.35), rgba(243, 247, 242, 0.7));

  backdrop-filter: blur(0.5px);
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(255, 255, 255, 0.05);
  pointer-events: none;
}
.hero-bg {
  display: none !important;
}

@media (max-width: 520px) {
  .hero {
    padding: 95px 0 70px;
  }
}

.h1 {
  font-size: clamp(42px, 6vw, 86px);
  letter-spacing: 0.02em;
  margin: 18px 0 8px;
  line-height: 1.02;
  font-weight: 800;
  color: var(--green-900);
}
.h1 .accent {
  background: linear-gradient(90deg, var(--green-500), var(--yellow-500));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.subtitle {
  font-size: clamp(16px, 2vw, 22px);
  color: rgba(27, 42, 33, 0.62);
  margin: 8px auto 0;
  max-width: 680px;
  font-weight: 600;
}
.meta {
  display: flex;
  gap: 22px;
  justify-content: center;
  margin-top: 24px;
  color: rgba(27, 42, 33, 0.72);
  font-weight: 700;
  flex-wrap: wrap;
}
.meta .item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(22, 51, 35, 0.1);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06);
}
.icon {
  width: 18px;
  height: 18px;
  display: inline-block;
}
.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  margin-top: 26px;
  flex-wrap: wrap;
}

/* Títulos sección */
.kicker {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 800;
  color: rgba(47, 138, 75, 0.8);
  font-size: 12px;
}
.title {
  margin: 14px 0 0;
  font-size: clamp(34px, 4.2vw, 56px);
  line-height: 1.05;
  font-weight: 800;
  color: var(--green-900);
}
.title .accent {
  background: linear-gradient(90deg, var(--green-500), var(--yellow-500));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.fab {
  position: fixed;
  right: 18px;
  bottom: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 999;
}
.fab-btn {
  width: 52px;
  height: 52px;
  border-radius: 999px;
  border: 1px solid rgba(22, 51, 35, 0.12);
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 18px 35px rgba(0, 0, 0, 0.12);
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 20px;
}
.fab-wa {
  text-decoration: none;
}

.chat {
  position: fixed;
  right: 86px;
  bottom: 18px;
  width: 360px;
  max-width: calc(100vw - 40px);
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(22, 51, 35, 0.12);
  background: rgba(237, 243, 237, 0.95);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.18);
  z-index: 999;
}
.hidden {
  display: none;
}

.chat-header {
  padding: 14px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.65);
}
.chat-sub {
  font-size: 12px;
  opacity: 0.7;
  font-weight: 600;
}
.chat-x {
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 18px;
}

.chat-body {
  height: 320px;
  overflow: auto;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.msg {
  max-width: 85%;
  padding: 10px 12px;
  border-radius: 14px;
  font-weight: 600;
  line-height: 1.4;
  font-size: 14px;
}
.msg.bot {
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(22, 51, 35, 0.08);
  align-self: flex-start;
}
.msg.me {
  background: rgba(47, 138, 75, 0.15);
  border: 1px solid rgba(47, 138, 75, 0.22);
  align-self: flex-end;
}

.chat-footer {
  padding: 12px;
  border-top: 1px solid rgba(22, 51, 35, 0.1);
  background: rgba(255, 255, 255, 0.55);
}
.chat-whats {
  width: 100%;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(22, 51, 35, 0.12);
  background: rgba(255, 255, 255, 0.75);
  cursor: pointer;
  font-weight: 800;
  margin-bottom: 10px;
}
.chat-inputrow {
  display: flex;
  gap: 8px;
}
.chat-inputrow input {
  flex: 1;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(22, 51, 35, 0.12);
}
.chat-inputrow button {
  padding: 10px 12px;
  border-radius: 12px;
  border: none;
  background: var(--green-500);
  color: white;
  font-weight: 800;
  cursor: pointer;
}

/* Cards, grids */
.grid-2 {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 44px;
  align-items: center;
}
.card {
  background: rgba(237, 243, 237, 0.85);
  border: 1px solid rgba(22, 51, 35, 0.1);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}
.card.pad {
  padding: 28px;
}
.lead {
  color: rgba(27, 42, 33, 0.7);
  font-weight: 600;
  line-height: 1.75;
  font-size: 16px;
}
.highlight {
  color: var(--yellow-500);
  font-weight: 800;
}
.img-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid rgba(22, 51, 35, 0.1);
  background: #fff;
  min-height: 360px;
}
.img-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.02);
}
.badge {
  position: absolute;
  left: 22px;
  bottom: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(235, 228, 205, 0.92);
  border: 1px solid rgba(201, 170, 52, 0.25);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.12);
  min-width: 180px;
}
.badge strong {
  font-size: 26px;
  color: var(--yellow-500);
}
.badge span {
  display: block;
  font-weight: 700;
  color: rgba(27, 42, 33, 0.68);
  font-size: 13px;
}

/* Números */
.numbers {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 38px;
}
.num-card {
  padding: 26px 22px;
  border-radius: var(--radius);
  background: rgba(237, 243, 237, 0.8);
  border: 1px solid rgba(22, 51, 35, 0.1);
  box-shadow: var(--shadow-soft);
  text-align: center;
  position: relative;
  overflow: hidden;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}
.num-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.num-icon {
  width: 44px;
  height: 44px;
  margin: 0 auto 14px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(217, 234, 220, 0.85);
  border: 1px solid rgba(47, 138, 75, 0.14);
}
.big {
  font-size: 48px;
  margin: 0;
  font-weight: 900;
  color: var(--yellow-500);
  letter-spacing: 0.01em;
}
.big .plus {
  color: var(--green-500);
}
.num-title {
  margin: 6px 0 0;
  font-weight: 800;
  color: var(--green-900);
}
.num-desc {
  margin: 10px auto 0;
  max-width: 240px;
  color: rgba(27, 42, 33, 0.62);
  font-weight: 600;
  line-height: 1.6;
  font-size: 14px;
}

/* Temas */
.topics {
  margin-top: 38px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.topic {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 22px 20px;
  border-radius: 18px;
  background: rgba(237, 243, 237, 0.8);
  border: 1px solid rgba(22, 51, 35, 0.1);
  box-shadow: var(--shadow-soft);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}
.topic:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.topic .ico {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: rgba(217, 234, 220, 0.85);
  border: 1px solid rgba(47, 138, 75, 0.14);
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}
.topic h4 {
  margin: 0;
  font-size: 15px;
  font-weight: 800;
  color: var(--green-900);
  line-height: 1.35;
}

/* Participación */
.join-grid {
  margin-top: 42px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.join-card {
  padding: 28px;
  border-radius: var(--radius);
  background: rgba(237, 243, 237, 0.8);
  border: 1px solid rgba(22, 51, 35, 0.1);
  box-shadow: var(--shadow-soft);
  position: relative;
  overflow: hidden;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
  min-height: 250px;
}
.join-card::after {
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  border-radius: 999px;
  right: -90px;
  top: -90px;
  background: radial-gradient(
    circle at 30% 30%,
    rgba(47, 138, 75, 0.18),
    transparent 60%
  );
  pointer-events: none;
}
.join-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.join-card .mini-ico {
  width: 46px;
  height: 46px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: rgba(217, 234, 220, 0.85);
  border: 1px solid rgba(47, 138, 75, 0.14);
  margin-bottom: 14px;
}
.join-card h3 {
  margin: 0;
  font-size: 24px;
  font-weight: 900;
  color: var(--green-900);
}
.join-card p {
  margin: 10px 0 0;
  color: rgba(27, 42, 33, 0.62);
  font-weight: 600;
  line-height: 1.7;
}

/* Razones */
.reasons {
  margin-top: 42px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}
.reason {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(22, 51, 35, 0.1);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
  font-weight: 800;
  color: var(--green-900);
}
.check {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: rgba(47, 138, 75, 0.15);
  border: 1px solid rgba(47, 138, 75, 0.3);
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}

/* Contacto */
.contact-wrap {
  max-width: 900px;
  margin: 40px auto 0;
  padding: 34px 32px;
  border-radius: var(--radius);
  background: rgba(237, 243, 237, 0.86);
  border: 1px solid rgba(22, 51, 35, 0.1);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 24px;
  margin-top: 18px;
  align-items: start;
}
.citem {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 14px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(22, 51, 35, 0.08);
}
.cico {
  width: 44px;
  height: 44px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: rgba(217, 234, 220, 0.85);
  border: 1px solid rgba(47, 138, 75, 0.14);
  flex: 0 0 auto;
}
.citem small {
  display: block;
  color: rgba(27, 42, 33, 0.55);
  font-weight: 800;
}
.citem strong {
  display: block;
  margin-top: 3px;
  font-weight: 900;
  color: var(--green-900);
}
.date-row {
  margin-top: 16px;
  display: flex;
  justify-content: center;
  gap: 12px;
  align-items: center;
  color: rgba(27, 42, 33, 0.62);
  font-weight: 800;
}

/* Aliados */
.partners {
  padding: 26px 0 10px;
  border-top: 1px solid rgba(22, 51, 35, 0.08);
}
.partners h5 {
  margin: 0 0 14px;
  text-align: center;
  color: rgba(27, 42, 33, 0.52);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 900;
}
.logos {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 14px;
  background: rgba(237, 243, 237, 0.9);
  border: 1px solid rgba(22, 51, 35, 0.1);
  font-weight: 900;
  color: rgba(27, 42, 33, 0.7);
}
.logo .mark {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(217, 234, 220, 0.85);
  border: 1px solid rgba(47, 138, 75, 0.14);
  font-size: 12px;
  color: var(--green-700);
}

footer {
  padding: 18px 0 30px;
  color: rgba(27, 42, 33, 0.55);
  text-align: center;
  font-weight: 800;
}

/* Animaciones */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.7s ease,
    transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
  will-change: transform, opacity;
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}
.float {
  animation: floaty 5.5s ease-in-out infinite;
}
@keyframes floaty {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

/* Responsive */
@media (max-width: 980px) {
  .grid-2 {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .numbers {
    grid-template-columns: repeat(2, 1fr);
  }
  .topics {
    grid-template-columns: 1fr;
  }
  .join-grid {
    grid-template-columns: 1fr;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 520px) {
  .nav-links {
    display: none;
  }
  .numbers {
    grid-template-columns: 1fr;
  }
  .hero {
    padding: 54px 0 68px;
  }
  .section {
    padding: 64px 0;
  }
}

.hero {
  position: relative;
  overflow: hidden;
}

/* Contenedor del video */
.hero-video {
  position: absolute;
  inset: 0;
  z-index: -3; /* detrás del contenido */
}

/* El video como fondo */
.hero-video video {
  width: 100%;
  height: 100%;
  object-fit: cover; /* llena como background */
  object-position: center;
  transform: scale(1.03); /* mini zoom elegante */
}

/* Overlay (gradiente + suavizado) */
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(
      700px 260px at 20% 20%,
      rgba(47, 138, 75, 0.2),
      transparent 55%
    ),
    radial-gradient(
      700px 260px at 85% 10%,
      rgba(201, 170, 52, 0.18),
      transparent 55%
    ),
    linear-gradient(180deg, rgba(243, 247, 242, 0.75), rgba(243, 247, 242, 1));
  backdrop-filter: blur(1px);
}
/* ====== RESPONSIVE CHAT ====== */

/* Mejora general: que el chat no se corte */
.chat {
  max-height: calc(100vh - 24px);
}

/* En pantallas pequeñas: chat ocupa casi toda la pantalla */
@media (max-width: 520px) {
  .fab {
    right: 14px;
    bottom: 14px;
    gap: 10px;
    z-index: 1000;
  }

  .fab-btn {
    width: 48px;
    height: 48px;
    font-size: 18px;
  }

  .chat {
    right: 12px; /* ✅ ya no 86px */
    left: 12px; /* ✅ ocupa ancho completo con márgenes */
    bottom: 12px;
    width: auto; /* ✅ se adapta */
    max-width: none;
    border-radius: 16px;
    z-index: 1001; /* ✅ encima de los botones */
  }

  .chat-body {
    height: auto; /* ✅ ya no fijo */
    max-height: calc(100vh - 220px); /* ✅ espacio para header + footer */
    padding: 12px;
  }

  .chat-header {
    padding: 12px;
  }

  .chat-footer {
    padding: 10px;
  }

  .chat-inputrow {
    gap: 6px;
  }

  .chat-inputrow input {
    min-width: 0; /* ✅ evita overflow */
    font-size: 16px; /* ✅ evita zoom raro en iPhone */
  }

  .chat-inputrow button {
    padding: 10px 12px;
    white-space: nowrap;
  }

  .msg {
    max-width: 92%;
    font-size: 14px;
  }
}

/* Tablets: mejor ajuste, sin tapar */
@media (min-width: 521px) and (max-width: 980px) {
  .chat {
    right: 18px;
    bottom: 18px;
    width: min(420px, calc(100vw - 36px));
  }

  .chat-body {
    max-height: calc(100vh - 240px);
    height: auto;
  }
}

@media (max-width: 520px) {
  .chat:not(.hidden) ~ .fab .fab-wa {
    display: none;
  }
}
@media (max-width: 520px) {
  .chat {
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 18px 18px 0 0;
  }
}
