/* LabAncestral · observatorio.css
   Estilos exclusivos de la página Observatorio. */

.ob-page {
  width: 100%;
  min-width: 0;
  overflow-x: hidden;
  background: #f6efe1;
  color: #152514;
  font-family: 'IBM Plex Sans', sans-serif;
}

.ob-page *,
.ob-page *::before,
.ob-page *::after {
  min-width: 0;
}

.ob-container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
}

.ob-hero {
  position: relative;
  padding: 60px 44px 54px;
  overflow: hidden;
  background: #0e3d22;
  color: #eae3d2;
}

.ob-breadcrumb {
  margin-bottom: 24px;
  color: #7fae89;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11.5px;
  letter-spacing: .16em;
}

.ob-breadcrumb a {
  color: inherit;
  text-decoration: none;
}

.ob-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, .75fr);
  align-items: end;
  gap: 48px;
}

.ob-hero-copy {
  animation: ob-rise .7s ease both;
}

.ob-live {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 24px;
  color: #f3d9a0;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11.5px;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.ob-live span {
  display: block;
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  background: #ee9a1c;
  border-radius: 50%;
  animation: ob-glow 2.4s ease-in-out infinite;
}

.ob-hero h1 {
  margin: 0 0 20px;
  color: #fff;
  font-family: 'Spectral', serif;
  font-size: 56px;
  font-weight: 300;
  letter-spacing: -.02em;
  line-height: 1.03;
  overflow-wrap: normal;
  word-break: normal;
}

.ob-hero h1 em {
  color: #f2b458;
  font-style: italic;
  font-weight: 500;
}

.ob-hero-copy > p {
  max-width: 540px;
  margin: 0;
  color: #bcd2c4;
  font-size: 17px;
  line-height: 1.66;
}

.ob-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  animation: ob-rise .9s ease both;
}

.ob-stat {
  padding: 18px;
  border: 1px solid #1f5a3e;
  border-radius: 13px;
}

.ob-stat strong {
  display: block;
  color: #fff;
  font-family: 'Spectral', serif;
  font-size: 34px;
  font-weight: 400;
  line-height: 1;
  white-space: nowrap;
}

.ob-stat--accent strong {
  color: #f2b458;
}

.ob-stat span {
  display: block;
  margin-top: 6px;
  color: #8fb89c;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
}

.ob-map-section {
  padding: 80px 44px;
  background: #f6efe1;
}

.ob-map-shell {
  overflow: hidden;
  background: #0a3019;
  border: 1px solid #e4d9c2;
  border-radius: 20px;
}

.ob-map-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 18px 28px;
  background: #0e3d22;
  border-bottom: 1px solid #1f5a3e;
}

.ob-map-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.ob-map-frame {
  display: block;
  width: 100%;
  height: min(78vh, 850px);
  min-height: 600px;
  border: 0;
}

.ob-labs {
  margin-top: 32px;
}

.ob-lab-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.ob-page .lab-btn {
  max-width: 100%;
  padding: 9px 18px;
  background: #fff;
  border: 1px solid #c2b48f;
  border-radius: 999px;
  color: #3a3528;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12.5px;
  cursor: pointer;
  white-space: normal;
  transition: background .15s, color .15s, border-color .15s;
}

.ob-page .lab-btn:hover {
  background: #f0e8d6;
  border-color: #9a8f74;
}

.ob-page .lab-btn.lab-active {
  background: #18713a;
  border-color: #18713a;
  color: #fff;
}

.ob-lab-card {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(0, 2.5fr);
  overflow: hidden;
  background: #fff;
  border: 1px solid #e4d9c2;
  border-radius: 16px;
}

.ob-lab-card__identity {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 32px 28px;
}

.ob-lab-card__body {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 24px;
  padding: 32px 36px;
}

#lab-coords,
#lab-area {
  white-space: nowrap;
  overflow-wrap: normal;
}

#lab-type {
  max-width: 100%;
  white-space: normal;
}

#lab-type-dot {
  flex: 0 0 9px;
}

.ob-indicators {
  padding: 84px 44px;
  background: #0e3d22;
  color: #eae3d2;
}

.ob-indicators__heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 14px;
}

.ob-indicators__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 42px;
}

.ob-indicators__grid > div {
  min-width: 0;
}

.ob-indicators__grid > div > div:first-child,
.ob-indicators__grid > div > div:nth-child(3) > div > div:first-child {
  overflow-wrap: normal;
  white-space: nowrap;
}

.ob-ods-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 28px;
  padding-top: 26px;
  margin-top: 30px;
  border-top: 1px solid #1f5a3e;
}

.ob-ods-legend > div {
  min-width: 0;
}

.ob-ods-legend > div > span:first-child {
  flex: 0 0 22px;
}

@keyframes ob-rise {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes ob-glow {
  0%, 100% { opacity: .55; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.25); }
}

@media (max-width: 1040px) {
  .ob-hero-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 38px;
  }

  .ob-stats {
    max-width: 620px;
  }

  .ob-indicators__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .ob-lab-card,
  .ob-lab-card__body {
    grid-template-columns: minmax(0, 1fr);
  }

  .ob-lab-card__identity {
    min-height: 210px;
  }
}

@media (max-width: 700px) {
  .ob-hero {
    padding: 50px 20px;
  }

  .ob-breadcrumb {
    font-size: 10.5px;
    letter-spacing: .1em;
  }

  .ob-live {
    align-items: flex-start;
    font-size: 10.5px;
    line-height: 1.5;
  }

  .ob-hero h1 {
    font-size: clamp(38px, 12vw, 50px);
    line-height: 1.07;
  }

  .ob-hero-copy > p {
    font-size: 16px;
  }

  .ob-map-section,
  .ob-indicators {
    padding: 58px 20px;
  }

  .ob-map-shell {
    border-radius: 15px;
  }

  .ob-map-toolbar {
    align-items: flex-start;
    flex-direction: column;
    padding: 18px;
  }

  .ob-map-legend {
    gap: 9px 14px;
  }

  .ob-map-frame {
    height: 68vh;
    min-height: 440px;
  }

  .ob-lab-buttons {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ob-page .lab-btn {
    width: 100%;
    padding: 10px 12px;
  }

  .ob-lab-card__body {
    padding: 26px 22px;
  }

  .ob-indicators__heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .ob-indicators__heading h2 {
    font-size: clamp(30px, 9vw, 38px) !important;
  }

  .ob-indicators__heading > p {
    max-width: 100% !important;
  }

  .ob-ods-legend {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }
}

@media (max-width: 480px) {
  .ob-hero,
  .ob-map-section,
  .ob-indicators {
    padding-right: 16px;
    padding-left: 16px;
  }

  .ob-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ob-stat {
    padding: 15px;
  }

  .ob-map-frame {
    height: 62vh;
    min-height: 380px;
  }

  .ob-lab-buttons,
  .ob-indicators__grid,
  .ob-ods-legend {
    grid-template-columns: minmax(0, 1fr);
  }

  .ob-lab-card__identity {
    min-height: 180px;
    padding: 26px 22px;
  }

  .ob-indicators__grid > div {
    padding: 22px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ob-page *,
  .ob-page *::before,
  .ob-page *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}