/* ==========================================================================
   Gestión  (/gestion)  — `molina.gestion`
   --------------------------------------------------------------------------
   La vista ejecutiva de la gestión: hero azul marino con el retrato, los
   cuatro ejes, la línea de hitos, los resultados en perspectiva (con una
   curva al alza) y los logros destacados. Reutiliza los tokens --sh- de la
   hoja de «Sobre Henry» (024); solo añade lo propio.
   ========================================================================== */

/* --- Hero azul ------------------------------------------------------------- */
.ge-hero {
  background: linear-gradient(135deg, #16284c 0%, var(--sh-tinta) 55%, #24396a 100%);
  color: #fff;
}
.ge-hero {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  max-width: var(--ancho);
  margin: 0 auto;
  padding: clamp(44px, 6vw, 92px) 24px;
}

.ge-antetitulo {
  margin: 0 0 18px;
  font-family: var(--texto);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--sh-oro);
}
.ge-titulo {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(32px, 4.4vw, 52px);
  line-height: 1.07;
  color: #fff;
}
.ge-intro {
  margin: 24px 0 0;
  max-width: 32em;
  font-family: var(--texto);
  font-size: clamp(16px, 1.3vw, 18px);
  line-height: 1.7;
  color: rgba(255, 255, 255, .82);
}

.ge-hero-retrato { margin: 0; }
.ge-hero-retrato img {
  width: 100%;
  aspect-ratio: 5 / 4;
  object-fit: cover;
  object-position: top center;
  border-radius: 8px;
  box-shadow: 0 30px 60px -32px rgba(0, 0, 0, .6);
}

/* --- Cuerpo crema ---------------------------------------------------------- */
.ge-cuerpo { background: var(--sh-crema); }

.ge-seccion-titulo {
  position: relative;
  font-family: var(--display);
  font-weight: 400;
  color: var(--sh-tinta);
  font-size: clamp(24px, 2.2vw, 31px);
  line-height: 1.1;
  padding-top: 20px;
  margin: 0 0 32px;
}
.ge-seccion-titulo::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 44px; height: 3px;
  background: var(--sh-oro);
  border-radius: 2px;
}

/* Cuatro ejes */
.ge-ejes {
  max-width: var(--ancho);
  margin: 0 auto;
  padding: clamp(44px, 6vw, 84px) 24px clamp(12px, 2vw, 24px);
}
.ge-ejes-rejilla {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(22px, 2.6vw, 40px);
}
.ge-eje { }
.ge-eje-icono {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px; height: 52px;
  margin-bottom: 18px;
  border-radius: 12px;
  background: rgba(176, 137, 60, .12);
  color: var(--sh-oro);
}
.ge-eje-icono svg { width: 26px; height: 26px; }
.ge-eje h3 {
  font-family: var(--texto);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0;
  line-height: 1.25;
  color: var(--sh-tinta);
  margin-bottom: 9px;
}
.ge-eje p {
  font-family: var(--texto);
  font-size: 15px;
  line-height: 1.6;
  color: var(--sh-texto);
}

/* Medio: hitos + resultados */
.ge-medio {
  max-width: var(--ancho);
  margin: 0 auto;
  padding: clamp(36px, 5vw, 72px) 24px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(32px, 4vw, 64px);
  align-items: start;
}

/* Línea de hitos horizontal */
.ge-linea {
  display: flex;
  margin: 0;
  padding: 0;
}
.ge-hito {
  position: relative;
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 6px;
}
.ge-hito::before {          /* el tramo de línea hasta el siguiente año */
  content: "";
  position: absolute;
  top: 37px;
  left: 50%;
  width: 100%;
  height: 2px;
  background: var(--sh-borde);
  z-index: 0;
}
.ge-hito:last-child::before { display: none; }

.ge-hito-anio {
  height: 24px;
  line-height: 24px;
  font-family: var(--texto);
  font-weight: 800;
  font-size: 18px;
  color: var(--sh-oro);
}
.ge-hito-punto {
  width: 14px; height: 14px;
  margin: 6px 0 14px;
  border-radius: 50%;
  background: var(--sh-oro);
  box-shadow: 0 0 0 4px var(--sh-crema);
  z-index: 1;
}
.ge-hito-texto {
  font-family: var(--texto);
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--sh-texto);
}

/* Resultados en perspectiva: panel con cifras y curva */
.ge-resultados {
  background: #fff;
  border: 1px solid var(--sh-borde);
  border-radius: 14px;
  padding: clamp(24px, 2.6vw, 34px);
  box-shadow: 0 24px 50px -40px rgba(30, 50, 92, .4);
}
.ge-resultados .ge-seccion-titulo { margin-bottom: 24px; }
.ge-cifras {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 26px;
}
.ge-cifra { display: flex; flex-direction: column; gap: 6px; }
.ge-cifra strong {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(26px, 2.6vw, 34px);
  line-height: 1;
  color: var(--sh-tinta);
}
.ge-cifra span {
  font-family: var(--texto);
  font-size: 12.5px;
  line-height: 1.4;
  color: var(--sh-texto);
}
.ge-grafica {
  width: 100%;
  height: 92px;
  display: block;
  overflow: visible;
}

/* Logros destacados */
.ge-logros {
  max-width: var(--ancho);
  margin: 0 auto;
  padding: clamp(24px, 3vw, 40px) 24px clamp(56px, 7vw, 96px);
}
.ge-logros-rejilla {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(22px, 2.6vw, 36px);
}
.ge-logro {
  background: #fff;
  border: 1px solid var(--sh-borde);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 24px 50px -42px rgba(30, 50, 92, .4);
  transition: transform .25s, box-shadow .25s;
}
.ge-logro:hover {
  transform: translateY(-3px);
  box-shadow: 0 30px 56px -36px rgba(30, 50, 92, .5);
}
.ge-logro-foto { aspect-ratio: 16 / 10; overflow: hidden; }
.ge-logro-foto img { width: 100%; height: 100%; object-fit: cover; }
.ge-logro-texto { padding: 22px 24px 26px; }
.ge-logro-texto h3 {
  font-family: var(--display);
  font-weight: 400;
  font-size: 21px;
  line-height: 1.15;
  color: var(--sh-tinta);
  margin-bottom: 10px;
}
.ge-logro-texto p {
  font-family: var(--texto);
  font-size: 15px;
  line-height: 1.6;
  color: var(--sh-texto);
}

.ge-boton { margin-top: clamp(32px, 4vw, 48px); }

/* --- Adaptación ------------------------------------------------------------ */
@media (max-width: 900px) {
  .ge-hero { grid-template-columns: 1fr; }
  .ge-hero-retrato { order: -1; max-width: 420px; }
  .ge-ejes-rejilla { grid-template-columns: repeat(2, 1fr); }
  .ge-medio { grid-template-columns: 1fr; }
  .ge-logros-rejilla { grid-template-columns: 1fr; gap: 24px; }
}

@media (max-width: 560px) {
  .ge-ejes-rejilla { grid-template-columns: 1fr; }
  /* La línea de hitos pasa a lista vertical */
  .ge-linea { flex-direction: column; gap: 16px; }
  .ge-hito {
    flex-direction: row;
    align-items: baseline;
    text-align: left;
    gap: 12px;
    padding: 0;
  }
  .ge-hito::before { display: none; }
  .ge-hito-punto { display: none; }
  .ge-hito-anio { height: auto; line-height: 1.2; flex: 0 0 auto; }
}
