/* ═══════════════════════════════════════════════
   ALCANCE VIDA — hoja de estilos
   Paleta: azul marino (logo) + terracota + verde (acentos)
   Estilo: editorial cálido + bloques de color audaces
   ═══════════════════════════════════════════════ */

:root {
  --navy: #16395E;
  --navy-deep: #0C2138;
  --navy-ink: #0A1A2B;
  --green: #3EA75C;
  --green-dark: #2E8A49;
  --terra: #BC6A44;
  --terra-dark: #A15535;
  --terra-light: #F2B49B;
  --terra-soft: #F6E3D9;
  --cream: #F4EFE5;
  --cream-soft: #FAF7F0;
  --white: #FFFFFF;
  --ink: #1C2733;
  --muted: #5A6B7C;
  --radius: 22px;
  --font-display: "Rubik", sans-serif;
  --font-body: "Inter", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

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

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.6rem, 6.5vw, 5rem); }
h2 { font-size: clamp(2rem, 4.2vw, 3.2rem); }
h3 { font-size: 1.35rem; }

h1 em, h2 em {
  font-style: italic;
  font-weight: 400;
  color: var(--terra);
}

.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.container--narrow { max-width: 820px; }
.center { text-align: center; }

.lead { font-size: 1.15rem; color: var(--muted); max-width: 640px; margin: 18px auto 0; }
.lead--light { color: rgba(255,255,255,.82); }

/* ── etiqueta tipo cinta rasgada ── */
.eyebrow {
  display: inline-block;
  font-family: ui-monospace, "Cascadia Mono", "Courier New", monospace;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: #fff;
  background: var(--navy-ink);
  padding: 10px 24px;
  margin-bottom: 22px;
  clip-path: polygon(0 14%, 2.5% 2%, 38% 4%, 41% 0, 97% 2%, 100% 22%, 98.5% 55%, 100% 84%, 96% 100%, 55% 97%, 52% 100%, 4% 98%, 0 80%, 1.5% 48%);
}
.eyebrow--light { background: var(--cream-soft); color: var(--navy-ink); }

/* ── nota en cursiva ── */
.script-note {
  font-style: italic;
  font-size: 1.15rem;
  color: var(--terra-dark);
  margin-top: 26px;
  font-weight: 400;
}
.script-note--light { color: var(--terra-light); }

/* ── botones ── */
.btn {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  padding: 15px 34px;
  border-radius: 100px;
  text-decoration: none;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
}
.btn--green {
  background: var(--green);
  color: #fff;
  box-shadow: 0 10px 30px rgba(62,167,92,.35);
}
.btn--green:hover { background: var(--green-dark); transform: translateY(-3px); }
.btn--dark {
  background: var(--navy-deep);
  color: #fff;
}
.btn--dark:hover { background: var(--navy); transform: translateY(-3px); }
.btn--big { padding: 19px 48px; font-size: 1.1rem; margin-top: 48px; }

/* ═══════════ NAVEGACIÓN (píldora oscura flotante con blur) ═══════════ */
.nav {
  position: fixed;
  inset: 14px 0 auto 0;
  z-index: 100;
  padding: 0 20px;
  transition: inset .3s ease;
}
.nav.is-scrolled { inset: 8px 0 auto 0; }
.nav__inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 10px 14px 10px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(10,26,43,.58);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 100px;
  box-shadow: 0 14px 40px rgba(6,16,28,.28);
  transition: background .3s ease;
}
.nav.is-scrolled .nav__inner { background: rgba(10,26,43,.78); }
.nav__logo img { height: 38px; }
.nav__links {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav__links a {
  font-size: .92rem;
  font-weight: 600;
  color: rgba(255,255,255,.88);
  text-decoration: none;
  transition: color .2s;
}
.nav__links a:hover { color: #7ED09A; }
.nav__links a.nav__cta {
  background: var(--green);
  color: #fff !important;
  padding: 10px 22px;
  border-radius: 100px;
}
.nav__links a.nav__cta:hover { background: var(--green-dark); }
.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav__burger span {
  width: 26px; height: 3px;
  background: #fff;
  border-radius: 3px;
}

/* ═══════════ HERO (imagen + tarjeta blanca superpuesta) ═══════════ */
/* la imagen termina donde empieza el bloque azul; la tarjeta
   blanca flota superpuesta sobre ambos, sin fondo intermedio */
.hero {
  position: relative;
  z-index: 5;
}
.hero__media {
  position: relative;
}
.hero__media > img {
  width: 100%;
  height: min(82svh, 720px);
  object-fit: cover;
  object-position: center 32%;
}
.hero__media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgb(12 33 56 / 27%) 0%, rgb(12 33 56 / 43%) 30%, rgb(12 33 56 / 71%) 55%, rgb(12 33 56 / 66%) 100%);
  pointer-events: none;
}
.hero__title {
  position: absolute;
  z-index: 2;
  left: max(24px, calc((100vw - 1180px) / 2));
  bottom: 128px;
  color: #fff;
  font-size: clamp(2.6rem, 6.6vw, 5.2rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: .97;
}
.hero__stripes {
  position: absolute;
  z-index: 1;
  right: 0;
  bottom: 150px;
  width: 24%;
  height: 44px;
  background: repeating-linear-gradient(115deg,
    rgba(255,255,255,.9) 0 3px, transparent 3px 10px);
  opacity: .85;
}
/* tarjeta blanca a caballo entre la imagen y el bloque azul */
.hero__card {
  position: absolute;
  z-index: 6;
  left: 50%;
  bottom: 0;
  transform: translate(-50%, 55%);
  max-width: 1180px;
  width: calc(100% - 48px);
  background: #fff;
  padding: 40px 46px;
  display: grid;
  grid-template-columns: .75fr 1.25fr;
  gap: 44px;
  align-items: start;
  box-shadow: 0 30px 70px rgba(12,33,56,.16);
}
.hero__label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .95rem;
  color: var(--navy);
  letter-spacing: .02em;
}
.hero__desc p {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.22rem;
  line-height: 1.45;
  color: var(--navy);
}
.hero__link {
  display: inline-block;
  margin-top: 18px;
  font-weight: 600;
  color: var(--green-dark);
  text-decoration: underline;
  text-underline-offset: 4px;
}
.hero__link:hover { color: var(--green); }

/* ═══════════ COLLAGE AZUL (estilo her.sphere) ═══════════ */
.hero-collage {
  position: relative;
  background: var(--navy);
  min-height: 660px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 215px 24px 100px;
}
/* corazón dibujado: el "cuenco" está en la parte superior del svg,
   por eso se desplaza hacia abajo para que la cita quede dentro */
.hero-collage__doodle {
  position: absolute;
  top: 61%; left: 50%;
  transform: translate(-50%, -50%);
  width: min(580px, 96vw);
  opacity: .95;
  pointer-events: none;
}
.hc-img {
  position: absolute;
  object-fit: cover;
  border-radius: 14px;
  box-shadow: 0 18px 44px rgba(6,16,28,.4);
}
.hc-img--a { width: 150px; height: 200px; left: -30px; top: 22%; transform: rotate(-8deg); }
.hc-img--b { width: 135px; height: 170px; left: 15%; top: 14%; transform: rotate(6deg); }
.hc-img--c { width: 160px; height: 210px; right: -32px; top: 18%; transform: rotate(7deg); }
.hc-img--d { width: 175px; height: 135px; left: 4%; bottom: 8%; transform: rotate(-5deg); }
.hc-img--e { width: 155px; height: 195px; right: 5%; bottom: -26px; transform: rotate(8deg); }
.hc-img--f { width: 145px; height: 185px; left: 38%; bottom: -34px; transform: rotate(-4deg); }
.hc-img--g { width: 140px; height: 175px; right: 20%; top: 10%; transform: rotate(-6deg); }
.hc-img--h { width: 165px; height: 130px; right: 26%; bottom: 6%; transform: rotate(5deg); }
.hero-collage__quote {
  position: relative;
  z-index: 3;
  max-width: 350px;
  text-align: center;
  color: #fff;
}
.hero-collage__avatar {
  width: 58px; height: 58px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid rgba(255,255,255,.8);
  margin: 0 auto 16px;
}
.hero-collage__quote p {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.3rem;
  line-height: 1.4;
}
.hero-collage__dots {
  display: inline-block;
  margin-top: 18px;
  font-size: .6rem;
  letter-spacing: .3em;
  color: rgba(255,255,255,.9);
}

/* ═══════════ TICKER ═══════════ */
.ticker { overflow: hidden; white-space: nowrap; padding: 14px 0; }
.ticker--terra { background: var(--terra); color: #fff; }
.ticker--navy { background: var(--navy); color: #fff; }
.ticker__track {
  display: inline-flex;
  animation: marquee 28s linear infinite;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: .06em;
  text-transform: uppercase;
}
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ═══════════ SECCIONES CREMA ═══════════ */
.section--cream { background: var(--cream); padding: 110px 0; }

/* ═══════════ ESENCIA + ABANICO ═══════════ */
.esencia { overflow: hidden; }
.esencia__head {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 60px;
  align-items: start;
  margin-bottom: 80px;
}
.esencia__intro {
  color: var(--muted);
  font-size: 1.08rem;
  padding-top: 58px;
}

/* carrusel en abanico (estilo her.sphere, animado) */
.fan { text-align: center; }
.fan__stage {
  position: relative;
  height: 340px;
  max-width: 900px;
  margin: 0 auto;
}
.fan__stage img {
  position: absolute;
  left: 50%; top: 50%;
  width: 230px; height: 290px;
  object-fit: cover;
  border-radius: 34px;
  box-shadow: 0 22px 50px rgba(12,33,56,.2);
  transition: transform .8s cubic-bezier(.16,1,.3,1), filter .8s ease, opacity .8s ease;
  will-change: transform, filter;
}
.fan__stage img.pos-c  { transform: translate(-50%,-50%) rotate(0deg) scale(1); filter: blur(0); z-index: 5; opacity: 1; }
.fan__stage img.pos-l1 { transform: translate(calc(-50% - 190px),-46%) rotate(-9deg) scale(.85); filter: blur(1.5px); z-index: 4; opacity: .92; }
.fan__stage img.pos-r1 { transform: translate(calc(-50% + 190px),-46%) rotate(9deg) scale(.85); filter: blur(1.5px); z-index: 4; opacity: .92; }
.fan__stage img.pos-l2 { transform: translate(calc(-50% - 350px),-42%) rotate(-16deg) scale(.7); filter: blur(5px); z-index: 3; opacity: .6; }
.fan__stage img.pos-r2 { transform: translate(calc(-50% + 350px),-42%) rotate(16deg) scale(.7); filter: blur(5px); z-index: 3; opacity: .6; }
.fan__caption { margin-top: 40px; }
.fan__num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .85rem;
  color: var(--navy);
  letter-spacing: .08em;
}
.fan__caption p {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.35rem;
  color: var(--navy);
  margin-top: 6px;
}
.fan__dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}
.fan__dots button {
  width: 8px; height: 8px;
  border-radius: 50%;
  border: none;
  background: rgba(22,57,94,.25);
  cursor: pointer;
  transition: background .3s, transform .3s;
}
.fan__dots button.is-active { background: var(--terra); transform: scale(1.3); }

/* ═══════════ PILARES ═══════════ */
.pilares {
  position: relative;
  padding: 130px 0;
  color: #fff;
}
.pilares__bg { position: absolute; inset: 0; z-index: -1; }
.pilares__bg img { width: 100%; height: 100%; object-fit: cover; }
.pilares__bg::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,26,43,.92), rgba(22,57,94,.86));
}
.pilares__head { margin-bottom: 70px; }
.pilares__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.pilar-card {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.16);
  backdrop-filter: blur(12px);
  border-radius: var(--radius);
  padding: 42px 34px;
  transition: transform .3s ease, background .3s ease;
}
.pilar-card:hover { transform: translateY(-8px); background: rgba(255,255,255,.13); }
.pilar-card__num {
  font-family: var(--font-display);
  font-size: .85rem;
  color: var(--terra-light);
  letter-spacing: .1em;
}
.pilar-card h3 { margin: 14px 0 12px; font-size: 1.6rem; }
.pilar-card p { color: rgba(255,255,255,.78); font-size: .98rem; }

/* ═══════════ STATS ═══════════ */
.stats { background: var(--terra); color: #fff; padding: 64px 0; }
.stats__grid {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  text-align: center;
}
.stat__num, .stat__plus {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 5vw, 4.2rem);
  font-weight: 800;
  line-height: 1;
}
.stat p {
  margin-top: 8px;
  font-size: .95rem;
  color: rgba(255,255,255,.85);
}

/* ═══════════ VISIÓN ═══════════ */
.vision__grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 70px;
  align-items: center;
}
.vision__list { list-style: none; margin-top: 44px; }
.vision__list li {
  display: flex;
  align-items: baseline;
  gap: 22px;
  padding: 22px 0;
  border-bottom: 1px solid rgba(22,57,94,.14);
}
.vision__list li:first-child { border-top: 1px solid rgba(22,57,94,.14); }
.vision__list span {
  font-family: var(--font-display);
  font-size: .85rem;
  color: var(--terra-dark);
  letter-spacing: .08em;
  min-width: 44px;
}
.vision__list p {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--navy);
}
.vision__images { position: relative; min-height: 480px; }
.vision__img {
  position: absolute;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: 0 24px 60px rgba(12,33,56,.22);
}
.vision__img--a {
  width: 78%; height: 340px;
  top: 0; right: 0;
  transform: rotate(2.5deg);
}
.vision__img--b {
  width: 58%; height: 240px;
  bottom: 0; left: 0;
  transform: rotate(-4deg);
  border: 6px solid #fff;
}

/* ═══════════ PUENTE DIGITAL (partida terracota) ═══════════ */
.puente {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 560px;
}
.puente__photo { position: relative; }
.puente__photo img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.puente__panel {
  background: var(--terra);
  color: #fff;
  padding: clamp(60px, 8vw, 110px) clamp(34px, 6vw, 90px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}
.badge-flag {
  display: inline-block;
  background: #fff;
  color: var(--terra-dark);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .78rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: 7px 16px;
  clip-path: polygon(0 0, 100% 0, calc(100% - 10px) 50%, 100% 100%, 0 100%);
  margin-bottom: 26px;
}
.puente__panel h2 {
  font-size: clamp(1.8rem, 3.4vw, 2.8rem);
  max-width: 15ch;
}
.puente__panel p {
  margin-top: 22px;
  color: rgba(255,255,255,.88);
  max-width: 480px;
  font-size: .98rem;
}
.puente__panel .btn { margin-top: 34px; }

/* ═══════════ FUNDADORES ═══════════ */
.fundadores {
  background: var(--navy-deep);
  color: #fff;
  padding: 130px 0;
}
.fundadores__grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 80px;
  align-items: center;
}
.polaroid {
  background: #fff;
  padding: 12px 12px 14px;
  border-radius: 6px;
  box-shadow: 0 18px 44px rgba(12,33,56,.18);
}
.polaroid figcaption {
  font-family: var(--font-display);
  font-style: italic;
  font-size: .92rem;
  color: var(--muted);
  text-align: center;
  padding-top: 10px;
}
.polaroid--big { transform: rotate(-3deg); max-width: 440px; margin: 0 auto; }
.polaroid--big img { width: 100%; height: 420px; object-fit: cover; border-radius: 3px; }
.polaroid--big figcaption {
  font-size: 1.15rem;
  color: var(--navy);
  font-weight: 600;
}
.fundadores__text p { margin-top: 20px; color: rgba(255,255,255,.82); }
.fundadores__text strong { color: var(--terra-light); }

/* ═══════════ PROYECTOS (tarjetas verticales con imagen) ═══════════ */
.rcards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  margin-top: 64px;
}
.rcard {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 24px;
  overflow: hidden;
  text-decoration: none;
  box-shadow: 0 6px 24px rgba(12,33,56,.08);
  transition: transform .45s cubic-bezier(.16,1,.3,1), box-shadow .45s ease;
}
.rcard:hover {
  transform: translateY(-12px);
  box-shadow: 0 30px 60px rgba(12,33,56,.2);
}
.rcard__media {
  position: relative;
  height: 210px;
  overflow: hidden;
}
.rcard__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .8s cubic-bezier(.16,1,.3,1), filter .8s ease;
}
.rcard:hover .rcard__media img { transform: scale(1.1); }
.rcard__media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(12,33,56,.05), rgba(12,33,56,.45));
  transition: opacity .5s ease;
}
.rcard:hover .rcard__media::after { opacity: .55; }
.rcard__status {
  position: absolute;
  z-index: 2;
  top: 14px; left: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(10,26,43,.55);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 100px;
  padding: 7px 14px;
}
.rcard__status--live { background: var(--green); border-color: var(--green); }
.rcard__status--live i {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #fff;
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; box-shadow: 0 0 0 0 rgba(255,255,255,.6); }
  50% { transform: scale(1.25); opacity: .85; box-shadow: 0 0 0 7px rgba(255,255,255,0); }
}
.rcard__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 26px 26px 30px;
}
.rcard__num {
  font-family: var(--font-display);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--terra);
}
.rcard__body h3 {
  color: var(--navy);
  font-size: 1.3rem;
  margin: 10px 0 8px;
}
.rcard__body p { color: var(--muted); font-size: .93rem; flex: 1; }
.rcard__cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: #fff;
  background: var(--green);
  border-radius: 100px;
  padding: 13px 26px;
  align-self: flex-start;
  transition: background .3s ease, gap .3s ease;
}
.rcard--featured:hover .rcard__cta { background: var(--green-dark); gap: 16px; }
.rcard__cta em { font-style: normal; transition: transform .3s ease; }

/* tarjeta destacada: Código 5 */
.rcard--featured {
  background: var(--navy-deep);
  outline: 2px solid rgba(62,167,92,.5);
  outline-offset: 3px;
}
.rcard--featured .rcard__body h3 { color: #fff; }
.rcard--featured .rcard__body p { color: rgba(255,255,255,.72); }
.rcard--featured .rcard__num { color: #7ED09A; }
/* destello que recorre la tarjeta destacada */
.rcard--featured::before {
  content: "";
  position: absolute;
  z-index: 3;
  top: -60%; left: -80%;
  width: 50%; height: 220%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.14), transparent);
  transform: rotate(18deg);
  animation: shine 4.5s ease-in-out infinite;
  pointer-events: none;
}
@keyframes shine {
  0%, 55% { left: -80%; }
  85%, 100% { left: 160%; }
}

/* ═══════════ CONVICCIÓN (fotos diamante flotantes) ═══════════ */
.conviccion {
  position: relative;
  background: var(--cream-soft);
  min-height: 640px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 100px 24px;
}
.conviccion__center {
  position: relative;
  z-index: 3;
  text-align: center;
}
.conviccion__center h2 {
  font-size: clamp(2.2rem, 4.6vw, 3.6rem);
  color: var(--navy);
}
.conviccion__center h2 span { color: #A9B4C0; }
.conviccion__center .hero__link { margin-top: 24px; }
.dm-img {
  position: absolute;
  object-fit: cover;
  border-radius: 30px;
  box-shadow: 0 20px 50px rgba(12,33,56,.18);
  animation: floaty 6s ease-in-out infinite;
}
.dm-img--a { --r: -12deg; width: 210px; height: 270px; left: -40px; top: 6%; animation-duration: 7s; }
.dm-img--b { --r: 9deg; width: 170px; height: 215px; left: 14%; bottom: -50px; animation-duration: 6.2s; animation-delay: .6s; }
.dm-img--c { --r: 14deg; width: 230px; height: 290px; right: -50px; top: 4%; animation-duration: 7.6s; animation-delay: .3s; }
.dm-img--d { --r: -8deg; width: 185px; height: 235px; right: 13%; bottom: -55px; animation-duration: 6.8s; animation-delay: 1s; }
.dm-img--e { --r: 6deg; width: 150px; height: 190px; left: 30%; top: -45px; animation-duration: 6.5s; animation-delay: .8s; }
@keyframes floaty {
  0%, 100% { transform: rotate(var(--r)) translateY(0); }
  50% { transform: rotate(var(--r)) translateY(-16px); }
}

/* ═══════════ PARTICIPA (tarjetas de vidrio) ═══════════ */
.participa {
  position: relative;
  padding: 130px 0;
  color: #fff;
}
.participa__bg { position: absolute; inset: 0; z-index: -1; }
.participa__bg img { width: 100%; height: 100%; object-fit: cover; }
.participa__bg::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,26,43,.88), rgba(22,57,94,.84));
}
.participa__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 60px;
}
.participa-card {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.2);
  backdrop-filter: blur(14px);
  border-radius: var(--radius);
  padding: 46px 32px;
  transition: transform .3s ease, background .3s ease;
}
.participa-card:hover { transform: translateY(-8px); background: rgba(255,255,255,.14); }
.participa-card__icon {
  width: 54px; height: 54px;
  color: #fff;
  opacity: .95;
  margin: 0 auto;
}
.participa-card h3 { color: #fff; margin: 20px 0 10px; }
.participa-card p { color: rgba(255,255,255,.78); font-size: .95rem; }

/* ═══════════ FOOTER ═══════════ */
.footer {
  background: var(--cream-soft);
  padding-top: 90px;
  overflow: hidden;
}
.footer__top {
  display: grid;
  grid-template-columns: 1.4fr .7fr .7fr 1.2fr;
  gap: 50px;
  padding-bottom: 70px;
}
.footer__logo { height: 46px; margin-bottom: 18px; }
.footer__brand p { color: var(--muted); font-size: .95rem; max-width: 320px; }
.footer__col { display: flex; flex-direction: column; gap: 10px; }
.footer__col h4, .footer__news h4 {
  font-family: var(--font-display);
  color: var(--navy);
  font-size: 1rem;
  margin-bottom: 8px;
}
.footer__col a, .footer__col span {
  color: var(--muted);
  text-decoration: none;
  font-size: .95rem;
}
.footer__col a:hover { color: var(--green-dark); }
.footer__form { display: flex; gap: 10px; margin-top: 12px; }
.footer__form input {
  flex: 1;
  border: 1px solid rgba(22,57,94,.2);
  background: #fff;
  border-radius: 100px;
  padding: 13px 20px;
  font-family: var(--font-body);
  font-size: .92rem;
  outline: none;
}
.footer__form input:focus { border-color: var(--green); }
.footer__form button {
  background: var(--navy);
  color: #fff;
  border: none;
  border-radius: 100px;
  padding: 13px 24px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .92rem;
  cursor: pointer;
  transition: background .25s;
}
.footer__form button:hover { background: var(--green-dark); }

.footer__bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 26px;
  padding-bottom: 26px;
  border-top: 1px solid rgba(22,57,94,.12);
  font-size: .85rem;
  color: var(--muted);
}

/* ═══════════ ANIMACIÓN REVEAL ═══════════ */
.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity .8s cubic-bezier(.16,1,.3,1), transform .8s cubic-bezier(.16,1,.3,1);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ═══════════ RESPONSIVE ═══════════ */
@media (max-width: 960px) {
  .pilares__grid, .participa__grid { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; }
  .participa__grid { margin-top: 50px; }
  .vision__grid, .fundadores__grid { grid-template-columns: 1fr; gap: 60px; }
  .esencia__head { grid-template-columns: 1fr; gap: 10px; }
  .esencia__intro { padding-top: 0; }
  .puente { grid-template-columns: 1fr; }
  .puente__photo { min-height: 340px; }
  .vision__images { min-height: 420px; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); gap: 40px; }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .dm-img { max-width: 150px; max-height: 190px; }
  .rcards { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 680px) {
  .nav__links {
    position: fixed;
    top: 0; right: -100%;
    height: 100svh;
    width: min(320px, 82vw);
    background: var(--navy-deep);
    flex-direction: column;
    justify-content: center;
    gap: 34px;
    transition: right .4s cubic-bezier(.16,1,.3,1);
    box-shadow: -20px 0 60px rgba(0,0,0,.3);
  }
  .nav__links.is-open { right: 0; }
  .nav__links a { color: #fff !important; font-size: 1.15rem; }
  .nav__burger { display: flex; z-index: 110; }
  /* hero móvil: la tarjeta vuelve al flujo y el fondo lateral se une al azul */
  .hero { background: var(--navy); }
  .hero__media > img { height: min(72svh, 560px); }
  .hero__card {
    position: relative;
    left: auto; bottom: auto;
    transform: none;
    margin: -56px auto 0;
    width: calc(100% - 40px);
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 28px 24px;
  }
  .hero__title { bottom: 84px; font-size: 2.35rem; }
  .hero__stripes { display: none; }
  /* collage móvil: menos fotos, en los bordes, texto y corazón centrados */
  .hero-collage { min-height: 500px; padding: 90px 24px 100px; }
  .hc-img--b, .hc-img--e, .hc-img--f, .hc-img--g { display: none; }
  .hc-img { max-width: 96px; max-height: 122px; }
  .hc-img--a { left: -26px; top: 5%; }
  .hc-img--c { right: -26px; top: 7%; }
  .hc-img--d { left: 2%; bottom: 4%; }
  .hc-img--h { right: -24px; bottom: 9%; }
  .hero-collage__doodle { width: min(410px, 105vw); top: 56%; }
  .hero-collage__quote { max-width: 250px; }
  .hero-collage__quote p { font-size: 1.02rem; }
  .hero-collage__avatar { width: 46px; height: 46px; border-width: 2px; }
  .hero-collage__dots { margin-top: 12px; }
  .fan__stage { height: 280px; }
  .fan__stage img { width: 170px; height: 215px; }
  .fan__stage img.pos-l1 { transform: translate(calc(-50% - 120px),-46%) rotate(-9deg) scale(.85); }
  .fan__stage img.pos-r1 { transform: translate(calc(-50% + 120px),-46%) rotate(9deg) scale(.85); }
  .fan__stage img.pos-l2 { transform: translate(calc(-50% - 210px),-42%) rotate(-16deg) scale(.7); }
  .fan__stage img.pos-r2 { transform: translate(calc(-50% + 210px),-42%) rotate(16deg) scale(.7); }
  .dm-img { max-width: 110px; max-height: 140px; border-radius: 20px; }
  .rcards { grid-template-columns: 1fr; max-width: 420px; margin-inline: auto; margin-top: 50px; }
  .footer__top { grid-template-columns: 1fr; gap: 36px; }
  .stats__grid { grid-template-columns: 1fr 1fr; }
}
