:root {
  --surface: #f4f1ec;
  --text-main: #1f1f1f;
  --text-soft: #6b6b6b;
  --accent: #f35b04;
  --line: #e9e3da;
  --title: #1b2630;
}

body {
  line-height: 1.65;
  color: var(--text-main);
}

.hero-cover {
  background:
    radial-gradient(circle at top left, rgba(201, 21, 47, 0.08), transparent 42%),
    linear-gradient(180deg, #fff8f4 0%, #f4f1ec 100%);
  border: 1px solid #eadfd5;
  border-radius: 24px;
  padding: 2.2rem 2.3rem 2rem 2.3rem;
  margin: 0 0 1.4rem 0;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.07);
}

.hero-cover p,
.hero-cover blockquote,
.hero-cover h1 {
  margin: 0;
}

.hero-kicker {
  display: inline-block;
  margin-bottom: 0.9rem;
  font-size: 0.77rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #8e6b57;
}

.hero-title {
  border: 0;
  padding: 0;
  margin-bottom: 0.55rem;
  font-size: clamp(2.95rem, 6.4vw, 5.05rem);
  line-height: 0.92;
  letter-spacing: -0.05em;
  color: #1b2630;
  max-width: 13.5ch;
}

.hero-title-italic {
  font-style: italic;
  color: #c9152f;
}

.hero-subtitle {
  max-width: 44rem;
  font-size: 1.24rem;
  line-height: 1.42;
  color: #52606d;
  margin-bottom: 1.15rem;
}

.hero-quote {
  max-width: 60rem;
  padding: 1.05rem 1.15rem 0.9rem 1.15rem;
  margin: 0;
  border-left: 4px solid #c9152f;
  background: rgba(201, 21, 47, 0.04);
  color: #2a2a2a;
  font-size: 1.12rem;
  line-height: 1.58;
}

.hero-accent {
  font-weight: 700;
  color: #a3172a;
}

.hero-cover .hero-title + .hero-subtitle {
  margin-top: 0.25rem;
}

h1,
h2,
h3 {
  letter-spacing: 0.2px;
  color: var(--title);
}

h1 {
  font-size: 2.3rem;
  margin-bottom: 0.6rem;
  border-bottom: 2px solid var(--line);
  padding-bottom: 0.25rem;
}

h2 {
  margin-top: 1.4rem;
  margin-bottom: 0.5rem;
}

h3 {
  margin-top: 1.1rem;
}

p {
  margin-bottom: 1rem;
}

a {
  color: #1f6aa5;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

a:hover {
  border-bottom-color: #1f6aa5;
}

.infra-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.2rem 1.1rem 0.7rem 1.1rem;
  margin-top: 0.6rem;
  margin-bottom: 1rem;
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.04);
  color: var(--text-main);
  font-size: 1.14rem;
  line-height: 1.55;
}

.infra-panel p {
  margin-bottom: 0.75rem;
}

.impact-panel {
  background: linear-gradient(180deg, #fff8f4 0%, var(--surface) 100%);
  border: 1px solid #eadfd5;
  border-radius: 16px;
  padding: 1.15rem 1.1rem 0.95rem 1.1rem;
  margin: 0.8rem 0 1rem 0;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
}

.impact-panel p {
  color: #3f4952;
}

.impact-columns {
  align-items: stretch;
  gap: 1rem;
}

.impact-left {
  background: #fbf7f2;
  border: 1px solid #e9ddd1;
  border-radius: 12px;
  padding: 0.8rem 0.9rem 0.45rem 0.9rem;
}

.impact-left h3 {
  margin-top: 0.2rem;
  color: #1b2630;
}

.impact-left ul {
  margin-bottom: 0.75rem;
}

.impact-left li {
  margin-bottom: 0.45rem;
}

.impact-left pre {
  background: #f4ede5;
  border: 1px solid #e5d7c8;
  border-radius: 10px;
}

.impact-right {
  background: #fbf7f2;
  border: 1px solid #e9ddd1;
  border-radius: 12px;
  padding: 0.5rem 0.7rem 0.2rem 0.7rem;
}

.impact-right figure,
.impact-right .figure,
.impact-right img {
  width: 100%;
  max-width: 100%;
}

.impact-right .cell-output-display {
  overflow-x: auto;
}

.impact-panel strong {
  color: #a31621;
}

.impact-finding {
  margin: 0.85rem 0 0.9rem 0;
  padding: 0.95rem 1rem 0.95rem 1rem;
  border-left: 4px solid #f35b04;
  background: #f2ebe3;
  color: #2a2a2a;
}

.impact-finding p {
  margin: 0;
  font-size: 1.16rem;
  line-height: 1.45;
}

.impact-finding p:first-child {
  margin-bottom: 0.35rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #a3172a;
}

.gemelos-section {
  max-width: 1040px;
  margin: 0.5rem auto 1.1rem auto;
}

.gemelos-head {
  text-align: center;
  margin: 0.2rem auto 1.05rem auto;
  max-width: 780px;
  color: #44515d;
  font-size: 1.05rem;
}

.gemelos-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(280px, 1fr));
  align-items: stretch;
  gap: 1rem;
}

.gemelo-card {
  border: 1px solid #e5ddd4;
  border-radius: 14px;
  padding: 1rem 1.05rem 0.95rem 1.05rem;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.05);
  min-height: 240px;
}

.gemelo-card h3 {
  margin-top: 0;
  margin-bottom: 0.45rem;
  font-size: 1.02rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #1b2630;
}

.gemelo-card ul {
  margin-bottom: 0;
  padding-left: 1.05rem;
}

.gemelo-card li {
  margin-bottom: 0.28rem;
}

.gemelo-temp {
  font-size: 2.05rem;
  line-height: 1;
  margin: 0.08rem 0 0.42rem 0;
  color: #222;
  font-weight: 500;
  font-family: Georgia, "Times New Roman", serif;
}

.gemelo-badge {
  display: inline-block;
  margin: 0 0 0.75rem 0;
  padding: 0.18rem 0.56rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.badge-bajo {
  background: rgba(42, 157, 143, 0.12);
  color: #1f7d73;
  border: 1px solid rgba(42, 157, 143, 0.28);
}

.badge-alto {
  background: rgba(200, 29, 49, 0.11);
  color: #a31621;
  border: 1px solid rgba(200, 29, 49, 0.24);
}

.gemelo-metrics {
  margin-top: 0.05rem;
}

.gemelo-bajo {
  background: #f7fbf9;
  border-left: 4px solid #2a9d8f;
}

.gemelo-alto {
  background: #fbf2ee;
  border-left: 4px solid #c81d31;
}

.cierre-sub {
  text-align: center;
  margin-top: -0.2rem;
  margin-bottom: 0.55rem;
  color: #6a6a6a;
  font-size: 1.05rem;
}

.cierre-divider {
  border-top: 1px solid #e6dfd5;
  margin: 0.5rem 0 1rem 0;
}

.cierre-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 0.2rem;
  margin-bottom: 0.9rem;
}

.cierre-card {
  background: #fbf8f4;
  border: 1px solid #e7ded2;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
  border-radius: 0;
  padding: 0.92rem 0.95rem 0.86rem 0.95rem;
  min-height: 124px;
}

.cierre-card h3 {
  margin: 0 0 0.35rem 0;
  font-size: 1.05rem;
}

.cierre-card p:first-of-type strong {
  float: right;
  letter-spacing: 0.08em;
  font-size: 0.72rem;
}

.cierre-grid .cierre-card:nth-child(1) p:first-of-type strong { color: #c45f1d; }
.cierre-grid .cierre-card:nth-child(2) p:first-of-type strong { color: #a31621; }
.cierre-grid .cierre-card:nth-child(3) p:first-of-type strong { color: #2f6f4f; }

.cierre-card p:last-of-type {
  margin-top: 0.35rem;
  margin-bottom: 0;
  color: #575757;
  font-style: italic;
}

.cierre-frase {
  background: #141518;
  border: 1px solid #1f2024;
  color: #f2ece3;
  text-align: center;
  padding: 1.35rem 1rem 1.1rem 1rem;
  margin: 0.7rem 0 1rem 0;
}

.cierre-frase p:first-of-type {
  margin: 0 0 0.7rem 0;
  font-size: clamp(1.45rem, 2.8vw, 2.1rem);
  line-height: 1.22;
}

.cierre-frase p:last-of-type {
  margin: 0;
  color: #f35b04;
  letter-spacing: 0.18em;
  font-size: 0.73rem;
}

.stats-circles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 1rem;
  margin: 0.85rem 0 0.35rem 0;
}

.stat-circle-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0.95rem 0.7rem 0.85rem 0.7rem;
  background: #fbf7f2;
  border: 1px solid #e8ddd2;
  border-radius: 14px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.05);
}

.stat-circle-value {
  width: 118px;
  height: 118px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.65rem;
  background: radial-gradient(circle at 30% 25%, #fff4ea 0%, #ffe7d3 40%, #ffd9be 100%);
  border: 3px solid #f35b04;
  color: #8a2b00;
  font-weight: 800;
  font-size: 1.15rem;
  line-height: 1.15;
  padding: 0.35rem;
}

.stat-circle-label {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #6b5547;
  text-transform: uppercase;
}

.stats-circles-note {
  margin-top: 0.45rem;
  margin-bottom: 1rem;
  color: #4a4a4a;
}

.thermal-threshold {
  background: #f6f6f6;
  border: 1px solid #d8d8d8;
  border-left-width: 4px;
  border-radius: 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  padding: 1rem 1.3rem;
  margin: 0.8rem 0 1rem 0;
}

.thermal-threshold h3 {
  margin: 0 0 0.2rem 0;
  font-size: 2rem;
  letter-spacing: 1px;
  color: #111;
}

.thermal-threshold strong {
  font-size: 0.78rem;
  letter-spacing: 2px;
}

.thermal-threshold p {
  margin: 0.35rem 0 0 0;
  font-size: 1.05rem;
  color: #303030;
}

.thermal-safe {
  border-left-color: #2f9e55;
}

.thermal-safe strong {
  color: #2f9e55;
}

.thermal-danger {
  border-left-color: #d7263d;
}

.thermal-danger strong {
  color: #d7263d;
}

.thermal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: 1rem;
  margin: 0.8rem 0 1rem 0;
}

.thermal-card {
  background: linear-gradient(180deg, #fbf8f4 0%, #f2ece4 100%);
  border: 1px solid #e3d7c9;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.07);
  padding: 1.1rem 1rem;
  text-align: center;
  min-height: 150px;
  position: relative;
  overflow: hidden;
}

.thermal-card::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: #f35b04;
  opacity: 0.9;
}

.thermal-card::before {
  position: absolute;
  top: 0.55rem;
  right: 0.65rem;
  font-size: 1.05rem;
  opacity: 0.88;
}

.thermal-card strong {
  display: block;
  font-size: 2.05rem;
  margin-bottom: 0.35rem;
  color: #1d1d1d;
}

.thermal-card p {
  margin: 0;
  font-size: 1.12rem;
  color: #2d2d2d;
}

.thermal-grid .thermal-card:nth-child(1)::before {
  content: "🌡";
}

.thermal-grid .thermal-card:nth-child(2)::before {
  content: "🧠";
}

.thermal-grid .thermal-card:nth-child(3)::before {
  content: "💧";
}

.thermal-grid .thermal-card:nth-child(4)::before {
  content: "🫁";
}

.thermal-context {
  background: #f6f6f6;
  border: 1px solid #d8d8d8;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  padding: 1rem 1.2rem;
  margin: 0.8rem 0 1.1rem 0;
  font-size: 1.15rem;
}

.thermal-context p {
  margin: 0;
}

figure {
  margin: 1rem 0 1.1rem 0;
}

img {
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

@media screen and (max-width: 768px) {
  h1 {
    font-size: 1.9rem;
  }

  .infra-panel {
    padding: 1rem 0.85rem 0.6rem 0.85rem;
    font-size: 1.03rem;
  }

  .impact-panel {
    padding: 0.95rem 0.85rem 0.75rem 0.85rem;
  }

  .stat-circle-value {
    width: 102px;
    height: 102px;
    font-size: 1.02rem;
  }

  .thermal-threshold h3 {
    font-size: 1.6rem;
  }

  .thermal-grid {
    grid-template-columns: 1fr;
  }

  .thermal-card {
    min-height: 120px;
  }

  .gemelo-card {
    min-height: 200px;
  }

  .gemelos-grid {
    grid-template-columns: 1fr;
  }

  .gemelo-temp {
    font-size: 1.8rem;
  }

  .cierre-card {
    min-height: unset;
  }

  .cierre-grid {
    grid-template-columns: 1fr;
  }
}
