/* ===================================================================
   MÁS VIDA A.C. — styles.css
   Landing institucional premium · responsivo
   -------------------------------------------------------------------
   PALETA Y TIPOGRAFÍA EDITABLES en :root (abajo).
   Ajusta los colores cuando definas la identidad visual del ZIP.
=================================================================== */

/* ====== VARIABLES DE MARCA ====== */
:root {
  /* Colores principales — tomados del logo +Vida (verde → azul) */
  --primary:        #2E9E5B;   /* verde del logo */
  --primary-dark:   #1E7A45;
  --primary-deep:   #0f4f34;
  --accent:         #29A9E0;   /* azul del logo (CTA) */
  --accent-dark:    #1E86C7;
  --warm:           #5BB749;   /* verde brillante (acento) */
  --teal:           #1AA7A0;   /* teal de transición del infinito */
  --blue:           #1E7FC2;

  /* Neutros */
  --bg:             #F4FAF8;
  --bg-alt:         #ffffff;
  --text:           #14242B;
  --text-soft:      #4a5b62;
  --line:           rgba(46, 158, 91, .14);
  --white:          #ffffff;

  /* Glassmorphism */
  --glass-bg:       rgba(255, 255, 255, .65);
  --glass-border:   rgba(255, 255, 255, .55);
  --glass-blur:     16px;

  /* Tipografía */
  --font-body:  "Plus Jakarta Sans", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --font-head:  "Fraunces", Georgia, "Times New Roman", serif;

  /* Layout */
  --container:  1180px;
  --radius:     20px;
  --radius-sm:  12px;
  --shadow:     0 18px 50px rgba(6, 59, 47, .12);
  --shadow-sm:  0 8px 24px rgba(6, 59, 47, .10);
  --header-h:   76px;
  --ease:       cubic-bezier(.22, 1, .36, 1);
}

/* ====== RESET BÁSICO ====== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 22px;
}

/* ====== UTILIDADES ====== */
.text-gradient {
  background: linear-gradient(100deg, var(--warm), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.eyebrow {
  display: inline-block;
  font-weight: 700;
  font-size: .8rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 14px;
}

.glass {
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(var(--glass-blur));
  backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
}

/* ====== BOTONES ====== */
.btn {
  --b: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: .95rem;
  line-height: 1;
  padding: 14px 26px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s, color .25s;
  white-space: nowrap;
}
.btn small { font-weight: 500; opacity: .8; font-size: .72em; }
.btn:hover { transform: translateY(-3px); }
.btn:focus-visible { outline: 3px solid var(--warm); outline-offset: 3px; }

.btn--primary { background: var(--primary); color: #fff; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--primary-dark); box-shadow: var(--shadow); }

.btn--accent { background: linear-gradient(100deg, var(--accent), var(--accent-dark)); color: #fff; box-shadow: 0 10px 26px rgba(232, 92, 58, .35); }
.btn--accent:hover { box-shadow: 0 16px 34px rgba(232, 92, 58, .45); }

.btn--ghost { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.7); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.btn--ghost:hover { background: rgba(255,255,255,.22); }

.btn--wa { background: #25D366; color: #fff; }
.btn--ig { background: linear-gradient(45deg,#f09433,#e6683c,#dc2743,#cc2366,#bc1888); color:#fff; }

.btn--lg { padding: 16px 32px; font-size: 1.02rem; }
.btn--block { width: 100%; }

/* ====== HEADER ====== */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--header-h);
  z-index: 1000;
  display: flex;
  align-items: center;
  transition: background .35s, box-shadow .35s, height .35s;
}
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; }

/* Estado al hacer scroll (toggle por JS) */
.header.scrolled {
  background: rgba(255,255,255,.85);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 6px 24px rgba(6,59,47,.08);
  height: 64px;
}

.brand { display: inline-flex; align-items: center; gap: 11px; }
.brand__mark { width: 48px; height: 48px; object-fit: contain; }
.header.scrolled .brand__mark { width: 42px; height: 42px; }
.footer__logo { width: 200px; max-width: 70%; height: auto; }
.brand__name {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.3rem;
  color: #fff;
  transition: color .35s;
}
.brand__ac { color: var(--accent); }
.header.scrolled .brand__name { color: var(--text); }
.brand--light .brand__name { color: #fff; }

/* Navegación */
.nav { display: flex; align-items: center; gap: 26px; }
.nav__link {
  font-weight: 600;
  font-size: .95rem;
  color: rgba(255,255,255,.92);
  position: relative;
  transition: color .25s;
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  width: 0; height: 2px;
  background: var(--warm);
  transition: width .3s var(--ease);
}
.nav__link:hover::after { width: 100%; }
.header.scrolled .nav__link { color: var(--text-soft); }
.header.scrolled .nav__link:hover { color: var(--primary); }
.nav__cta { color: #fff !important; }

/* Hamburguesa */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px; height: 44px;
  background: transparent;
  border: 0;
  cursor: pointer;
  z-index: 1100;
}
.hamburger span {
  display: block;
  width: 26px; height: 3px;
  border-radius: 3px;
  background: #fff;
  transition: transform .3s var(--ease), opacity .3s, background .3s;
}
.header.scrolled .hamburger span { background: var(--text); }
.hamburger.active span { background: var(--text); }
.hamburger.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ====== HERO ====== */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  color: #fff;
  overflow: hidden;
}
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__img, .hero__video { width: 100%; height: 100%; object-fit: cover; }
.hero__overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(9,58,62,.42) 0%, rgba(9,54,58,.28) 40%, rgba(8,48,52,.78) 100%),
    radial-gradient(110% 80% at 16% 16%, rgba(91,183,73,.32), transparent 58%),
    radial-gradient(110% 80% at 86% 82%, rgba(30,127,194,.36), transparent 60%);
}
.hero__content {
  position: relative;
  padding-top: var(--header-h);
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 40px;
  align-items: center;
}
.hero__text { max-width: 640px; }
.hero__visual { display: flex; justify-content: center; align-items: center; }
.hero__logo {
  width: min(100%, 440px);
  height: auto;
  filter: drop-shadow(0 18px 50px rgba(0,0,0,.35));
  animation: floatY 4s ease-in-out infinite;
}
.hero__eyebrow {
  display: inline-block;
  padding: 8px 16px;
  border: 1px solid rgba(255,255,255,.4);
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 22px;
  background: rgba(255,255,255,.08);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.hero__title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  line-height: 1.05;
  margin-bottom: 20px;
  text-shadow: 0 6px 30px rgba(0,0,0,.25);
}
.hero__subtitle {
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  max-width: 560px;
  color: rgba(255,255,255,.92);
  margin-bottom: 34px;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }

.hero__scroll {
  position: absolute;
  left: 50%; bottom: 26px;
  transform: translateX(-50%);
  width: 26px; height: 44px;
  border: 2px solid rgba(255,255,255,.6);
  border-radius: 999px;
  display: flex; justify-content: center;
}
.hero__scroll span {
  width: 4px; height: 8px;
  margin-top: 8px;
  border-radius: 4px;
  background: #fff;
  animation: scrollDot 1.6s infinite;
}
@keyframes scrollDot { 0%{opacity:0;transform:translateY(0)} 40%{opacity:1} 80%{opacity:0;transform:translateY(14px)} }

/* ====== SECCIONES (general) ====== */
.section { padding: clamp(64px, 9vw, 110px) 0; }
.section__head { max-width: 720px; margin: 0 auto 54px; text-align: center; }
.section__title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  line-height: 1.12;
  color: var(--text);
}
.section__lead { color: var(--text-soft); font-size: 1.08rem; margin-top: 14px; }
.section__lead em { color: var(--primary-dark); }

/* ====== QUIÉNES SOMOS ====== */
.about { background: var(--bg-alt); }
.about__grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 56px;
  align-items: center;
}
.about__media { position: relative; }
.about__media img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  aspect-ratio: 10 / 11;
  object-fit: cover;
}
.about__badge {
  position: absolute;
  right: -14px; bottom: -18px;
  padding: 16px 22px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.about__badge strong { font-family: var(--font-head); font-size: 1.2rem; color: var(--primary-dark); }
.about__badge span { font-size: .82rem; color: var(--text-soft); }

.about__text p { color: var(--text-soft); margin-bottom: 16px; }
.about__values {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 20px;
  margin: 24px 0 30px;
}
.about__values li { display: flex; align-items: center; gap: 10px; font-weight: 600; color: var(--text); }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); flex: none; }

/* ====== IMPACTO ====== */
.impact {
  background:
    radial-gradient(120% 120% at 0% 0%, rgba(14,140,110,.10), transparent 50%),
    linear-gradient(180deg, var(--bg), #eef6f2);
}
.impact__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.impact__card {
  text-align: center;
  padding: 38px 22px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s;
}
.impact__card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.impact__num {
  display: block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  line-height: 1;
  color: var(--primary);
}
.impact__label { color: var(--text-soft); font-weight: 600; margin-top: 8px; }
.impact__label small { display: block; font-weight: 500; color: var(--accent-dark); opacity: .85; }
.impact__note {
  text-align: center;
  font-family: var(--font-head);
  font-size: clamp(1.3rem, 3vw, 1.9rem);
  color: var(--primary-dark);
  margin-top: 48px;
}

/* ====== GALERÍA ====== */
.gallery { background: var(--bg-alt); }
.gallery__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 240px;
  gap: 18px;
}
.gallery__item {
  position: relative;
  border: 0;
  padding: 0;
  cursor: pointer;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #eee;
  box-shadow: var(--shadow-sm);
}
.gallery__item--tall { grid-row: span 2; }
.gallery__item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .6s var(--ease);
}
.gallery__item::after {
  content: "🔍";
  position: absolute;
  inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem;
  background: linear-gradient(180deg, rgba(6,59,47,0), rgba(6,59,47,.55));
  opacity: 0;
  transition: opacity .35s;
}
.gallery__item:hover img { transform: scale(1.08); }
.gallery__item:hover::after { opacity: 1; }
.gallery__item:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; }

/* ====== REELS ====== */
.reels { background: linear-gradient(180deg, #eef6f2, var(--bg)); }
.reels__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.reel {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 9 / 16;
  background: var(--primary-deep);
  box-shadow: var(--shadow);
}
.reel__video { width: 100%; height: 100%; object-fit: cover; }
.reel__play {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%,-50%);
  width: 64px; height: 64px;
  border-radius: 50%;
  border: 0;
  background: rgba(255,255,255,.9);
  cursor: pointer;
  transition: transform .25s, opacity .25s;
}
.reel__play::before {
  content: "";
  position: absolute;
  left: 54%; top: 50%;
  transform: translate(-50%,-50%);
  border-style: solid;
  border-width: 11px 0 11px 18px;
  border-color: transparent transparent transparent var(--primary-dark);
}
.reel__play:hover { transform: translate(-50%,-50%) scale(1.08); }
.reel.playing .reel__play { opacity: 0; pointer-events: none; }
.reel__caption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 40px 18px 18px;
  color: #fff;
  background: linear-gradient(180deg, transparent, rgba(6,59,47,.85));
}
.reel__caption h3 { font-family: var(--font-head); font-size: 1.05rem; margin-bottom: 4px; }
.reel__caption p { font-size: .85rem; opacity: .9; }

/* ====== ACTIVIDADES / PROGRAMAS ====== */
.programs { background: var(--bg-alt); }
.programs__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.program {
  padding: 32px 26px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--bg);
  transition: transform .3s var(--ease), box-shadow .3s, border-color .3s;
}
.program:hover { transform: translateY(-8px); box-shadow: var(--shadow); border-color: transparent; }
.program__icon {
  width: 58px; height: 58px;
  border-radius: 16px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  margin-bottom: 18px;
}
.program__icon svg { width: 28px; height: 28px; fill: #fff; }
.program:nth-child(2) .program__icon { background: linear-gradient(135deg, var(--accent), var(--accent-dark)); }
.program:nth-child(3) .program__icon { background: linear-gradient(135deg, var(--warm), var(--accent)); }
.program:nth-child(4) .program__icon { background: linear-gradient(135deg, var(--primary), #13917A); }
.program h3 { font-family: var(--font-head); font-size: 1.25rem; margin-bottom: 8px; }
.program p { color: var(--text-soft); font-size: .95rem; margin-bottom: 16px; }
.program p em { color: var(--accent-dark); font-style: normal; font-size: .8em; }
.program__link { font-weight: 700; color: var(--primary); }
.program__link:hover { color: var(--accent-dark); }

/* ====== HISTORIAS / TESTIMONIOS ====== */
.stories {
  background:
    radial-gradient(120% 120% at 100% 0%, rgba(255,178,62,.12), transparent 50%),
    linear-gradient(180deg, var(--bg), #eef6f2);
}
.stories__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.story {
  padding: 34px 28px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  position: relative;
}
.story::before {
  content: "\201C";
  font-family: var(--font-head);
  font-size: 4rem;
  line-height: .8;
  color: var(--accent);
  opacity: .5;
}
.story blockquote {
  font-family: var(--font-head);
  font-size: 1.15rem;
  color: var(--text);
  margin: 6px 0 18px;
}
.story figcaption { color: var(--text-soft); font-weight: 600; font-size: .9rem; }
.story figcaption span { display: block; font-weight: 500; color: var(--accent-dark); opacity: .85; }

/* ====== CTA ====== */
.cta {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary-deep));
  position: relative;
}
.cta__inner {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 40px;
  padding: 48px;
  border-radius: 28px;
  box-shadow: var(--shadow);
}
.cta .eyebrow { color: var(--accent); }
.cta__text .section__title { color: var(--text); }
.cta__text p { color: var(--text-soft); margin: 12px 0 24px; }
.cta__buttons { display: flex; flex-wrap: wrap; gap: 12px; }
.cta__form h3 { font-family: var(--font-head); font-size: 1.3rem; margin-bottom: 16px; }
.field { margin-bottom: 14px; }
.field label { display: block; font-weight: 600; font-size: .88rem; margin-bottom: 6px; }
.field input, .field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: .95rem;
  background: #fff;
  transition: border-color .25s, box-shadow .25s;
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(14,140,110,.15);
}
.form__hint { margin-top: 12px; font-size: .88rem; font-weight: 600; min-height: 1.2em; }
.form__hint.ok { color: var(--primary); }
.form__hint.err { color: var(--accent-dark); }

/* ====== FOOTER ====== */
.footer { background: var(--primary-deep); color: rgba(255,255,255,.8); padding-top: 64px; }
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr;
  gap: 36px;
  padding-bottom: 44px;
}
.footer__brand p { margin-top: 14px; max-width: 320px; font-size: .95rem; }
.footer h4 { color: #fff; font-family: var(--font-head); font-size: 1.05rem; margin-bottom: 14px; }
.footer__links { display: flex; flex-direction: column; gap: 8px; }
.footer__links a, .footer__contact a { color: rgba(255,255,255,.8); transition: color .2s; }
.footer__links a:hover, .footer__contact a:hover { color: var(--warm); }
.footer__contact p { margin-bottom: 8px; font-size: .95rem; }
.footer__contact small { color: var(--accent); }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  padding: 20px 0;
  font-size: .85rem;
  text-align: center;
}

/* ====== LIGHTBOX ====== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(6,59,47,.92);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity .3s;
}
.lightbox[hidden] { display: none; }
.lightbox.open { opacity: 1; }
.lightbox__img {
  max-width: 88vw;
  max-height: 84vh;
  border-radius: var(--radius-sm);
  box-shadow: 0 30px 80px rgba(0,0,0,.5);
}
.lightbox__close, .lightbox__nav {
  position: absolute;
  background: rgba(255,255,255,.14);
  color: #fff;
  border: 0;
  cursor: pointer;
  border-radius: 50%;
  transition: background .25s, transform .25s;
}
.lightbox__close {
  top: 22px; right: 26px;
  width: 48px; height: 48px;
  font-size: 1.8rem;
  line-height: 1;
}
.lightbox__nav {
  top: 50%;
  transform: translateY(-50%);
  width: 56px; height: 56px;
  font-size: 2rem;
}
.lightbox__nav--prev { left: 22px; }
.lightbox__nav--next { right: 22px; }
.lightbox__close:hover, .lightbox__nav:hover { background: rgba(255,255,255,.28); }

/* ====== FAB WHATSAPP ====== */
.fab-wa {
  position: fixed;
  right: 22px; bottom: 22px;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: #25D366;
  display: grid; place-items: center;
  box-shadow: 0 10px 26px rgba(37,211,102,.5);
  z-index: 900;
  transition: transform .25s;
  animation: floatY 3s ease-in-out infinite;
}
.fab-wa svg { width: 30px; height: 30px; fill: #fff; }
.fab-wa:hover { transform: scale(1.1); }
@keyframes floatY { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-6px)} }

/* ====== ANIMACIONES DE ENTRADA (reveal) ====== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.reveal.in { opacity: 1; transform: none; }

/* ====================================================================
   RESPONSIVE
==================================================================== */
@media (max-width: 980px) {
  .hero__content { grid-template-columns: 1fr; gap: 24px; text-align: center; }
  .hero__text { max-width: 100%; }
  .hero__visual { order: -1; }
  .hero__logo { width: min(64%, 280px); }
  .hero__actions { justify-content: center; }
  .about__grid { grid-template-columns: 1fr; gap: 40px; }
  .about__media { max-width: 440px; margin-inline: auto; }
  .impact__grid { grid-template-columns: repeat(2, 1fr); }
  .programs__grid { grid-template-columns: repeat(2, 1fr); }
  .reels__grid { grid-template-columns: repeat(2, 1fr); }
  .stories__grid { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; }
  .cta__inner { grid-template-columns: 1fr; padding: 36px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  /* Menú móvil */
  .nav {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(82vw, 340px);
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 22px;
    padding: 40px 34px;
    background: rgba(255,255,255,.97);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    box-shadow: -20px 0 