/* ===========================================================
   Landing del HITO — primera planta de biogás del país operada por IA

   Tipografías: las MISMAS que el resto del sitio.
     h1 y números .... Syne 700, ls -.03em
     h2 y h3 ......... Raleway 500, ls -.03em
     kicker .......... Open Sans 800, ls 1.2px
     lead y botones .. Figtree 500 / 700
     párrafos ........ Open Sans 400
   Ritmo de fondos: oscuro (hero, números) → claro (relato, modelo) →
   oscuro (dashboard, cierre), para no cansar la vista.
   =========================================================== */

.hito-page {
  --hito-navy: #071b30;
  --hito-navy-2: #0a2338;
  --hito-cyan: #26d7e8;
  --hito-blue: #009cea;
  --hito-ink: #eaf2fa;
  --hito-muted: #a8bdd2;

  /* secciones claras: paleta del sitio */
  --hito-surface: #f5f8fb;
  --hito-surface-2: #ffffff;
  --hito-ink-dark: #142334;
  --hito-muted-dark: #5c6b7a;
  --hito-border: #dce6ef;

  background: var(--hito-surface);
  color: var(--hito-ink-dark);
}

.hito-page section {
  padding: clamp(56px, 6.5vw, 96px) 0;
}

.hito-wrap {
  width: min(1240px, 92vw);
  margin: 0 auto;
}

/* ---------- kicker ---------- */
.hito-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: "Open Sans", sans-serif;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--hito-blue);
  margin-bottom: 16px;
}

.hito-kicker::before {
  content: "";
  width: 34px;
  height: 2px;
  background: currentColor;
}

.hito-dark .hito-kicker {
  color: var(--hito-cyan);
}

/* ---------- títulos ---------- */
.hito-hero h1 {
  font-family: "Syne", sans-serif;
  font-weight: 700;
  font-size: clamp(30px, 3vw, 46px);
  line-height: 1.14;
  letter-spacing: -.03em;
  color: #fff;
  margin: 0 0 20px;
  text-wrap: balance;
}

.hito-hero h1 em {
  font-style: normal;
  color: var(--hito-cyan);
}

.hito-page h2 {
  font-family: "Raleway", sans-serif;
  font-weight: 500;
  font-size: clamp(25px, 2.6vw, 38px);
  line-height: 1.22;
  letter-spacing: -.03em;
  color: var(--hito-ink-dark);
  margin: 0 0 20px;
}

.hito-dark h2 {
  color: #fff;
}

/* ---------- cuerpo ---------- */
.hito-page p {
  font-family: "Open Sans", sans-serif;
  font-weight: 400;
  font-size: 16.96px;
  line-height: 1.72;
  color: var(--hito-muted-dark);
  margin: 0 0 16px;
}

.hito-dark p {
  color: #c3d5e6;
}

.hito-page p strong {
  font-weight: 700;
  color: var(--hito-ink-dark);
}

.hito-dark p strong {
  color: #fff;
}

/* la especificidad tiene que superar a `.hito-page p` */
.hito-page p.hito-lead {
  font-family: "Figtree", sans-serif;
  font-weight: 500;
  font-size: clamp(16.5px, 1.32vw, 18.88px) !important;
  line-height: 1.62;
  color: #b7cade !important;
  max-width: 54ch;
  margin: 0 0 26px;
}

/* ---------- HERO ---------- */
.hito-hero {
  position: relative;
  padding-top: clamp(112px, 12vw, 152px) !important;
  background:
    radial-gradient(1100px 620px at 76% 6%, rgba(0, 156, 234, .3), transparent 62%),
    linear-gradient(168deg, #0c2c49 0%, #08203a 55%, #071b30 100%);
  overflow: hidden;
}

.hito-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr);
  gap: clamp(32px, 3.4vw, 56px);
  align-items: center;
}

.hito-stamp {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-bottom: 24px;
  font-family: "Figtree", sans-serif;
  font-size: 14px;
  color: #d3e3f2;
}

.hito-stamp span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hito-stamp i {
  color: var(--hito-cyan);
  font-size: 16px;
}

/* video */
.hito-video-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(38, 215, 232, .3);
  box-shadow: 0 30px 70px rgba(0, 0, 0, .45);
  background: #04101e;
}

.hito-video-card video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.hito-video-note {
  margin-top: 12px;
  font-size: 13px !important;
  color: #96aec5 !important;
  text-align: center;
}

/* aviso discreto de sonido, arriba a la derecha del video */
.hito-sound-hint {
  position: absolute;
  top: 14px;
  right: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 15px;
  border: 1px solid rgba(38, 215, 232, .55);
  border-radius: 999px;
  background: rgba(4, 16, 32, .74);
  color: #eaf2fa;
  font-family: "Figtree", sans-serif;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: opacity .35s ease, background .2s ease;
  z-index: 3;
}

.hito-sound-hint i {
  font-size: 15px;
  color: var(--hito-cyan);
}

.hito-sound-hint:hover {
  background: rgba(0, 156, 234, .9);
}

.hito-video-card.sound-on .hito-sound-hint {
  opacity: 0;
  pointer-events: none;
}

/* ---------- botones ---------- */
.hito-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hito-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 14px 26px;
  border-radius: 999px;
  font-family: "Figtree", sans-serif;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: .3px;
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.hito-btn-primary {
  background: linear-gradient(120deg, var(--hito-blue), var(--hito-cyan));
  color: #04121f;
  box-shadow: 0 14px 30px rgba(0, 156, 234, .3);
}

.hito-btn-primary:hover {
  transform: translateY(-2px);
  color: #04121f;
  box-shadow: 0 18px 38px rgba(0, 156, 234, .45);
}

.hito-btn-ghost {
  border: 1px solid rgba(159, 178, 198, .5);
  color: var(--hito-ink);
}

.hito-btn-ghost:hover {
  border-color: var(--hito-cyan);
  color: var(--hito-cyan);
  transform: translateY(-2px);
}

.hito-light .hito-btn-ghost {
  border-color: var(--hito-border);
  color: var(--hito-ink-dark);
}

.hito-light .hito-btn-ghost:hover {
  border-color: var(--hito-blue);
  color: var(--hito-blue);
}

/* ---------- NÚMEROS ---------- */
.hito-numbers {
  background: linear-gradient(180deg, #0a2338, #071b30);
  padding: clamp(38px, 4.2vw, 60px) 0 !important;
}

.hito-numbers-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 48px);
  text-align: center;
  align-items: start;
}

/* solo el hijo directo es el numero grande: el <strong> del pie de cifra
   (la equivalencia en MWh) tiene que quedar en tamaño de texto */
.hito-num > strong {
  display: block;
  font-family: "Syne", sans-serif;
  font-weight: 700;
  font-size: clamp(34px, 4vw, 56px);
  line-height: 1;
  letter-spacing: -.03em;
  white-space: nowrap;
  color: #fff;
}

.hito-num > strong em {
  font-style: normal;
  color: var(--hito-cyan);
}

.hito-num span {
  display: block;
  margin-top: 12px;
  font-family: "Open Sans", sans-serif;
  font-size: 14.4px;
  line-height: 1.55;
  color: #a8bdd2;
}

.hito-num span strong {
  display: inline;
  font-family: "Open Sans", sans-serif;
  font-size: 14.4px;
  font-weight: 700;
  letter-spacing: normal;
  white-space: nowrap;
  color: #dcebf8;
}

/* ---------- secciones claras / oscuras ---------- */
.hito-light {
  background: var(--hito-surface);
}

.hito-light.hito-alt {
  background: var(--hito-surface-2);
  border-top: 1px solid var(--hito-border);
  border-bottom: 1px solid var(--hito-border);
}

.hito-dark {
  background: linear-gradient(180deg, #071b30, #0a2338);
}

/* ---------- RELATO + FOTO ---------- */
.hito-story-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(32px, 4vw, 68px);
  align-items: center;
}

.hito-photo {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--hito-border);
  box-shadow: 0 18px 44px rgba(20, 35, 52, .16);
  background: #fff;
}

.hito-photo img {
  display: block;
  width: 100%;
  height: auto;
}

.hito-photo figcaption {
  padding: 14px 18px;
  font-family: "Open Sans", sans-serif;
  font-size: 13px;
  line-height: 1.5;
  color: var(--hito-muted-dark);
  background: #fff;
  border-top: 1px solid var(--hito-border);
}

/* ---------- CARDS DEL MODELO ---------- */
.hito-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(258px, 1fr));
  gap: 20px;
  margin-top: 34px;
}

.hito-card {
  background: #fff;
  border: 1px solid var(--hito-border);
  border-radius: 14px;
  padding: 26px 24px;
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}

.hito-card:hover {
  border-color: rgba(0, 156, 234, .55);
  transform: translateY(-3px);
  box-shadow: 0 16px 34px rgba(20, 35, 52, .12);
}

.hito-card i {
  font-size: 26px;
  color: var(--hito-blue);
  display: block;
  margin-bottom: 14px;
}

.hito-card h3 {
  font-family: "Raleway", sans-serif;
  font-size: 17.92px;
  font-weight: 500;
  color: var(--hito-ink-dark);
  margin: 0 0 10px;
}

.hito-card p {
  font-size: 14.4px !important;
  line-height: 1.62;
  color: var(--hito-muted-dark) !important;
  margin: 0;
}

/* ---------- CONTRASTE: lo que no es / lo que sí es ---------- */
.hito-contrast {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 20px;
  margin-top: 22px;
}

.hito-contrast-col {
  border-radius: 14px;
  padding: 26px 26px 24px;
  border: 1px solid var(--hito-border);
  background: #fff;
}

.hito-contrast-no {
  border-left: 3px solid #c2ceda;
  background: #eef2f7;
}

.hito-contrast-si {
  border-left: 3px solid var(--hito-blue);
  background: linear-gradient(150deg, rgba(0, 156, 234, .07), #fff 65%);
}

.hito-contrast-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: "Open Sans", sans-serif;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  margin-bottom: 15px;
}

.hito-contrast-no .hito-contrast-tag {
  color: #7d8c9b;
}

.hito-contrast-si .hito-contrast-tag {
  color: var(--hito-blue);
}

.hito-contrast-tag i {
  font-size: 15px;
}

.hito-contrast-col ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.hito-contrast-col li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 11px;
  font-family: "Open Sans", sans-serif;
  font-size: 14.4px;
  line-height: 1.6;
  color: var(--hito-muted-dark);
}

.hito-contrast-col li:last-child {
  margin-bottom: 0;
}

.hito-contrast-col li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #c2ceda;
}

.hito-contrast-si li::before {
  background: var(--hito-blue);
}

/* ---------- DASHBOARD EN VIVO ---------- */
.hito-live-frame {
  position: relative;
  margin-top: 32px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(38, 215, 232, .3);
  box-shadow: 0 26px 60px rgba(0, 0, 0, .4);
  aspect-ratio: 16 / 9;
  background: #041020;
}

.hito-live-fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.hito-live-frame iframe {
  position: relative;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  opacity: 0;
  transition: opacity .5s ease;
}

.hito-live-frame.is-live iframe {
  opacity: 1;
}

.hito-live-frame.is-static iframe,
.hito-live-frame.is-static .hito-live-badge {
  display: none;
}

.hito-live-frame .hito-live-shield {
  position: absolute;
  inset: 0;
  background: transparent;
}

.hito-live-badge {
  position: absolute;
  right: 16px;
  bottom: 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(4, 16, 32, .82);
  border: 1px solid rgba(38, 215, 232, .5);
  font-family: "Figtree", sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--hito-cyan);
  backdrop-filter: blur(6px);
}

.hito-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #35ff9b;
  box-shadow: 0 0 0 0 rgba(53, 255, 155, .7);
  animation: hitoPulse 1.8s infinite;
}

@keyframes hitoPulse {
  70%  { box-shadow: 0 0 0 9px rgba(53, 255, 155, 0); }
  100% { box-shadow: 0 0 0 0 rgba(53, 255, 155, 0); }
}

/* ---------- CIERRE ---------- */
.hito-cta {
  background:
    radial-gradient(760px 380px at 50% 0%, rgba(0, 156, 234, .3), transparent 66%),
    linear-gradient(180deg, #0a2338, #071b30);
  text-align: center;
}

.hito-cta h2 {
  font-size: clamp(27px, 3vw, 42px);
  margin: 0 0 18px;
}

.hito-cta > .hito-wrap > p {
  max-width: 62ch;
  margin: 0 auto 30px;
}

.hito-cta .hito-actions {
  justify-content: center;
}

.hito-note {
  margin-top: 44px !important;
  padding-top: 24px;
  border-top: 1px solid rgba(159, 178, 198, .2);
  font-size: 13px !important;
  line-height: 1.65;
  color: #8ba2b8 !important;
  max-width: 76ch;
  margin-inline: auto;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 991px) {
  .hito-hero-grid,
  .hito-story-grid {
    grid-template-columns: 1fr;
  }

  .hito-hero-grid > div:last-child {
    order: -1;
  }

  .hito-numbers-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

@media (max-width: 575px) {
  .hito-btn {
    width: 100%;
    justify-content: center;
  }

  .hito-sound-hint {
    top: 10px;
    right: 10px;
    padding: 7px 12px;
    font-size: 12px;
  }
}

/* ---------- LABORATORIO: como sabemos que funciona ---------- */
.hito-lab-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: clamp(28px, 3.5vw, 56px);
  align-items: start;
  margin-top: 34px;
}

.hito-lab-video video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 14px;
  background: #061014;
  border: 1px solid var(--hito-border);
  box-shadow: 0 18px 44px rgba(20, 35, 52, .18);
}

.hito-lab-caption {
  margin: 14px 0 0 !important;
  font-size: 14.4px !important;
  line-height: 1.6;
}

.hito-lab-nums {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.hito-lab-num {
  background: #fff;
  border: 1px solid var(--hito-border);
  border-radius: 12px;
  padding: 18px 14px 16px;
  text-align: center;
}

.hito-lab-num strong {
  display: block;
  font-family: "Syne", sans-serif;
  font-weight: 700;
  font-size: clamp(28px, 2.6vw, 38px);
  line-height: 1;
  letter-spacing: -.03em;
  color: var(--hito-ink-dark);
}

.hito-lab-num strong em {
  font-style: normal;
  color: var(--hito-blue);
}

.hito-lab-num span {
  display: block;
  margin-top: 8px;
  font-family: "Open Sans", sans-serif;
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--hito-muted-dark);
}

.hito-lab-discard {
  margin-top: 18px;
  background: #eef2f7;
  border: 1px solid var(--hito-border);
  border-left: 3px solid #c2ceda;
  border-radius: 12px;
  padding: 20px 22px 18px;
}

.hito-lab-discard .hito-contrast-tag {
  color: #7d8c9b;
  margin-bottom: 12px;
}

.hito-lab-discard ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.hito-lab-discard li {
  font-family: "Open Sans", sans-serif;
  font-size: 14px;
  line-height: 1.6;
  color: var(--hito-muted-dark);
  margin-bottom: 10px;
}

.hito-lab-discard li:last-child {
  margin-bottom: 0;
}

.hito-lab-discard li strong {
  color: var(--hito-ink-dark);
}

@media (max-width: 991px) {
  .hito-lab-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 575px) {
  .hito-lab-nums {
    grid-template-columns: 1fr;
  }
}
