/* EonBoost — homepage
   Paleta: #1e1e1e carbón · #727072 gris · #c4a32f mostaza · #eff1f3 gris claro
   Font: Libre Baskerville · Ritmo en números pares */

:root {
  --ink: #1e1e1e;
  --gray: #727072;
  --gold: #c4a32f;
  --gold-dark: #a8892a;
  --mist: #eff1f3;
  --line: #e2e2e2;
  --field-line: #cfcfcf;
  --white: #ffffff;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: "Libre Baskerville", Georgia, serif;
  color: var(--ink);
  background: var(--white);
  font-size: 16px;
  line-height: 28px;
  -webkit-font-smoothing: antialiased;
}

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

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

.sr-only {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

.eyebrow {
  font-size: 12px;
  line-height: 16px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gray);
}

h1 { font-size: 40px; line-height: 52px; font-weight: 700; }
h2 { font-size: 32px; line-height: 42px; font-weight: 700; }
h3 { font-size: 24px; line-height: 32px; font-weight: 700; }

.body { font-size: 16px; line-height: 28px; }

.btn {
  display: inline-block;
  font-size: 16px;
  line-height: 24px;
  padding: 12px 24px;
  border-radius: 4px;
  text-decoration: none;
  transition: background 0.2s ease;
}
.btn-gold { background: var(--gold); color: var(--white); }
.btn-gold:hover { background: var(--gold-dark); }
.btn-dark { background: var(--ink); color: var(--white); padding: 16px 32px; }
.btn-dark:hover { background: #000000; }

a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

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

/* ---------- Header ---------- */
.site-header { padding: 24px 0; }
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
}
.logo {
  font-size: 20px; line-height: 24px; font-weight: 700;
  letter-spacing: 4px; color: var(--ink); text-decoration: none;
}
.socials { display: flex; gap: 16px; }
.socials a { color: var(--gray); display: inline-flex; transition: color 0.2s ease; }
.socials a:hover { color: var(--gold); }
.socials svg { width: 20px; height: 20px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--mist) url("assets/hero.jpg") center / cover no-repeat;
  min-height: 88vh;
  display: flex; align-items: center;
  padding: 96px 0;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg,
    rgba(255, 255, 255, 0.62) 0%,
    rgba(255, 255, 255, 0.34) 44%,
    rgba(255, 255, 255, 0) 68%);
}
.hero-inner { position: relative; width: 100%; }
.hero-text { max-width: 560px; }
.hero-text h1 { margin: 24px 0; }
.hero-text .lead { font-size: 16px; line-height: 28px; max-width: 480px; }

/* ---------- Freebie ---------- */
.freebie { background: var(--mist); padding: 96px 0; }
.freebie-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 64px; align-items: stretch;
}
.freebie-photo { position: relative; border-radius: 4px; overflow: hidden; }
.freebie-photo img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  object-position: 50% 38%;
}
.freebie-text h2 { margin: 24px 0; }
.includes { font-size: 16px; line-height: 28px; color: var(--gray); margin-top: 16px; }
.freebie-text > .btn { margin-top: 32px; }
.capture { margin-top: 32px; display: grid; gap: 16px; }
.capture input {
  font-family: inherit; font-size: 16px; line-height: 24px;
  padding: 16px; color: var(--ink);
  background: var(--white); border: 1px solid var(--field-line);
  border-radius: 4px; width: 100%;
}
.capture input::placeholder { color: var(--gray); }
.capture button {
  font-family: inherit; font-size: 16px; line-height: 24px;
  padding: 16px 32px; border: none; border-radius: 4px;
  background: var(--gold); color: var(--white); cursor: pointer;
  transition: background 0.2s ease;
}
.capture button:hover { background: var(--gold-dark); }
.micro { margin-top: 16px; font-size: 14px; line-height: 22px; color: var(--gray); }

/* ---------- Libros ---------- */
.books { padding: 96px 0; }
.books h2 { margin-top: 24px; }
.books .sub { margin-top: 16px; }
.books-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 48px; margin-top: 64px;
}
.book { display: flex; gap: 24px; align-items: flex-start; }
.book img { width: 168px; flex-shrink: 0; border-radius: 4px; }
.book .descriptor { font-size: 14px; line-height: 22px; color: var(--gray); margin: 8px 0 16px; }
.book .btn { margin-top: 24px; }

/* ---------- Cierre ---------- */
.closing {
  background: var(--mist) url("assets/cierre.jpg") center / cover no-repeat;
  padding: 128px 0;
}
.closing-inner { text-align: center; }
.closing h2 { max-width: 640px; margin: 0 auto; }
.closing .body { max-width: 520px; margin: 24px auto 32px; }

/* ---------- Footer ---------- */
.site-footer { padding: 64px 0 32px; border-top: 1px solid var(--line); }
.footer-top {
  display: flex; align-items: flex-start; justify-content: space-between;
}
.footer-brand .tagline {
  font-size: 12px; line-height: 16px; letter-spacing: 2px;
  text-transform: uppercase; color: var(--gray); margin-top: 8px;
}
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  border-top: 1px solid var(--line);
  margin-top: 32px; padding-top: 32px;
  font-size: 14px; line-height: 22px; color: var(--gray);
}
.legal { display: flex; gap: 24px; }
.legal a { color: var(--gray); text-decoration: none; }
.legal a:hover { color: var(--gold); }

/* ---------- Móvil ---------- */
@media (max-width: 900px) {
  h1 { font-size: 32px; line-height: 42px; }
  h2 { font-size: 28px; line-height: 38px; }

  .hero { padding: 64px 0; min-height: 76vh; }
  .hero::before {
    background: linear-gradient(180deg,
      rgba(255, 255, 255, 0.68) 0%,
      rgba(255, 255, 255, 0.42) 56%,
      rgba(255, 255, 255, 0.10) 100%);
  }

  .freebie { padding: 64px 0; }
  .freebie-grid { grid-template-columns: 1fr; gap: 32px; }
  .freebie-photo { aspect-ratio: 4 / 5; max-width: 320px; }

  .books { padding: 64px 0; }
  .books-grid { grid-template-columns: 1fr; gap: 48px; margin-top: 48px; }
  .book img { width: 128px; }

  .closing { padding: 96px 0; }

  .footer-top { flex-direction: column; gap: 24px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 16px; }
}

/* ---------- Página del freebie ---------- */
.hero-freebie {
  background-image: url("assets/freebie-hero.jpg");
  min-height: 80vh;
}
.hero-freebie::before {
  background: linear-gradient(90deg,
    rgba(255, 255, 255, 0.18) 0%,
    rgba(255, 255, 255, 0) 55%);
}
.benefits { padding: 96px 0; }
.benefits-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 64px; align-items: stretch;
}
.benefits-photo { position: relative; border-radius: 4px; overflow: hidden; }
.benefits-photo img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  object-position: 50% 50%;
}
.benefits-text h2 { margin: 24px 0; }
.benefit-list {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 32px; margin-top: 40px;
}
.benefit h3 { font-size: 18px; line-height: 26px; margin: 16px 0 8px; }
.benefit p { font-size: 16px; line-height: 28px; }
.icon-circle {
  width: 48px; height: 48px; border-radius: 50%;
  background: rgba(196, 163, 47, 0.14);
  display: inline-flex; align-items: center; justify-content: center;
}
.icon-circle svg {
  width: 24px; height: 24px;
  fill: none; stroke: var(--gold); stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round;
}
.signup { background: var(--mist); padding: 96px 0; }
.signup-inner { max-width: 560px; margin: 0 auto; text-align: center; }
.signup-inner h2 { margin: 24px 0 32px; }
.signup-inner .micro { margin-top: 16px; font-size: 14px; line-height: 22px; color: var(--gray); }
.closing-alt {
  position: relative;
  background: #fdfcf9 url("assets/freebie-cierre.jpg") center / cover no-repeat;
  padding: 128px 0;
}
.closing-alt::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(270deg,
    rgba(255, 255, 255, 0.55) 0%,
    rgba(255, 255, 255, 0.25) 42%,
    rgba(255, 255, 255, 0) 68%);
}
.closing-alt-inner { position: relative; max-width: 520px; margin-left: auto; }
.closing-alt-inner .body { margin: 24px 0 32px; }

/* ---------- Página de gracias ---------- */
.thanks { padding: 96px 0; }
.thanks-inner { max-width: 720px; margin: 0 auto; text-align: center; }
.check-badge {
  width: 72px; height: 72px; border-radius: 50%;
  background: var(--gold);
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 32px;
}
.check-badge svg {
  width: 36px; height: 36px;
  fill: none; stroke: #ffffff; stroke-width: 2.4;
  stroke-linecap: round; stroke-linejoin: round;
}
.thanks-sub { font-size: 24px; line-height: 36px; margin-top: 16px; }
.thanks-inner .body { margin: 24px auto 32px; max-width: 560px; }
.thanks-photo { margin-top: 48px; }
.thanks-photo img { width: 100%; border-radius: 4px; }
.signature { margin-top: 32px; font-size: 16px; line-height: 28px; }

@media (max-width: 900px) {
  .hero-freebie { min-height: 76vh; }
  .hero-freebie::before {
    background: linear-gradient(180deg,
      rgba(255, 255, 255, 0.72) 0%,
      rgba(255, 255, 255, 0.38) 56%,
      rgba(255, 255, 255, 0.10) 100%);
  }
  .benefits { padding: 64px 0; }
  .benefits-grid { grid-template-columns: 1fr; gap: 32px; }
  .benefits-photo { aspect-ratio: 4 / 5; }
  .benefit-list { grid-template-columns: 1fr; gap: 24px; }
  .signup { padding: 64px 0; }
  .closing-alt { padding: 80px 0; }
  .closing-alt-inner { margin-left: 0; }
  .closing-alt::before {
    background: linear-gradient(180deg,
      rgba(255, 255, 255, 0.25) 0%,
      rgba(255, 255, 255, 0.55) 55%,
      rgba(255, 255, 255, 0.72) 100%);
  }
  .thanks { padding: 64px 0; }
  .thanks-sub { font-size: 20px; line-height: 32px; }
}
