:root {
  color-scheme: light;
  --ink: #143033;
  --muted: #5d6f72;
  --paper: #fffaf2;
  --surface: #ffffff;
  --teal: #176b6a;
  --teal-dark: #0f4447;
  --coral: #e2604f;
  --gold: #e6ad35;
  --sky: #d9eef6;
  --line: #d9e1dc;
  --shadow: 0 24px 70px rgba(20, 48, 51, 0.13);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 86px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
}

body::selection {
  background: var(--gold);
  color: var(--ink);
}

a {
  color: inherit;
}

.site-header {
  align-items: center;
  background: rgba(255, 250, 242, 0.88);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(20, 48, 51, 0.08);
  display: flex;
  justify-content: space-between;
  left: 0;
  min-height: 68px;
  padding: 14px clamp(18px, 4vw, 56px);
  position: fixed;
  right: 0;
  top: 0;
  z-index: 10;
}

.brand,
.top-nav {
  align-items: center;
  display: flex;
}

.brand {
  font-weight: 800;
  gap: 10px;
  text-decoration: none;
}

.brand-mark {
  align-items: center;
  background: var(--ink);
  color: white;
  display: inline-flex;
  height: 34px;
  justify-content: center;
  width: 34px;
}

.top-nav {
  gap: clamp(14px, 3vw, 28px);
}

.top-nav a {
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 700;
  text-decoration: none;
}

.top-nav a:hover {
  color: var(--ink);
}

.hero {
  min-height: 92vh;
  overflow: hidden;
  position: relative;
}

.hero-media {
  background:
    linear-gradient(90deg, rgba(11, 35, 38, 0.78), rgba(11, 35, 38, 0.18) 62%),
    url("https://images.unsplash.com/photo-1500530855697-b586d89ba3ee?auto=format&fit=crop&w=1800&q=82")
      center / cover;
  inset: 0;
  position: absolute;
}

.hero-content {
  color: white;
  max-width: 780px;
  padding: 190px clamp(20px, 6vw, 84px) 140px;
  position: relative;
}

.eyebrow,
.section-kicker {
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  margin: 0 0 14px;
  text-transform: uppercase;
}

.eyebrow {
  color: #f4c95d;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  font-size: clamp(3.2rem, 8vw, 7.8rem);
  letter-spacing: 0;
  line-height: 0.92;
  margin-bottom: 28px;
  max-width: 920px;
}

h2 {
  font-size: clamp(2rem, 4vw, 4.2rem);
  letter-spacing: 0;
  line-height: 1.02;
  margin-bottom: 18px;
}

h3 {
  font-size: 1.04rem;
  letter-spacing: 0;
  line-height: 1.2;
  margin-bottom: 8px;
}

.hero-content p {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  line-height: 1.6;
  max-width: 650px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  align-items: center;
  border: 1px solid transparent;
  display: inline-flex;
  font-weight: 850;
  gap: 10px;
  justify-content: center;
  min-height: 48px;
  padding: 12px 18px;
  text-decoration: none;
}

.button svg {
  height: 19px;
  width: 19px;
}

.button.primary {
  background: var(--gold);
  color: #172c2d;
}

.button.secondary {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.45);
  color: white;
}

.button:hover {
  transform: translateY(-1px);
}

.section-grid {
  display: grid;
  gap: clamp(28px, 6vw, 80px);
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.2fr);
  padding: clamp(66px, 9vw, 120px) clamp(20px, 6vw, 84px);
}

#pasos,
#datos,
#simulador {
  scroll-margin-top: 86px;
}

.section-kicker {
  color: var(--coral);
}

.intro-copy,
.section-note,
.note-list,
.step-item,
.data-grid p {
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.7;
}

.intro-copy p {
  margin-bottom: 18px;
}

.stats-band {
  background: var(--teal-dark);
  color: white;
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(3, 1fr);
}

.stats-band div {
  background: rgba(255, 255, 255, 0.06);
  min-height: 170px;
  padding: clamp(24px, 5vw, 46px);
}

.stat-value {
  color: #f4c95d;
  display: block;
  font-size: clamp(2.6rem, 6vw, 5.6rem);
  font-weight: 900;
  line-height: 0.95;
}

.stat-label {
  color: rgba(255, 255, 255, 0.72);
  display: block;
  font-weight: 750;
  margin-top: 14px;
}

.step-list {
  counter-reset: steps;
  display: grid;
  gap: 14px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.step-item {
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: 0 12px 34px rgba(20, 48, 51, 0.06);
}

.step-item label {
  align-items: flex-start;
  cursor: pointer;
  display: grid;
  gap: 16px;
  grid-template-columns: 24px 1fr;
  padding: 22px;
}

.step-item input {
  accent-color: var(--teal);
  height: 22px;
  margin: 3px 0 0;
  width: 22px;
}

.step-item strong {
  color: var(--ink);
}

.step-item:has(input:checked) {
  border-color: rgba(23, 107, 106, 0.5);
  background: #f4fbf8;
}

.detail-band {
  background: var(--sky);
  display: grid;
  gap: clamp(28px, 6vw, 70px);
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.3fr);
  padding: clamp(66px, 9vw, 118px) clamp(20px, 6vw, 84px);
}

.detail-copy p {
  color: #415a5d;
  font-size: 1.05rem;
  line-height: 1.7;
}

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

.data-grid article {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(20, 48, 51, 0.1);
  min-height: 220px;
  padding: 24px;
}

.data-grid svg {
  color: var(--teal);
  height: 28px;
  margin-bottom: 30px;
  width: 28px;
}

.simulator {
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  display: grid;
  gap: 22px;
  padding: clamp(20px, 4vw, 34px);
}

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

.sim-form label {
  color: var(--muted);
  display: grid;
  font-size: 0.92rem;
  font-weight: 800;
  gap: 8px;
}

.input-shell {
  align-items: center;
  border: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr auto;
  min-height: 48px;
}

.input-shell input {
  background: transparent;
  border: 0;
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
  font-weight: 850;
  min-width: 0;
  outline: none;
  padding: 12px 8px 12px 14px;
}

.input-shell span {
  color: var(--muted);
  font-weight: 800;
  padding-right: 14px;
}

.result-panel {
  background: var(--teal-dark);
  color: white;
  display: grid;
  gap: 8px;
  padding: 24px;
}

.result-label {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.9rem;
  font-weight: 850;
}

.result-panel strong {
  color: #f4c95d;
  font-size: clamp(2.4rem, 5vw, 4rem);
  line-height: 1;
}

.result-panel span:last-child {
  color: rgba(255, 255, 255, 0.78);
}

.notes {
  background: #172f32;
  color: white;
  display: grid;
  gap: clamp(28px, 6vw, 80px);
  grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.4fr);
  padding: clamp(66px, 9vw, 112px) clamp(20px, 6vw, 84px);
}

.notes .section-kicker,
.notes h2 {
  color: #f4c95d;
}

.note-list {
  color: rgba(255, 255, 255, 0.78);
}

.site-footer {
  align-items: center;
  background: var(--paper);
  display: flex;
  gap: 24px;
  justify-content: space-between;
  padding: 36px clamp(20px, 6vw, 84px);
}

.site-footer div:first-child {
  display: grid;
  gap: 6px;
}

.site-footer span {
  color: var(--muted);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-links a {
  color: var(--teal);
  font-weight: 800;
}

@media (max-width: 920px) {
  .section-grid,
  .detail-band,
  .notes {
    grid-template-columns: 1fr;
  }

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

}

@media (max-width: 700px) {
  .site-header {
    position: absolute;
  }

  .top-nav {
    display: none;
  }

  .hero {
    min-height: auto;
  }

  .hero-media {
    background:
      linear-gradient(180deg, rgba(11, 35, 38, 0.82), rgba(11, 35, 38, 0.2)),
      url("https://images.unsplash.com/photo-1500530855697-b586d89ba3ee?auto=format&fit=crop&w=1200&q=82")
        center / cover;
  }

  .hero-content {
    padding: 128px 20px 82px;
  }

  .hero-actions,
  .site-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .stats-band,
  .sim-form {
    grid-template-columns: 1fr;
  }

  .stats-band div {
    min-height: 130px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
