:root {
  --green: #79BE52;
  --green-dark: #00984A;
  --lime: #A6CE38;
  --forest: #154B31;

  --ink: #202522;
  --muted: #68716b;
  --paper: #ffffff;
  --soft: #f4f9f1;
  --soft-2: #edf6e9;
  --line: #dce8d8;
  --shadow: 0 18px 50px rgba(21, 75, 49, .10);

  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;

  --content: 1180px;
  --reading: 820px;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: min(calc(100% - 40px), var(--content));
  margin-inline: auto;
}

/* =========================
   HERO
   ========================= */

.hero {
  position: relative;
  overflow: hidden;
  padding: 88px 0 72px;
  background:
    radial-gradient(circle at 88% 18%, rgba(166,206,56,.25), transparent 23%),
    radial-gradient(circle at 7% 80%, rgba(121,190,82,.16), transparent 25%),
    linear-gradient(135deg, #f8fbf6 0%, #edf7e9 100%);
  border-bottom: 1px solid var(--line);
}

.hero::before {
  content: "";
  position: absolute;
  width: 360px;
  height: 360px;
  right: -150px;
  top: -170px;
  border: 70px solid rgba(121,190,82,.10);
  border-radius: 50%;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr);
  gap: 60px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 20px;
  color: var(--green-dark);
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 30px;
  height: 3px;
  border-radius: 10px;
  background: var(--lime);
}

h1 {
  max-width: 760px;
  margin: 0;
  color: var(--forest);
  font-size: clamp(2.6rem, 6vw, 5.4rem);
  line-height: .98;
  letter-spacing: -.055em;
}

.hero h1 strong {
  color: var(--green);
  font-weight: 900;
}

.hero-lead {
  max-width: 720px;
  margin: 28px 0 0;
  color: #46514a;
  font-size: clamp(1.05rem, 2vw, 1.24rem);
  line-height: 1.7;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  text-decoration: none;
  font-size: .9rem;
  font-weight: 800;
  border: 1px solid transparent;
}

.button-primary {
  background: var(--green-dark);
  color: #fff;
}

.button-primary:hover {
  background: var(--forest);
}

.button-secondary {
  background: #fff;
  color: var(--forest);
  border-color: var(--line);
}

.button-secondary:hover {
  border-color: var(--green);
  background: var(--soft);
}

.hero-visual {
  min-height: 420px;
  display: grid;
  place-items: center;
  position: relative;
}

/* Reemplazá este bloque por una imagen personalizada */
.book-placeholder {
  width: min(100%, 360px);
  aspect-ratio: .72;
  position: relative;
  background: linear-gradient(150deg, var(--forest), var(--green-dark));
  border-radius: 8px 22px 22px 8px;
  box-shadow: 28px 30px 55px rgba(21,75,49,.24);
  transform: rotate(-7deg);
}

.book-placeholder::before {
  content: "LIBRO\nACADÉMICO";
  white-space: pre;
  position: absolute;
  inset: 36px 28px auto;
  color: #fff;
  font-size: 1.7rem;
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -.04em;
}

.book-placeholder::after {
  content: "";
  position: absolute;
  width: 120px;
  height: 120px;
  right: 22px;
  bottom: 28px;
  border: 28px solid var(--lime);
  border-radius: 50%;
  opacity: .9;
}

.hero-note {
  position: absolute;
  left: 0;
  bottom: 12px;
  max-width: 280px;
  padding: 15px 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  color: var(--forest);
  font-size: .82rem;
  line-height: 1.5;
}

/* =========================
   INTRO
   ========================= */

.intro {
  padding: 70px 0 40px;
}

.intro-grid {
  display: grid;
  grid-template-columns: .65fr 1.35fr;
  gap: 70px;
  align-items: start;
}

.section-kicker {
  color: var(--green-dark);
  font-size: .74rem;
  font-weight: 900;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.intro h2 {
  margin: 10px 0 0;
  color: var(--forest);
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.05;
  letter-spacing: -.04em;
}

.intro-copy p {
  margin: 0 0 20px;
}

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

.intro-copy em {
  color: var(--green-dark);
  font-style: normal;
  font-weight: 700;
}

/* =========================
   LAYOUT PRINCIPAL
   ========================= */

.guide-layout {
  display: grid;
  grid-template-columns: .65fr 1.35fr;
  gap: 70px;
  padding: 60px 0 100px;
}

.guide {
  grid-column: 2;
  min-width: 0;
}

.section {
  scroll-margin-top: 24px;
  margin-bottom: 72px;
}

.section:last-child {
  margin-bottom: 0;
}

.section-heading {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 18px;
  align-items: center;
  margin-bottom: 28px;
}

.section-number {
  width: 64px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 18px;
  color: var(--forest);
  background: linear-gradient(145deg, #edf8e7, #dff0d7);
  border: 1px solid #cce4c1;
  font-size: 1.1rem;
  font-weight: 900;
}

.section h2 {
  margin: 0;
  color: var(--green-dark);
  font-size: clamp(1.35rem, 3vw, 2rem);
  line-height: 1.15;
  letter-spacing: -.025em;
}

.section h3 {
  margin: 42px 0 15px;
  color: var(--forest);
  font-size: 1.35rem;
  line-height: 1.2;
}

.section p {
  max-width: var(--reading);
  margin: 0 0 20px;
}

.section ul {
  max-width: var(--reading);
  margin: 0 0 24px;
  padding-left: 22px;
}

.section li {
  margin: 7px 0;
  padding-left: 5px;
}

.section li::marker {
  color: var(--green);
}

/* =========================
   COMPONENTES DE LECTURA
   ========================= */

.lead-card {
  margin: 26px 0 30px;
  padding: 25px 28px;
  border-left: 4px solid var(--green);
  background: var(--soft);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  color: #334139;
}

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

.example {
  position: relative;
  margin: 30px 0;
  padding: 28px 30px 28px 34px;
  background: #fbfdf9;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.example::before {
  content: "EJEMPLO";
  display: block;
  margin-bottom: 13px;
  color: var(--green-dark);
  font-size: .7rem;
  font-weight: 900;
  letter-spacing: .13em;
}

.example p {
  margin-bottom: 15px;
}

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

.quote {
  margin: 25px 0;
  padding: 22px 26px;
  border-left: 4px solid var(--lime);
  background: #f7faef;
  color: var(--forest);
  border-radius: 0 14px 14px 0;
  font-size: 1.02rem;
}

.comparison {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 30px 0;
}

.comparison-card {
  padding: 24px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: #fff;
}

.comparison-card:first-child {
  background: #fafafa;
}

.comparison-card:last-child {
  background: var(--soft);
  border-color: #cce4c1;
}

.comparison-card h4 {
  margin: 0 0 10px;
  color: var(--forest);
  font-size: .82rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.comparison-card p {
  margin: 0;
  font-size: .94rem;
}

.principle {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 15px;
  align-items: start;
  margin: 30px 0;
  padding: 22px;
  background: var(--forest);
  color: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
}

.principle-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--lime);
  color: var(--forest);
  font-weight: 900;
}

.principle p {
  margin: 0;
  max-width: none;
}

.final-card {
  margin-top: 35px;
  padding: 38px;
  color: #fff;
  background:
    radial-gradient(circle at 85% 15%, rgba(166,206,56,.30), transparent 28%),
    linear-gradient(135deg, var(--forest), var(--green-dark));
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.final-card h2 {
  color: #fff;
}

.final-card p {
  max-width: 850px;
}


/* =========================
   RESPONSIVE
   ========================= */

@media (max-width: 980px) {      .hero-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .hero-visual {
    min-height: 340px;
  }

  .intro-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .guide-layout {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .guide {
    grid-column: auto;
  }

}

@media (max-width: 640px) {
  .container {
    width: min(calc(100% - 28px), var(--content));
  }

  .hero {
    padding: 60px 0 50px;
  }

  h1 {
    font-size: clamp(2.45rem, 14vw, 4rem);
  }

  .hero-note {
    position: static;
    margin-top: 20px;
  }

  .hero-visual {
    min-height: auto;
    display: block;
  }

  .book-placeholder {
    margin: 20px auto 0;
  }

  .intro,
  .guide-layout {
    padding-top: 50px;
  }

  .section {
    margin-bottom: 55px;
  }

  .section-heading {
    grid-template-columns: 50px 1fr;
    gap: 13px;
  }

  .section-number {
    width: 50px;
    border-radius: 14px;
  }

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

  .lead-card,
  .example,
  .final-card {
    padding: 22px;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-note {
    text-align: left;
  }
}

@media print {
  .hero-actions {
    display: none;
  }

  body {
    font-size: 11pt;
  }
  .guide-layout {
    display: block;
  }

  .section {
    break-inside: avoid;
  }
}

/* =========================
   BANNER + DESCARGAR PDF
   ========================= */

.banner-hero {
  width: 100%;
  max-width: var(--content);
  display: block;
  margin-inline: auto;
}

.banner-descarga {
  padding: 22px 0 4px;
  text-align: center;
}

.btn-descarga {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 30px;
  border-radius: 999px;
  font-size: .95rem;
  font-weight: 800;
  letter-spacing: .02em;
  text-decoration: none;
  color: #fff;
  background: var(--green-dark);
  border: 2px solid var(--lime);
  box-shadow: 0 4px 14px rgba(21,75,49,.14);
  transition: background .2s ease, transform .2s ease, box-shadow .2s ease;
}

.btn-descarga:hover {
  background: var(--forest);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(21,75,49,.20);
}

.btn-descarga:active {
  transform: translateY(0);
}
