:root {
  --bg: #f6f3ec;
  --surface: #ffffff;
  --ink: #243028;
  --muted: #5c6b60;
  --green: #1e462e;
  --green-dark: #143120;
  --green-soft: #eef5ee;
  --gold: #f2c14e;
  --gold-deep: #d99e2b;
  --line: #e6e2d6;
  --shadow: 0 10px 30px rgba(30, 70, 46, 0.08);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(246, 243, 236, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 14px;
  padding-bottom: 14px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: -0.01em;
  color: var(--green);
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: linear-gradient(145deg, var(--green), var(--green-dark));
  box-shadow: 0 4px 10px rgba(30, 70, 46, 0.25);
}

.nav {
  display: flex;
  gap: 22px;
  font-size: 0.94rem;
  font-weight: 600;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s ease;
}

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

/* ---------- Hero ---------- */
.hero {
  padding: 72px 0 64px;
  background:
    radial-gradient(1200px 500px at 80% -20%, rgba(242, 193, 78, 0.18), transparent 60%),
    radial-gradient(900px 500px at 0% 110%, rgba(30, 70, 46, 0.10), transparent 60%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: center;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--gold-deep);
  margin: 0 0 14px;
}

h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 18px;
  color: var(--ink);
}

.accent {
  color: var(--green);
  position: relative;
}

.lede {
  font-size: 1.12rem;
  color: var(--muted);
  max-width: 560px;
  margin: 0 0 30px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  background: linear-gradient(145deg, var(--green), var(--green-dark));
  color: #fff;
  font-weight: 700;
  padding: 14px 30px;
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(30, 70, 46, 0.3);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(30, 70, 46, 0.35);
}

.note {
  font-size: 0.85rem;
  color: var(--muted);
}

/* Hero visual */
.hero-visual {
  position: relative;
  display: grid;
  place-items: center;
}

.grow {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 22px 20px 14px;
  box-shadow: var(--shadow);
  transform: rotate(-2deg);
}

.coin {
  position: absolute;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, #ffe9a8, var(--gold) 62%, var(--gold-deep));
  box-shadow: 0 8px 18px rgba(217, 158, 43, 0.35), inset 0 2px 4px rgba(255, 255, 255, 0.6);
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--green-dark);
}

.coin-a { top: -4px; left: 6%; }
.coin-b { bottom: -6px; right: 4%; width: 44px; height: 44px; font-size: 1.05rem; }
.coin-c { top: 20%; right: 0; width: 36px; height: 36px; font-size: 0.9rem; }

/* ---------- Disclaimer ---------- */
.disclaimer {
  background: var(--green-dark);
  color: #eaf3ec;
  padding: 30px 0;
  border-top: 4px solid var(--gold);
}

.disclaimer h2 {
  font-size: 1.05rem;
  margin: 0 0 8px;
  color: var(--gold);
  letter-spacing: 0.02em;
}

.disclaimer p {
  margin: 0;
  color: #cfe0d4;
  font-size: 0.95rem;
  max-width: 860px;
}

/* ---------- Sections ---------- */
section {
  padding: 64px 0;
}

.section-head {
  margin-bottom: 34px;
}

.section-head h2,
.calc-copy h2 {
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  letter-spacing: -0.02em;
  margin: 0 0 10px;
}

.section-intro {
  color: var(--muted);
  margin: 0;
  max-width: 640px;
}

/* ---------- Concept cards ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 26px;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 34px rgba(30, 70, 46, 0.12);
}

.card-icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 15px;
  background: var(--green-soft);
  margin-bottom: 18px;
}

.card h3 {
  margin: 0 0 10px;
  font-size: 1.22rem;
  color: var(--green);
  letter-spacing: -0.01em;
}

.card p {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 0.97rem;
}

.card p:last-child {
  margin-bottom: 0;
}

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

/* ---------- Calculadora ---------- */
.calculadora {
  background: linear-gradient(160deg, var(--green) 0%, var(--green-dark) 100%);
  color: #fff;
}

.calc-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 40px;
  align-items: center;
}

.calc-copy .eyebrow {
  color: var(--gold);
}

.calc-copy .section-intro {
  color: #cfe0d4;
}

.calc-form {
  background: #fff;
  color: var(--ink);
  border-radius: 20px;
  padding: 26px;
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.25);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.calc-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--muted);
}

.calc-form input {
  padding: 11px 13px;
  border: 1.5px solid var(--line);
  border-radius: 11px;
  font-size: 1rem;
  color: var(--ink);
  background: var(--bg);
  transition: border-color 0.15s ease;
}

.calc-form input:focus {
  outline: none;
  border-color: var(--green);
  background: #fff;
}

.calc-result {
  grid-column: 1 / -1;
  font-size: 1.18rem;
  font-weight: 700;
  color: var(--green-dark);
  background: var(--green-soft);
  border: 1px solid #cfe3d4;
  border-radius: 12px;
  padding: 16px 18px;
  margin: 6px 0 0;
}

.calc-note {
  grid-column: 1 / -1;
  font-size: 0.8rem;
  color: var(--muted);
  margin: 0;
}

/* ---------- Glosario ---------- */
.glossary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 0;
}

.glossary div {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid var(--gold);
  border-radius: 12px;
  padding: 16px 18px;
}

.glossary dt {
  font-weight: 700;
  color: var(--green);
  margin-bottom: 4px;
}

.glossary dd {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* ---------- Preguntas ---------- */
.preguntas details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px 22px;
  margin-bottom: 12px;
  box-shadow: var(--shadow);
}

.preguntas summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--ink);
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.preguntas summary::-webkit-details-marker {
  display: none;
}

.preguntas summary::after {
  content: "+";
  font-size: 1.4rem;
  line-height: 1;
  color: var(--green);
  transition: transform 0.15s ease;
}

.preguntas details[open] summary::after {
  content: "−";
}

.preguntas details p {
  margin: 14px 0 0;
  color: var(--muted);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--green-dark);
  color: #cfe0d4;
  padding: 34px 0;
  font-size: 0.9rem;
}

.site-footer p {
  margin: 0 0 8px;
}

.site-footer strong {
  color: var(--gold);
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-grid,
  .calc-grid {
    grid-template-columns: 1fr;
  }
  .hero-visual {
    order: -1;
  }
  .cards {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .header-inner {
    flex-direction: column;
    gap: 10px;
  }
  .cards,
  .glossary,
  .calc-form {
    grid-template-columns: 1fr;
  }
  .hero {
    padding: 48px 0;
  }
  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }
  section {
    padding: 48px 0;
  }
}
