/* ═══════════════════════════════════════════════
   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;
  /* variantes con contraste suficiente sobre fondos claros (WCAG AA) */
  --terra-texto: #A85B38;
  --green-texto: #2A7E43;
  --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); }
/* el logo puede encogerse pero nunca deformarse */
.nav__logo {
  display: flex;
  min-width: 0;
  flex: 0 1 auto;
}
.nav__logo img {
  height: 50px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  object-position: left center;
}
.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;
  flex-shrink: 0;
}
.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 52%;
}
.hero__media::after {
  content: "";
  position: absolute; inset: 0;
  /* franja superior limpia para el menú + oscurecido inferior para el título,
     dejando el centro claro para que se vean bien los rostros */
  background:
    /* franja superior limpia para el menú */
    linear-gradient(180deg, rgba(10,26,43,.6) 0%, rgba(10,26,43,.18) 12%, rgba(10,26,43,.05) 24%),
    /* oscurecido inferior para el título */
    linear-gradient(180deg, rgba(12,33,56,0) 40%, rgba(12,33,56,.5) 74%, rgba(10,24,40,.85) 100%),
    /* oscurecido a la izquierda (donde va el título) */
    linear-gradient(90deg, rgba(10,24,40,.55) 0%, rgba(10,24,40,.16) 44%, rgba(12,33,56,0) 64%),
    /* capa uniforme: la foto se siente como fondo y el título destaca */
    linear-gradient(rgba(9,20,34,.26), rgba(9,20,34,.26));
  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;
  text-shadow: 0 2px 26px rgba(8,20,34,.55), 0 1px 4px rgba(8,20,34,.5);
}
.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-texto);
  text-decoration: underline;
  text-underline-offset: 4px;
}
.hero__link:hover { color: var(--green-dark); }

/* ═══════════ COLLAGE AZUL (estilo her.sphere) ═══════════ */
.hero-collage {
  position: relative;
  background: var(--navy);
  min-height: 780px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 215px 24px 140px;
}
/* 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: 540px;
  text-align: center;
  color: #fff;
}
.hero-collage__avatar {
  width: 220px; height: 220px;
  object-fit: cover;
  border-radius: 24px;
  border: 4px solid rgba(255,255,255,.9);
  box-shadow: 0 26px 64px rgba(6,16,28,.55);
  margin: 0 auto 26px;
}
.hero-collage__quote p {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.5;
  color: rgba(255,255,255,.9);
  max-width: 480px;
  margin: 0 auto;
}
.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); }
/* punto pulsante: solo transform y opacity (acelerado por GPU) */
.rcard__status--live i {
  position: relative;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #fff;
  flex-shrink: 0;
}
.rcard__status--live i::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: rgba(255,255,255,.55);
  animation: pulse 1.6s ease-out infinite;
  will-change: transform, opacity;
}
@keyframes pulse {
  0%   { transform: scale(1);   opacity: .8; }
  100% { transform: scale(3.2); opacity: 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-texto);
}
.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 — anima transform, no left */
.rcard--featured::before {
  content: "";
  position: absolute;
  z-index: 3;
  top: -60%; left: 0;
  width: 50%; height: 220%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.14), transparent);
  animation: shine 4.5s ease-in-out infinite;
  pointer-events: none;
  will-change: transform;
}
@keyframes shine {
  0%, 55%   { transform: translateX(-160%) rotate(18deg); }
  85%, 100% { transform: translateX(320%) rotate(18deg); }
}

/* ═══════════ 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: #7A8896; }
.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;
}
/* el png tiene ~4.9% de aire transparente a cada lado; el margen
   negativo lo compensa para que el logo alinee con el texto */
.footer__logo {
  --logo-h: 54px;
  height: var(--logo-h);
  width: auto;
  max-width: 100%;
  object-fit: contain;
  object-position: left center;
  margin-left: calc(var(--logo-h) * -0.26);
  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); }

/* Código 5 centrado (fila 1, columna del medio) */
.proyectos__featured {
  display: flex;
  justify-content: center;
  margin-top: 64px;
}
.proyectos__featured .rcard--featured {
  width: 100%;
  max-width: 384px;
}

/* ═══════════ RECURSOS GRATUITOS (descargas PDF) ═══════════ */
.recursos { margin-top: 72px; }
.recursos .center { margin-bottom: 48px; }
.rec__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.rec-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 6px 24px rgba(12,33,56,.09);
  transition: transform .4s cubic-bezier(.16,1,.3,1), box-shadow .4s ease;
}
.rec-card:hover { transform: translateY(-8px); box-shadow: 0 24px 50px rgba(12,33,56,.16); }
.rec-card__cover {
  position: relative;
  display: block;
  height: 210px;
  overflow: hidden;
  background: var(--navy-deep);
}
.rec-card__cover img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform .7s cubic-bezier(.16,1,.3,1);
}
.rec-card:hover .rec-card__cover img { transform: scale(1.05); }
.rec-card__badge {
  position: absolute;
  top: 14px; left: 14px;
  font-family: var(--font-display);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(10,26,43,.62);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 100px;
  padding: 7px 14px;
}
.rec-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 24px 24px 26px;
}
.rec-card__body h4 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--navy);
  letter-spacing: -0.01em;
}
.rec-card__body p { color: var(--muted); font-size: .93rem; margin-top: 8px; flex: 1; }
.rec-card__actions {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 20px;
}
.btn--sm { padding: 11px 24px; font-size: .92rem; }
.rec-card__dl {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .92rem;
  color: var(--navy);
  text-decoration: none;
  border-bottom: 2px solid rgba(22,57,94,.25);
  padding-bottom: 2px;
  transition: color .2s ease, border-color .2s ease;
}
.rec-card__dl:hover { color: var(--green-dark); border-color: var(--green); }

/* ═══════════ GALERÍA (grid tipo mosaico) ═══════════ */
.galeria .center { margin-bottom: 56px; }
.gal__grid {
  columns: 4 250px;
  column-gap: 16px;
}
.gal__item {
  position: relative;
  break-inside: avoid;
  margin: 0 0 16px;
  border-radius: 16px;
  overflow: hidden;
  cursor: zoom-in;
  box-shadow: 0 4px 18px rgba(12,33,56,.08);
  background: #e9e3d7;
}
.gal__item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform .6s cubic-bezier(.16,1,.3,1);
}
.gal__item figcaption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 26px 16px 14px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .95rem;
  color: #fff;
  background: linear-gradient(180deg, rgba(10,26,43,0), rgba(10,26,43,.82));
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .35s ease, transform .35s ease;
}
.gal__item::after {
  content: "";
  position: absolute;
  top: 14px; right: 14px;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,.9) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%2316395E' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M15 3h6v6M9 21H3v-6M21 3l-7 7M3 21l7-7'/%3E%3C/svg%3E") center/16px no-repeat;
  opacity: 0;
  transform: scale(.7);
  transition: opacity .3s ease, transform .3s ease;
}
.gal__item:hover img { transform: scale(1.06); }
.gal__item:hover figcaption { opacity: 1; transform: translateY(0); }
.gal__item:hover::after { opacity: 1; transform: scale(1); }

/* ═══════════ VISOR / LIGHTBOX ═══════════ */
.lb {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s ease, visibility .3s ease;
}
.lb.is-open { opacity: 1; visibility: visible; }
.lb__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6,14,24,.94);
  backdrop-filter: blur(6px);
}
.lb__stage {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  touch-action: none;
}
.lb__img {
  max-width: 92vw;
  max-height: 82vh;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 20px 70px rgba(0,0,0,.6);
  transform-origin: center center;
  transition: transform .28s cubic-bezier(.16,1,.3,1);
  user-select: none;
  cursor: grab;
  will-change: transform;
}
.lb__img.no-anim { transition: none; }
.lb__img.is-zoomed { cursor: grab; }
.lb__img.is-panning { cursor: grabbing; }
.lb__spinner {
  position: absolute;
  width: 48px; height: 48px;
  border: 3px solid rgba(255,255,255,.25);
  border-top-color: #fff;
  border-radius: 50%;
  animation: lbspin .8s linear infinite;
}
@keyframes lbspin { to { transform: rotate(360deg); } }
.lb__btn {
  position: absolute;
  z-index: 3;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
  color: #fff;
  backdrop-filter: blur(8px);
  cursor: pointer;
  transition: background .2s ease, transform .2s ease;
}
.lb__btn:hover { background: rgba(255,255,255,.22); }
.lb__close {
  top: 18px; right: 18px;
  width: 46px; height: 46px;
  border-radius: 50%;
  font-size: 1.8rem;
  line-height: 1;
}
.lb__nav {
  top: 50%;
  transform: translateY(-50%);
  width: 54px; height: 54px;
  border-radius: 50%;
  font-size: 2rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lb__nav:hover { transform: translateY(-50%) scale(1.08); }
.lb__prev { left: 20px; }
.lb__next { right: 20px; }
.lb__bar {
  position: absolute;
  z-index: 3;
  left: 0; right: 0; bottom: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 24px;
  background: linear-gradient(0deg, rgba(6,14,24,.75), transparent);
  color: #fff;
}
.lb__caption {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
}
.lb__tools { display: flex; align-items: center; gap: 12px; }
.lb__counter { font-size: .9rem; color: rgba(255,255,255,.7); font-variant-numeric: tabular-nums; }
.lb__zbtn {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
  color: #fff;
  font-size: 1.3rem;
  cursor: pointer;
  transition: background .2s ease;
}
.lb__zbtn:hover { background: rgba(255,255,255,.22); }

/* ═══════════ 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; }
  .nav__logo img { height: 45px; }
  .footer__logo { --logo-h: 50px; }
  .nav__inner { padding: 9px 12px 9px 18px; }
  /* 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__quote { max-width: 300px; }
  .hero-collage__quote p { font-size: .95rem; max-width: 300px; }
  .hero-collage__avatar { width: 150px; height: 150px; border-width: 3px; margin-bottom: 20px; }
  .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; }
}

/* pantallas muy angostas: el logo baja de tamaño en vez de comprimirse */
@media (max-width: 400px) {
  .nav__logo img { height: 38px; }
  .footer__logo { --logo-h: 44px; }
  .nav__inner { padding: 8px 10px 8px 14px; }
}

@media (max-width: 330px) {
  .nav__logo img { height: 32px; }
}

/* ── Recursos / Galería / visor responsive ── */
@media (max-width: 860px) {
  .rec__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .rec__grid { grid-template-columns: 1fr; max-width: 380px; margin-inline: auto; }
}
@media (max-width: 900px) {
  .gal__grid { columns: 3 200px; }
}
@media (max-width: 680px) {
  .gal__grid { columns: 2 140px; column-gap: 12px; }
  .gal__item { margin-bottom: 12px; border-radius: 12px; }
  .gal__item figcaption { font-size: .82rem; padding: 20px 12px 11px; }
  .lb__img { max-width: 96vw; max-height: 74vh; }
  .lb__nav { width: 44px; height: 44px; font-size: 1.6rem; }
  .lb__prev { left: 8px; }
  .lb__next { right: 8px; }
  .lb__close { top: 12px; right: 12px; width: 42px; height: 42px; }
  .lb__bar { padding: 14px 16px; }
  .lb__caption { font-size: .92rem; }
}
