/* =====================================================================
   DESTACA, A.C. — Hoja de estilos del sitio institucional
   ---------------------------------------------------------------------
   1. Tipografia
   2. Tokens y base
   3. Utilidades y componentes comunes
   4. Encabezado y navegacion
   5. Hero
   6. Altas Capacidades
   7. Acompanamiento a familias
   8. Somos DESTACA
   9. Que hacemos
  10. Mentorias
  11. El Destacafe
  12. Impacto, galeria, alianzas y medios
  13. Contacto
  14. Footer
  15. Animaciones y preferencias de movimiento
  ===================================================================== */

/* ------------------------------ 1. Tipografia ---------------------- */
/* Hallandale es la tipografia de la identidad DESTACA. Se usa solo como
   tipografia display (titulares en caja alta). Los archivos web se generan
   con build_fonts.py, que agrega los signos del espanol que la familia
   original no incluia.                                                  */
@font-face {
  font-family: 'Hallandale';
  src: url('../fonts/Hallandale.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Hallandale';
  src: url('../fonts/HallandaleBold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Hallandale';
  src: url('../fonts/HallandaleHeavy.woff2') format('woff2');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

/* ---------------------------- 2. Tokens y base --------------------- */
:root {
  /* Identidad */
  --azul: #04AFF0;
  --azul-texto: #046C93;      /* 5.9:1 sobre blanco */
  --azul-suave: #E8F7FE;
  --negro: #1F1D1E;
  --blanco: #FFFFFF;
  --amarillo: #FCD14F;
  --amarillo-suave: #FFF6DD;

  /* Neutros */
  --texto: #1F1D1E;
  --texto-suave: #56504F;     /* 7.6:1 sobre blanco */
  --gris-fondo: #F6F5F4;
  --gris-borde: #E4E1DE;

  /* Tipografia */
  --display: 'Hallandale', 'Arial Narrow', Impact, system-ui, sans-serif;
  --texto-fuente: system-ui, -apple-system, 'Segoe UI', Inter, Roboto,
                  'Helvetica Neue', Arial, sans-serif;

  /* Medidas */
  --wrap: 1180px;
  --radio: 20px;
  --radio-lg: 28px;
  --header-h: 76px;
  --sombra: 0 1px 2px rgba(31, 29, 30, .05), 0 12px 28px -18px rgba(31, 29, 30, .35);
  --sombra-alta: 0 2px 4px rgba(31, 29, 30, .06), 0 24px 48px -24px rgba(31, 29, 30, .45);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  /* compensa el encabezado fijo al saltar a cada seccion */
  scroll-padding-top: calc(var(--header-h) + 24px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--blanco);
  color: var(--texto);
  font-family: var(--texto-fuente);
  font-size: 1.0625rem;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--azul-texto); }
a:hover { color: var(--negro); }

h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 .5em; }
p { margin: 0 0 1.1em; }
ul, ol { margin: 0; padding: 0; }

:focus-visible {
  outline: 3px solid var(--azul-texto);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 200;
  background: var(--negro);
  color: var(--blanco);
  padding: 12px 18px;
  border-radius: 0 0 12px 12px;
  font-weight: 600;
  text-decoration: none;
  transition: top .2s ease;
}
.skip-link:focus { top: 0; color: var(--blanco); }

/* -------------------- 3. Utilidades y componentes ------------------ */
.wrap {
  width: min(100% - 2.5rem, var(--wrap));
  margin-inline: auto;
}

.section { padding: clamp(4rem, 8vw, 7rem) 0; }
.section-gris { background: var(--gris-fondo); }
.section-yellow { background: var(--amarillo-suave); }
.section-oscura { background: var(--negro); color: #F3F1EF; }

.display {
  font-family: var(--display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .005em;
  line-height: 1.02;
}

.eyebrow {
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--azul-texto);
  margin: 0 0 .9rem;
}
.eyebrow-line { display: inline-flex; align-items: center; gap: .7rem; }
.eyebrow-line::before {
  content: '';
  width: 26px;
  height: 5px;
  border-radius: 3px;
  background: var(--amarillo);
}
.section-oscura .eyebrow { color: var(--azul); }

.section-head { max-width: 46rem; margin-bottom: clamp(2.5rem, 5vw, 3.5rem); }
.section-head h2 { font-size: clamp(2.1rem, 5.2vw, 3.4rem); margin-bottom: .9rem; }
.section-lead {
  font-size: clamp(1.0625rem, 1.6vw, 1.1875rem);
  color: var(--texto-suave);
  margin-bottom: 0;
}
.section-oscura .section-lead { color: #C9C5C2; }

.subhead {
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  margin: clamp(3rem, 6vw, 4.5rem) 0 1.75rem;
}

/* Botones ------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  min-height: 50px;
  padding: .8rem 1.5rem;
  border: 2px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  transition: transform .18s ease, background-color .18s ease,
              border-color .18s ease, color .18s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn[hidden] { display: none; }
.btn-sm { min-height: 42px; padding: .5rem 1.1rem; font-size: .9375rem; }
.btn-block { width: 100%; }

.btn-dark { background: var(--negro); color: var(--blanco); }
.btn-dark:hover { background: #383537; color: var(--blanco); }

.btn-amarillo { background: var(--amarillo); color: var(--negro); }
.btn-amarillo:hover { background: #FFDE7C; color: var(--negro); }

.btn-ghost {
  background: transparent;
  color: var(--negro);
  border-color: var(--negro);
}
.btn-ghost:hover { background: var(--negro); color: var(--blanco); }

.btn-ghost-oscuro { color: #F3F1EF; border-color: #6C6866; }
.btn-ghost-oscuro:hover { background: var(--blanco); color: var(--negro); border-color: var(--blanco); }

.btn-row { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: 1.75rem; }
.btn-row-center { justify-content: center; }

/* Rejillas y tarjetas ------------------------------------------------ */
.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(19rem, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(17.5rem, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(14.5rem, 1fr)); }

.card {
  background: var(--blanco);
  border: 1px solid var(--gris-borde);
  border-radius: var(--radio);
  padding: 1.75rem 1.6rem;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.card h3 { font-size: 1.1875rem; font-weight: 700; }
.card p { color: var(--texto-suave); margin-bottom: 0; font-size: .9875rem; }
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--sombra);
  border-color: #D3CEC9;
}
.card-cta {
  display: inline-block;
  margin-top: 1rem;
  font-weight: 600;
  font-size: .9375rem;
  text-decoration: none;
  border-bottom: 2px solid var(--amarillo);
  padding-bottom: 2px;
}
.card-cta::after { content: ' →'; }

.icon-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin-bottom: 1.1rem;
  border-radius: 15px;
  background: var(--amarillo-suave);
  color: var(--negro);
}
.icon-badge svg {
  width: 27px;
  height: 27px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon-badge-yellow { background: var(--amarillo); }
.icon-badge-blue { background: var(--azul-suave); color: var(--azul-texto); }

/* Notas destacadas --------------------------------------------------- */
.note {
  margin: clamp(2rem, 4vw, 3rem) 0 0;
  padding: 1.5rem 1.6rem;
  border-radius: var(--radio);
  border-left: 6px solid var(--amarillo);
  background: var(--amarillo-suave);
}
.note p { margin: 0; font-size: 1.05rem; }
.note-blue { background: var(--azul-suave); border-left-color: var(--azul); }

.disclaimer {
  margin: 1.25rem 0 0;
  font-size: .875rem;
  color: var(--texto-suave);
}
.fuente {
  margin: 1rem 0 0;
  font-size: .8125rem;
  color: var(--texto-suave);
  max-width: 46rem;
}

/* Cifras -------------------------------------------------------------- */
.stats {
  list-style: none;
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
}
.stats li {
  background: var(--blanco);
  border: 1px solid var(--gris-borde);
  border-radius: var(--radio);
  padding: 1.6rem 1.4rem;
  text-align: center;
}
.stats strong {
  display: block;
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(2.6rem, 6vw, 3.6rem);
  line-height: 1;
  color: var(--negro);
}
.stats strong::after {
  content: '';
  display: block;
  width: 34px;
  height: 5px;
  border-radius: 3px;
  background: var(--amarillo);
  margin: .8rem auto .9rem;
}
.stats span {
  display: block;
  font-size: .9375rem;
  color: var(--texto-suave);
  line-height: 1.45;
}
.section-gris .stats li { background: var(--blanco); }

/* --------------------- 4. Encabezado y navegacion ------------------ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, box-shadow .25s ease;
}
.site-header.is-stuck {
  border-bottom-color: var(--gris-borde);
  box-shadow: 0 8px 24px -20px rgba(31, 29, 30, .8);
}

.header-inner {
  /* altura minima fija: --header-h la mide el script y se usa para el
     desplazamiento de las anclas, asi que no debe realimentar esta regla */
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand { display: inline-flex; align-items: center; flex: 0 0 auto; }
.brand img { width: 168px; height: auto; }

.nav { display: flex; align-items: center; gap: 1.25rem; }
.nav-list {
  display: flex;
  align-items: center;
  gap: .25rem;
  list-style: none;
}
.nav-list a {
  display: inline-block;
  padding: .55rem .6rem;
  border-radius: 10px;
  font-size: .9375rem;
  font-weight: 500;
  color: var(--texto);
  text-decoration: none;
  white-space: nowrap;
  transition: color .18s ease, background-color .18s ease;
}
.nav-list a:hover { background: var(--gris-fondo); }
.nav-list a.is-active {
  color: var(--negro);
  font-weight: 700;
  box-shadow: inset 0 -3px 0 var(--amarillo);
}

.nav-toggle {
  display: none;
  width: 48px;
  height: 48px;
  border: 1px solid var(--gris-borde);
  border-radius: 12px;
  background: var(--blanco);
  cursor: pointer;
}
.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 22px;
  height: 2.5px;
  border-radius: 2px;
  background: var(--negro);
  transition: transform .22s ease, opacity .18s ease;
}
.nav-toggle-bars { margin: 0 auto; position: relative; }
.nav-toggle-bars::before,
.nav-toggle-bars::after { content: ''; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -7px; }
.nav-toggle-bars::after { top: 7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1080px) {
  .brand img { width: 148px; }
  .nav-list a { padding: .55rem .45rem; font-size: .875rem; }
}

@media (max-width: 940px) {
  .nav-toggle { display: block; }
  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 1rem 1.25rem 1.5rem;
    background: var(--blanco);
    border-bottom: 1px solid var(--gris-borde);
    box-shadow: 0 24px 40px -28px rgba(31, 29, 30, .8);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .2s ease, transform .2s ease, visibility .2s;
    max-height: calc(100dvh - var(--header-h));
    overflow-y: auto;
  }
  .nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-list a {
    display: block;
    padding: .95rem .5rem;
    font-size: 1.0625rem;
    border-bottom: 1px solid var(--gris-borde);
    border-radius: 0;
  }
  .nav-list a.is-active { box-shadow: inset 4px 0 0 var(--amarillo); }
  .nav-cta { margin-top: 1.1rem; }
}

/* ------------------------------ 5. Hero ---------------------------- */
.hero {
  position: relative;
  padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(3.5rem, 8vw, 6rem);
  background:
    radial-gradient(60rem 32rem at 88% -12%, rgba(4, 175, 240, .14), transparent 65%),
    radial-gradient(42rem 26rem at -8% 8%, rgba(252, 209, 79, .22), transparent 60%);
}
.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.hero h1 {
  font-size: clamp(2.15rem, 4.4vw, 3.15rem);
  margin-bottom: 1.1rem;
}
.hero-lead {
  font-size: clamp(1.15rem, 2.2vw, 1.4rem);
  font-weight: 600;
  line-height: 1.4;
  max-width: 30rem;
}
.hero-body { color: var(--texto-suave); max-width: 33rem; }

.hero-facts {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  margin-top: 2.25rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--gris-borde);
}
.hero-facts li { flex: 1 1 9rem; max-width: 11rem; }
.hero-facts strong {
  display: block;
  font-family: var(--display);
  font-weight: 900;
  font-size: 1.75rem;
  line-height: 1;
  color: var(--negro);
}
.hero-facts span {
  display: block;
  margin-top: .35rem;
  font-size: .8125rem;
  color: var(--texto-suave);
  line-height: 1.4;
}

.hero-media {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 1rem;
}
.hero-photo {
  margin: 0;
  overflow: hidden;
  border-radius: var(--radio-lg);
  box-shadow: var(--sombra-alta);
  background: var(--gris-fondo);
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-photo-tall { grid-row: span 2; }
.hero-photo-tall img { aspect-ratio: 3 / 4.4; }
.hero-media .hero-photo:not(.hero-photo-tall) img { aspect-ratio: 4 / 3; }

.hero-badge {
  position: absolute;
  left: 50%;
  bottom: -22px;
  transform: translateX(-50%) rotate(-2deg);
  margin: 0;
  padding: .55rem 1.3rem;
  border-radius: 999px;
  background: var(--amarillo);
  box-shadow: var(--sombra);
}
.hero-badge span {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: .02em;
  color: var(--negro);
  white-space: nowrap;
}

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-media { max-width: 32rem; margin-inline: auto; width: 100%; }
  .hero-facts { gap: 1.25rem 1.75rem; }
}
@media (max-width: 520px) {
  .hero-media { grid-template-columns: 1fr 1fr; }
  .hero-photo-tall { grid-column: span 2; grid-row: auto; }
  .hero-photo-tall img { aspect-ratio: 16 / 11; }
}

/* ---------------------- 6. Altas Capacidades ----------------------- */
.cards-aacc .card { background: var(--blanco); }

/* --------------------- 7. Acompanamiento familias ------------------ */
.acompana {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.acompana h2 { font-size: clamp(2rem, 5vw, 3.2rem); }
.acompana p { max-width: 34rem; }
.acompana-list { list-style: none; display: grid; gap: 1rem; }
.acompana-list li {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: var(--blanco);
  border-radius: var(--radio);
  padding: 1.15rem 1.35rem;
  font-size: .9875rem;
  box-shadow: 0 1px 2px rgba(31, 29, 30, .04);
}
.acompana-list span {
  font-family: var(--display);
  font-weight: 900;
  font-size: 1.1rem;
  color: var(--azul-texto);
  flex: 0 0 auto;
  line-height: 1.5;
}
@media (max-width: 860px) { .acompana { grid-template-columns: 1fr; } }

/* -------------------------- 8. Somos DESTACA ----------------------- */
.historia {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, .65fr);
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: start;
}
.timeline { list-style: none; display: grid; gap: 1.75rem; }
.timeline li {
  position: relative;
  padding-left: 4.75rem;
}
.timeline li::before {
  content: '';
  position: absolute;
  left: 1.35rem;
  top: 2.6rem;
  bottom: -1.75rem;
  width: 2px;
  background: var(--gris-borde);
}
.timeline li:last-child::before { display: none; }
.timeline-year {
  position: absolute;
  left: 0;
  top: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 3.4rem;
  height: 2.2rem;
  padding: 0 .4rem;
  border-radius: 999px;
  background: var(--amarillo);
  font-family: var(--display);
  font-weight: 900;
  font-size: .95rem;
  color: var(--negro);
}
.timeline h3 { font-size: 1.2rem; }
.timeline p { color: var(--texto-suave); margin-bottom: 0; font-size: .9875rem; }

.historia-foto { margin: 0; }
.historia-foto img {
  width: 100%;
  border-radius: var(--radio-lg);
  box-shadow: var(--sombra);
  aspect-ratio: 3 / 4;
  object-fit: cover;
}
.historia-foto figcaption {
  margin-top: .7rem;
  font-size: .8125rem;
  color: var(--texto-suave);
  text-align: center;
}
@media (max-width: 860px) {
  .historia { grid-template-columns: 1fr; }
  .historia-foto { max-width: 22rem; margin-inline: auto; }
}

.mv { margin-top: clamp(3rem, 6vw, 4.5rem); }
.panel {
  border-radius: var(--radio-lg);
  padding: clamp(1.75rem, 3.5vw, 2.5rem);
}
.panel p { margin-bottom: 0; }
.panel-title { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: .7rem; }
.panel-dark { background: var(--negro); color: #EFEDEB; }
.panel-dark .panel-title { color: var(--amarillo); }
.panel-blue { background: var(--azul); color: var(--negro); }

.valores {
  list-style: none;
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
}
.valores h4 { font-size: 1.0625rem; margin-bottom: .35rem; }
.valores p { font-size: .9375rem; color: var(--texto-suave); margin-bottom: 0; }

.lema-inline {
  margin: clamp(2.5rem, 5vw, 3.5rem) 0 0;
  text-align: center;
}
.lema-inline span {
  display: inline-block;
  padding: .5rem 1.6rem;
  border-radius: 999px;
  background: var(--negro);
  color: var(--amarillo);
  font-weight: 700;
  font-size: clamp(1.3rem, 3.5vw, 1.9rem);
}

.consejo {
  list-style: none;
  display: grid;
  gap: 1.75rem;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
}
.consejo-card { text-align: center; }
.consejo-card img {
  width: 148px;
  height: 148px;
  margin: 0 auto .95rem;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 5px var(--blanco), 0 0 0 8px var(--amarillo);
}
.consejo-card h4 { font-size: 1.0625rem; margin-bottom: .2rem; }
.consejo-cargo {
  margin: 0 0 .6rem;
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--azul-texto);
}
.consejo-bio {
  font-size: .9rem;
  color: var(--texto-suave);
  margin-bottom: 0;
  max-width: 20rem;
  margin-inline: auto;
}

/* --------------------------- 9. Que hacemos ------------------------ */
.cards-hacemos .card { background: var(--blanco); }

/* --------------------------- 10. Mentorias ------------------------- */
.mentorias-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr);
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: start;
}
.mentorias-text p { color: var(--texto-suave); }
.mentorias-text .note p { color: var(--texto); }
.mentorias-lista {
  list-style: none;
  display: grid;
  gap: .1rem;
  background: var(--gris-fondo);
  border-radius: var(--radio-lg);
  padding: 1.5rem;
}
.mentorias-lista li {
  display: flex;
  gap: .85rem;
  align-items: flex-start;
  padding: .7rem .25rem;
  font-size: .9875rem;
  border-bottom: 1px solid var(--gris-borde);
}
.mentorias-lista li:last-child { border-bottom: none; }
.mentorias-lista li::before {
  content: '';
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin-top: .28rem;
  border-radius: 6px;
  background: var(--amarillo);
  box-shadow: inset 0 0 0 4px var(--gris-fondo);
}
@media (max-width: 860px) { .mentorias-grid { grid-template-columns: 1fr; } }

.stats-mentorias li { background: var(--gris-fondo); border-color: transparent; }

.mentores-cta {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: clamp(1.75rem, 4vw, 3rem);
  align-items: center;
  margin-top: clamp(3rem, 6vw, 4.5rem);
  padding: clamp(1.75rem, 4vw, 3rem);
  border-radius: var(--radio-lg);
  background: var(--azul-suave);
}
.mentores-cta h3 { font-size: clamp(1.5rem, 3.4vw, 2.15rem); }
.mentores-cta p { color: var(--texto-suave); margin-bottom: 0; }
.mentores-foto { margin: 0; }
.mentores-foto img {
  width: 100%;
  border-radius: var(--radio);
  aspect-ratio: 4 / 3;
  object-fit: cover;
  box-shadow: var(--sombra);
}
@media (max-width: 860px) { .mentores-cta { grid-template-columns: 1fr; } }

/* -------------------------- 11. El Destacafe ----------------------- */
.videos {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
@media (max-width: 900px) {
  .videos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .videos > *:first-child:nth-last-child(3) { grid-column: span 2; }
}
@media (max-width: 600px) { .videos { grid-template-columns: 1fr; }
  .videos > *:first-child:nth-last-child(3) { grid-column: auto; } }

.video-card {
  display: flex;
  flex-direction: column;
  background: #2B2829;
  border: 1px solid #3B3739;
  border-radius: var(--radio);
  overflow: hidden;
}
.video-thumb {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: #000;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  cursor: pointer;
}
/* la miniatura se posiciona en absoluto para que el boton respete 16:9
   (el contenido de un <button> impone una altura minima automatica) */
.video-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.video-thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(31, 29, 30, .18);
  transition: background .2s ease;
}
.video-thumb:hover::after { background: rgba(31, 29, 30, .05); }
.video-play {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: var(--amarillo);
  box-shadow: 0 10px 24px -10px rgba(0, 0, 0, .8);
  transition: transform .2s ease;
}
.video-thumb:hover .video-play { transform: translate(-50%, -50%) scale(1.07); }
.video-play svg { width: 24px; height: 24px; fill: var(--negro); margin-left: 3px; }
.video-card iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; display: block; }
.video-body { padding: 1.15rem 1.25rem 1.35rem; }
.video-body h3 { font-size: 1.0625rem; margin-bottom: .45rem; color: #F7F5F3; }
.video-fecha { margin: 0 0 .8rem; font-size: .8125rem; color: #A9A4A1; }
.video-link {
  font-size: .875rem;
  font-weight: 600;
  color: var(--azul);
  text-decoration: none;
}
.video-link:hover { color: var(--amarillo); }

.videos-cargando,
.videos-fallback {
  grid-column: 1 / -1;
  text-align: center;
  padding: clamp(2rem, 5vw, 3.25rem) 1.5rem;
  border: 1px dashed #4A4547;
  border-radius: var(--radio-lg);
  color: #C9C5C2;
}
.videos-fallback h3 {
  font-family: var(--display);
  text-transform: uppercase;
  font-size: clamp(1.3rem, 3vw, 1.75rem);
  color: #F7F5F3;
}
.videos-fallback p { margin-bottom: 0; }
.videos-cargando p { margin: .9rem 0 0; font-size: .9375rem; }
.spinner {
  display: inline-block;
  width: 26px;
  height: 26px;
  border: 3px solid #4A4547;
  border-top-color: var(--azul);
  border-radius: 50%;
  animation: girar .9s linear infinite;
}
@keyframes girar { to { transform: rotate(360deg); } }

.destacafe-links {
  display: flex;
  flex-wrap: wrap;
  gap: .85rem;
  justify-content: center;
  margin-top: clamp(2rem, 4vw, 2.75rem);
}
.spotify-embed {
  max-width: 46rem;
  margin: clamp(2.5rem, 5vw, 3.5rem) auto 0;
  text-align: center;
}
.spotify-titulo {
  font-size: clamp(1.2rem, 2.6vw, 1.5rem);
  color: #F7F5F3;
  margin-bottom: 1.1rem;
}
.spotify-embed iframe { width: 100%; border: 0; border-radius: 14px; }

/* ---------------- 12. Impacto, galeria, alianzas, medios ------------ */
.logros { align-items: stretch; }
.logro {
  display: flex;
  flex-direction: column;
  background: var(--blanco);
  border: 1px solid var(--gris-borde);
  border-radius: var(--radio);
  overflow: hidden;
}
.logro img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.logro-body { padding: 1.4rem 1.4rem 1.6rem; }
.logro-fecha {
  margin: 0 0 .4rem;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--azul-texto);
}
.logro h4 { font-size: 1.125rem; margin-bottom: .5rem; }
.logro p { font-size: .9375rem; color: var(--texto-suave); margin-bottom: 0; }

.hitos {
  list-style: none;
  display: grid;
  gap: 0;
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  border-top: 1px solid var(--gris-borde);
}
.hitos li {
  display: grid;
  grid-template-columns: 6.5rem minmax(0, 1fr);
  gap: 1.5rem;
  padding: 1.4rem 0;
  border-bottom: 1px solid var(--gris-borde);
}
.hito-anio {
  font-family: var(--display);
  font-weight: 900;
  font-size: 1.5rem;
  color: var(--negro);
  position: relative;
}
.hito-anio::after {
  content: '';
  display: block;
  width: 28px;
  height: 5px;
  border-radius: 3px;
  background: var(--azul);
  margin-top: .45rem;
}
.hitos p { margin: 0; color: var(--texto-suave); font-size: .9875rem; }
@media (max-width: 640px) {
  .hitos li { grid-template-columns: 1fr; gap: .5rem; }
  .hito-anio::after { display: none; }
}

.galeria {
  list-style: none;
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
@media (max-width: 860px) { .galeria { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .galeria { grid-template-columns: 1fr; } }
.galeria figure {
  margin: 0;
  position: relative;
  border-radius: var(--radio);
  overflow: hidden;
  background: var(--gris-fondo);
}
.galeria img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform .4s ease;
}
.galeria figure:hover img { transform: scale(1.04); }
.galeria figcaption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 1.9rem .9rem .8rem;
  font-size: .8125rem;
  font-weight: 600;
  color: var(--blanco);
  background: linear-gradient(to top, rgba(31, 29, 30, .88), transparent);
}

.alianzas-intro { max-width: 46rem; color: var(--texto-suave); }
.alianzas {
  list-style: none;
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
}
.alianzas li {
  border: 1px solid var(--gris-borde);
  border-left: 5px solid var(--azul);
  border-radius: 14px;
  padding: 1.1rem 1.25rem;
  background: var(--blanco);
}
.alianzas strong { display: block; font-size: 1rem; margin-bottom: .25rem; }
.alianzas span { font-size: .875rem; color: var(--texto-suave); }

.medios { list-style: none; display: grid; gap: .75rem; }
.medios a {
  display: grid;
  grid-template-columns: minmax(9rem, .28fr) minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: baseline;
  padding: 1.1rem 1.25rem;
  border: 1px solid var(--gris-borde);
  border-radius: 14px;
  background: var(--blanco);
  text-decoration: none;
  color: var(--texto);
  transition: border-color .2s ease, transform .2s ease;
}
.medios a:hover { border-color: var(--negro); transform: translateX(3px); }
.medio-nombre { font-weight: 700; font-size: .875rem; color: var(--azul-texto); }
.medio-titulo { font-size: .9375rem; }
.medio-fecha { font-size: .8125rem; color: var(--texto-suave); white-space: nowrap; }
@media (max-width: 720px) {
  .medios a { grid-template-columns: 1fr; gap: .3rem; }
}

/* --------------------------- 13. Contacto -------------------------- */
.contacto {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.contacto h2 { font-size: clamp(2rem, 5vw, 3.1rem); }
.contacto-mail {
  margin-top: 1.75rem;
  font-size: .9375rem;
  color: var(--texto-suave);
}
.contacto-mail span { display: block; }
.contacto-mail a { font-size: 1.125rem; font-weight: 700; }

.aviso {
  display: flex;
  gap: .9rem;
  align-items: flex-start;
  margin-top: 1.75rem;
  padding: 1.15rem 1.25rem;
  border-radius: var(--radio);
  background: var(--amarillo-suave);
  border: 1px solid #F3DFA8;
}
.aviso p { margin: 0; font-size: .875rem; }
.aviso-icono { flex: 0 0 auto; color: var(--negro); }
.aviso-icono svg {
  width: 26px; height: 26px; fill: none; stroke: currentColor;
  stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
}

.form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem;
  background: var(--blanco);
  border: 1px solid var(--gris-borde);
  border-radius: var(--radio-lg);
  padding: clamp(1.5rem, 3.5vw, 2.25rem);
}
.campo { display: flex; flex-direction: column; gap: .4rem; }
.campo-ancho { grid-column: 1 / -1; }
.form label { font-size: .875rem; font-weight: 600; }
.opcional { font-weight: 400; color: var(--texto-suave); }
.req { color: var(--azul-texto); }

.form input[type="text"],
.form input[type="email"],
.form input[type="tel"],
.form select,
.form textarea {
  width: 100%;
  min-height: 50px;
  padding: .7rem .85rem;
  font: inherit;
  font-size: 1rem;
  color: var(--texto);
  background: var(--blanco);
  border: 1.5px solid var(--gris-borde);
  border-radius: 12px;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.form textarea { min-height: 120px; resize: vertical; line-height: 1.55; }
.form select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%231F1D1E' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M5 8l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .85rem center;
  background-size: 18px;
  padding-right: 2.5rem;
}
.form input:focus,
.form select:focus,
.form textarea:focus {
  border-color: var(--azul-texto);
  box-shadow: 0 0 0 3px rgba(4, 175, 240, .22);
  outline: none;
}
.form :invalid.is-error,
.form .is-error { border-color: #B3261E; }

.campo-check {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: .1rem .7rem;
  align-items: start;
}
.campo-check input {
  width: 22px;
  height: 22px;
  margin-top: .15rem;
  accent-color: var(--negro);
}
.campo-check label { font-weight: 400; font-size: .875rem; line-height: 1.5; }
.campo-check .error { grid-column: 2; }

.error { margin: 0; font-size: .8125rem; color: #B3261E; font-weight: 600; }
.form-nota { margin: .8rem 0 0; font-size: .8125rem; color: var(--texto-suave); text-align: center; }

.form-estado {
  grid-column: 1 / -1;
  margin: 0;
  padding: 1.1rem 1.25rem;
  border-radius: 14px;
  font-size: .9375rem;
}
.form-estado.ok { background: var(--azul-suave); border: 1px solid #A9E2F8; }
.form-estado.aviso { background: var(--amarillo-suave); border: 1px solid #F3DFA8; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

@media (max-width: 860px) {
  .contacto { grid-template-columns: 1fr; }
  .form { grid-template-columns: 1fr; }
}

/* ---------------------------- 14. Footer --------------------------- */
.site-footer {
  background: var(--negro);
  color: #D6D2CF;
  padding: clamp(3rem, 6vw, 4.5rem) 0 2rem;
}
.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .95fr) minmax(0, .9fr);
  gap: clamp(2rem, 5vw, 3.5rem);
}
.footer-logo {
  display: inline-block;
  background: var(--blanco);
  border-radius: 14px;
  padding: .85rem 1.1rem;
}
.footer-logo img { width: 176px; }
.footer-nombre { margin: 1.1rem 0 .4rem; font-size: .9375rem; }
.footer-lema {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--amarillo);
}
.site-footer h2 {
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--azul);
  margin-bottom: 1rem;
}
.footer-nav ul { list-style: none; display: grid; gap: .55rem; }
.site-footer a { color: #E9E6E3; text-decoration: none; }
.site-footer a:hover { color: var(--amarillo); text-decoration: underline; }
.footer-contacto p { margin: 0 0 .5rem; font-size: .9375rem; }
.footer-lugar { color: #A9A4A1; }
.footer-redes-titulo { margin-top: 1.75rem; }

.redes { list-style: none; display: flex; flex-wrap: wrap; gap: .6rem; }
.redes a {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #2E2A2C;
  color: #E9E6E3;
  transition: background-color .18s ease, color .18s ease, transform .18s ease;
}
.redes a:hover { background: var(--amarillo); color: var(--negro); transform: translateY(-2px); }
.redes svg { width: 21px; height: 21px; fill: currentColor; }

.footer-legal {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  padding-top: 1.5rem;
  border-top: 1px solid #3A3638;
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 2rem;
  justify-content: space-between;
}
.footer-legal p { margin: 0; font-size: .8125rem; color: #A9A4A1; }
/* Credito de autoria. Va sin subrayado tambien al pasar el cursor, asi que
   se escribe bajo .site-footer para ganarle a la regla general de enlaces. */
.site-footer .credito-jdrmz {
  font-weight: 700;
  color: #E9E6E3;
  text-decoration: none;
}
.site-footer .credito-jdrmz:hover,
.site-footer .credito-jdrmz:focus-visible {
  color: var(--amarillo);
  text-decoration: none;
}

@media (max-width: 860px) {
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-marca { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .footer-inner { grid-template-columns: 1fr; }
}

/* ------------- 15. Animaciones y preferencias de movimiento -------- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .6s ease, transform .6s ease;
  will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .btn:hover, .card:hover, .galeria figure:hover img { transform: none; }
}
