.geo-page {
  background: var(--paper);
  color: var(--black);
  padding-top: 82px;
}

.geo-hero,
.geo-block,
.geo-cta,
.geo-sources,
.geo-viz {
  width: min(1100px, 100% - 12vw);
  margin: 0 auto;
}

.geo-hero {
  padding: clamp(4rem, 10vw, 9rem) 0 clamp(3rem, 7vw, 6rem);
}

.geo-hero .eyebrow a {
  border-bottom: 1px solid transparent;
  padding-bottom: 0.1rem;
  transition: border-color 0.2s ease;
}

.geo-hero .eyebrow a:hover,
.geo-hero .eyebrow a:focus-visible {
  border-bottom-color: currentColor;
  outline: none;
}

.geo-hero h1 {
  font-size: clamp(2.4rem, 6vw, 5.5rem);
  line-height: 0.98;
  max-width: 18ch;
  margin-bottom: 1.8rem;
}

.geo-hero .lead {
  max-width: 54ch;
}

.geo-block {
  padding: clamp(2rem, 4vw, 3.6rem) 0;
  border-top: 1px solid var(--line);
}

.geo-block h2,
.geo-sources h2,
.geo-cta h2,
.geo-viz h2 {
  font-size: clamp(1.8rem, 3.5vw, 3rem);
  margin-bottom: 1.2rem;
}

.geo-block h3 {
  font-size: clamp(1.15rem, 2.2vw, 1.55rem);
  margin: 1.6rem 0 0.7rem;
}

.geo-block p,
.geo-viz__head p {
  max-width: 72ch;
}

.geo-related {
  margin-top: 1.4rem;
  padding: 1rem 1.1rem;
  border-left: 3px solid var(--lime);
  background: #fff;
  max-width: 72ch;
}

.geo-related a {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.check-list {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.8rem;
}

.check-list li {
  border-left: 3px solid var(--lime);
  padding-left: 1rem;
}

.geo-grid {
  width: min(1100px, 100% - 12vw);
  margin: 0 auto;
  padding: 0.8rem 0 1.5rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.geo-grid article {
  background: #fff;
  border: 1px solid #dedfd8;
  padding: 1.4rem 1.2rem;
}

.geo-grid h3 {
  font-size: clamp(1.1rem, 2.2vw, 1.5rem);
  margin-bottom: 0.7rem;
}

.geo-highlight {
  background: var(--lime);
  padding: clamp(2rem, 5vw, 4rem) 2rem;
  border: 0;
}

.formula {
  margin: 1rem 0 1.2rem;
  padding: 1rem 1.1rem;
  border: 1px dashed rgba(11, 12, 10, 0.35);
  background: #fff;
}

.mini-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}

.mini-cards div {
  background: #fff;
  border-top: 2px solid var(--black);
  padding: 1.1rem 0.2rem 0.4rem;
}

.mini-cards strong {
  display: block;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.05rem;
  margin-bottom: 0.45rem;
}

.mini-cards span {
  font-size: 0.88rem;
  line-height: 1.45;
  color: #333;
}

.faq-list details {
  border-top: 1px solid var(--line);
  padding: 1rem 0;
}

.faq-list details:last-child {
  border-bottom: 1px solid var(--line);
}

.faq-list summary {
  list-style: none;
  cursor: pointer;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.faq-list details p {
  margin-top: 1rem;
  max-width: 74ch;
}

.geo-cta {
  margin-top: 1rem;
  padding: clamp(2.4rem, 6vw, 4.6rem) 0;
}

.geo-cta p {
  max-width: 62ch;
}

.geo-sources {
  border-top: 1px solid var(--line);
  padding: 2.5rem 0 5.5rem;
}

.geo-sources ul {
  margin: 1rem 0 0;
  padding-left: 1.1rem;
}

.geo-sources li {
  margin-bottom: 0.5rem;
}

.geo-sources a {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.contact--blog {
  padding-top: 2rem;
}

.geo-viz {
  padding: clamp(2.5rem, 5vw, 4.5rem) 0;
  border-top: 1px solid var(--line);
}

.geo-viz__head {
  margin-bottom: 1.6rem;
}

.svg-frame {
  margin: 0;
  background: #fff;
  border: 1px solid #dedfd8;
  padding: 1rem 1rem 0.6rem;
}

.svg-frame figcaption {
  font-size: 0.82rem;
  color: #555;
  padding: 0.85rem 0.35rem 0.9rem;
  border-top: 1px solid #ecece8;
  margin-top: 0.4rem;
}

.diagram {
  width: 100%;
  height: auto;
  display: block;
}

.svg-frame--split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 0.5rem 1.5rem;
  align-items: center;
}

.svg-frame--split .diagram {
  grid-row: 1;
}

.svg-frame--split .legend {
  grid-row: 1;
  list-style: none;
  margin: 0;
  padding: 0 0.5rem 0 0;
  display: grid;
  gap: 0.75rem;
}

.svg-frame--split figcaption {
  grid-column: 1 / -1;
}

.legend li {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.95rem;
}

.legend i {
  width: 14px;
  height: 14px;
  display: inline-block;
  flex: 0 0 auto;
}

.diagram--geo-flow .pipe {
  stroke-dasharray: 12 10;
  animation: geoFlowDash 1.1s linear infinite;
}

.diagram--geo-flow-mob {
  display: none;
}

@keyframes geoFlowDash {
  to { stroke-dashoffset: -44; }
}

.diagram--geo-flow .loop-fluid {
  opacity: 0.35;
  animation: geoLoopPulse 2.8s ease-in-out infinite;
}

@keyframes geoLoopPulse {
  0%, 100% { opacity: 0.28; }
  50% { opacity: 0.7; }
}

.diagram--geo-flow .stage {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.5s ease, transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}

.geo-viz.is-live .diagram--geo-flow .stage:nth-of-type(1) {
  opacity: 1;
  transform: none;
  transition-delay: 0.1s;
}
.geo-viz.is-live .diagram--geo-flow .stage:nth-of-type(2) {
  opacity: 1;
  transform: none;
  transition-delay: 0.22s;
}
.geo-viz.is-live .diagram--geo-flow .stage:nth-of-type(3) {
  opacity: 1;
  transform: none;
  transition-delay: 0.34s;
}
.geo-viz.is-live .diagram--geo-flow .stage:nth-of-type(4) {
  opacity: 1;
  transform: none;
  transition-delay: 0.46s;
}

.diagram--capture .probe {
  stroke-dasharray: 180;
  stroke-dashoffset: 180;
  transition: stroke-dashoffset 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.diagram--capture-mob {
  display: none;
}

.diagram--capture-mob .probe {
  stroke-dasharray: 160;
  stroke-dashoffset: 160;
}

.geo-viz.is-live .diagram--capture .probe {
  stroke-dashoffset: 0;
}

.diagram--capture .trench {
  opacity: 0;
  transition: opacity 0.7s ease 0.25s;
}

.geo-viz.is-live .diagram--capture .trench {
  opacity: 1;
}

.diagram--donut .donut-seg {
  transition: stroke-dashoffset 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.diagram--donut-mob {
  display: none;
}

/* C ≈ 565 desk / 616 mob; 55 / 25 / 20 % calefacción / ACS / refrescamiento */
.geo-viz.is-live .diagram--donut-desk .donut-seg:nth-of-type(2) {
  stroke-dashoffset: 0;
  transition-delay: 0.05s;
}
.geo-viz.is-live .diagram--donut-desk .donut-seg:nth-of-type(3) {
  stroke-dashoffset: -311;
  transition-delay: 0.15s;
}
.geo-viz.is-live .diagram--donut-desk .donut-seg:nth-of-type(4) {
  stroke-dashoffset: -452;
  transition-delay: 0.25s;
}

.geo-viz.is-live .diagram--donut-mob .donut-seg:nth-of-type(2) {
  stroke-dashoffset: 0;
  transition-delay: 0.05s;
}
.geo-viz.is-live .diagram--donut-mob .donut-seg:nth-of-type(3) {
  stroke-dashoffset: -339;
  transition-delay: 0.15s;
}
.geo-viz.is-live .diagram--donut-mob .donut-seg:nth-of-type(4) {
  stroke-dashoffset: -493;
  transition-delay: 0.25s;
}

.reveal-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.75s ease, transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-up.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .diagram--geo-flow .pipe,
  .diagram--geo-flow .loop-fluid {
    animation: none !important;
  }
  .reveal-up,
  .diagram--geo-flow .stage,
  .diagram--capture .probe,
  .diagram--capture .trench,
  .diagram--donut .donut-seg {
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
    stroke-dashoffset: 0 !important;
  }
  .geo-viz.is-live .diagram--donut-desk .donut-seg:nth-of-type(2) { stroke-dashoffset: 0; }
  .geo-viz.is-live .diagram--donut-desk .donut-seg:nth-of-type(3) { stroke-dashoffset: -311; }
  .geo-viz.is-live .diagram--donut-desk .donut-seg:nth-of-type(4) { stroke-dashoffset: -452; }
  .geo-viz.is-live .diagram--donut-mob .donut-seg:nth-of-type(2) { stroke-dashoffset: 0; }
  .geo-viz.is-live .diagram--donut-mob .donut-seg:nth-of-type(3) { stroke-dashoffset: -339; }
  .geo-viz.is-live .diagram--donut-mob .donut-seg:nth-of-type(4) { stroke-dashoffset: -493; }
}

@media (max-width: 820px) {
  .geo-page {
    padding-top: 66px;
  }

  .geo-hero,
  .geo-block,
  .geo-grid,
  .geo-cta,
  .geo-sources,
  .geo-viz {
    width: calc(100% - 14vw);
  }

  .geo-grid,
  .mini-cards,
  .svg-frame--split {
    grid-template-columns: 1fr;
  }

  .geo-highlight {
    padding: 1.5rem 1rem;
  }

  .geo-hero h1 {
    max-width: none;
  }

  .diagram--geo-flow-desk {
    display: none;
  }

  .diagram--geo-flow-mob {
    display: block;
  }

  .diagram--capture-desk {
    display: none;
  }

  .diagram--capture-mob {
    display: block;
  }

  .diagram--donut-desk {
    display: none;
  }

  .diagram--donut-mob {
    display: block;
    max-width: 260px;
    margin-inline: auto;
  }

  /* Evitar que grid-row:1 cree una 2ª columna implícita en móvil */
  .svg-frame--split {
    gap: 1rem;
    align-items: stretch;
  }

  .svg-frame--split .diagram,
  .svg-frame--split .legend {
    grid-row: auto;
    grid-column: 1;
  }

  .svg-frame--split figcaption {
    grid-column: 1;
  }

  .svg-frame--donut .legend {
    justify-items: start;
    width: min(100%, 280px);
    margin-inline: auto;
  }

  .svg-frame--split .legend {
    padding: 0.35rem 0.15rem 0.25rem;
    gap: 0.85rem;
  }

  .svg-frame--split .legend li {
    align-items: flex-start;
    font-size: 0.92rem;
    line-height: 1.4;
  }

  .svg-frame {
    padding: 0.75rem 0.65rem 0.5rem;
  }
}
