* {
  box-sizing: border-box;
}

:root {
  --blue-dark: #0c2f63;
  --blue: #085fdb;
  --sky: #08a9e8;
  --soft-bg: #f5f7fb;
  --card: #ffffff;
  --text: #16325c;
  --muted: #6b7890;
  --line: #dbe3f2;
  --danger: #e30613;
  --warning: #ef7d00;
  --medium: #ffc928;
  --safe: #49a760;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: var(--soft-bg);
  color: var(--text);
}

.logo-img {
  max-height: 60px; /* Ajusta la altura en píxeles según se vea mejor en tu diseño */
  width: auto;      /* Mantiene la proporción de la imagen */
  object-fit: contain;
}

.hero {
  min-height: 410px;
  position: relative;
  padding: 38px 8% 120px;
  color: var(--blue-dark);
  background:
    linear-gradient(to bottom, rgba(0, 174, 239, 0.92), rgba(255,255,255,0.25) 60%, rgba(245,247,251,1) 100%),
    url('images/represa_umaps.png') center bottom/cover;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  left: -5%;
  right: -5%;
  bottom: -54px;
  height: 118px;
  background: var(--soft-bg);
  border-radius: 50% 50% 0 0;
}

.topbar,
.hero-content,
.quick-actions {
  position: relative;
  z-index: 2;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: start;
  font-weight: 800;
  color: white;
  letter-spacing: .5px;
}

.brand {
  font-size: 13px;
  line-height: 1.25;
  text-transform: uppercase;
}

.brand-right {
  font-size: 28px;
}

.hero-content {
  max-width: 820px;
  margin: 62px auto 0;
  text-align: center;
}

.eyebrow {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 2px;
}

h1 {
  margin: 8px 0 14px;
  font-size: clamp(42px, 7vw, 78px);
  letter-spacing: 9px;
  color: var(--blue-dark);
}

.hero-description {
  max-width: 760px;
  margin: auto;
  font-size: 15px;
  font-weight: 600;
}

.quick-actions {
  width: min(900px, 88%);
  margin: 42px auto 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: rgba(255,255,255,.9);
  border-radius: 26px;
  padding: 18px 26px;
  box-shadow: 0 18px 40px rgba(10, 57, 103, .13);
}

.quick-action {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 18px;
  text-decoration: none;
  color: var(--text);
  border-right: 2px solid var(--line);
}

.quick-action:last-child {
  border-right: 0;
}

.icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: #e9f3ff;
  color: var(--blue);
  font-size: 22px;
}

.quick-action strong {
  display: block;
  font-size: 13px;
}

.quick-action span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.page {
  position: relative;
  z-index: 3;
  max-width: 1080px;
  margin: -16px auto 0;
  padding: 0 24px 50px;
}

.report-header {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  margin-bottom: 26px;
}

h2 {
  margin: 0;
  font-size: 42px;
  color: var(--blue-dark);
}

.report-header p {
  margin: 8px 0 0;
  color: var(--muted);
  font-weight: 600;
}

.date-pill {
  background: #e9f3ff;
  color: var(--blue);
  font-weight: 800;
  border-radius: 20px;
  padding: 12px 22px;
  white-space: nowrap;
}

.reservoir-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.reservoir-card,
.risk-panel,
.info-card,
.footer-link {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: 0 14px 35px rgba(10, 57, 103, .05);
}

.reservoir-card {
  padding: 26px;
}

.reservoir-card h3 {
  margin: 0 0 20px;
  color: var(--blue);
}

.reservoir-content {
  display: grid;
  grid-template-columns: 1fr 1px 1fr;
  align-items: center;
  gap: 22px;
}

.gauge {
  width: 170px;
  height: 170px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin: auto;
  background: conic-gradient(var(--warning) calc(var(--p) * 1%), #edf1f7 0);
}

.gauge-inner {
  width: 128px;
  height: 128px;
  border-radius: 50%;
  background: white;
  display: grid;
  place-items: center;
  text-align: center;
  font-weight: 800;
}

.gauge-inner strong {
  display: block;
  font-size: 28px;
  color: var(--blue);
}

.gauge-inner small {
  font-size: 12px;
}

.divider {
  height: 155px;
  background: #7489a8;
}

.metrics {
  display: grid;
  gap: 16px;
}

.metric span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.metric strong {
  color: var(--blue);
  font-size: 24px;
}

.threshold {
  width: fit-content;
  margin: 24px auto 0;
  color: var(--danger);
  border: 2px solid #ff9aa0;
  border-radius: 10px;
  padding: 9px 16px;
  font-weight: 800;
  font-size: 13px;
}

.risk-panel {
  margin: 36px 0;
  padding: 22px 28px;
  display: grid;
  grid-template-columns: 230px 1fr;
  align-items: center;
  gap: 22px;
}

.risk-title span {
  display: block;
  font-weight: 800;
}

.risk-title strong {
  display: block;
  color: var(--danger);
  font-size: 43px;
  letter-spacing: 1px;
}

.risk-scale {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.risk-item {
  text-align: center;
  color: white;
  border-radius: 14px;
  padding: 14px 8px;
  font-weight: 800;
}

.risk-item small {
  display: block;
}

.risk-item:nth-child(1) { background: var(--danger); }
.risk-item:nth-child(2) { background: var(--warning); }
.risk-item:nth-child(3) { background: var(--medium); color: #564000; }
.risk-item:nth-child(4) { background: var(--safe); }

.info-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 34px;
  margin-bottom: 50px;
}

.info-card {
  min-height: 220px;
  padding: 30px 22px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-decoration: none;
  color: var(--text);
}

.info-card .icon {
  margin: 0 auto 10px;
}

.info-card h3 {
  color: var(--blue);
  margin: 0;
  font-size: 18px;
}

.info-card p {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.arrow {
  color: var(--blue);
  background: #eef5ff;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  margin: 0 auto;
  display: grid;
  place-items: center;
}

footer {
  border-top: 2px solid #6d87aa;
  padding-top: 34px;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 60px;
}

.footer-link {
  padding: 20px 24px;
  text-decoration: none;
  color: var(--blue-dark);
  font-weight: 800;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

@media (max-width: 850px) {
  .quick-actions,
  .reservoir-grid,
  .risk-panel,
  .info-cards,
  .footer-links {
    grid-template-columns: 1fr;
  }

  .quick-action {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 14px 0;
  }

  .quick-action:last-child {
    border-bottom: 0;
  }

  .report-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .reservoir-content {
    grid-template-columns: 1fr;
  }

  .divider {
    display: none;
  }

  h1 {
    letter-spacing: 4px;
  }
}
