/* ==========================================================
   Algodón Academy — shared site styles v2
   Chapter-based page rhythm + responsive mobile-first
   ========================================================== */

:root {
  --terra: #B8613D;
  --terra-soft: #D4845F;
  --terra-hover: #A3552F;
  --terra-glow: rgba(184,97,61,0.08);
  --terra-tint: rgba(184,97,61,0.05);
  --terra-border: rgba(184,97,61,0.2);
  --sage: #4A6B4E;
  --sage-soft: #6E9472;
  --sage-wash: #EEF4EC;
  --sage-tint: rgba(74,107,78,0.05);
  --gold: #C69B6D;
  --gold-soft: #E4CBA8;
  --gold-glow: rgba(198,155,109,0.12);
  --gold-border: rgba(198,155,109,0.3);
  --cream: #FFFBF5;
  --linen: #FDF6ED;
  --warm-white: #FEFCF8;
  --ink: #1E1E1E;
  --ink-soft: #4A4A4A;
  --ink-muted: #7A7A7A;
  --ink-faint: #ABABAB;
  --line: rgba(0,0,0,0.06);
  --line-warm: rgba(198,155,109,0.2);
  --shadow-soft: 0 1px 2px rgba(0,0,0,0.02);
  --shadow-hover: 0 8px 32px rgba(184,97,61,0.08);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Outfit', sans-serif;
  background: var(--cream);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  font-weight: 300;
  line-height: 1.6;
  overflow-x: hidden;
}

img, svg { max-width: 100%; display: block; }
a { color: var(--terra); text-decoration: none; transition: color 0.15s; }
a:hover { color: var(--terra-hover); }

/* === Type === */
h1, h2, h3 {
  font-family: 'Instrument Serif', serif;
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--ink);
}
h1 { font-size: 56px; }
h2 { font-size: 36px; }
h3 { font-size: 24px; }
h4 {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--terra-hover);
}
em { font-style: italic; color: var(--terra); }
strong, .bold { font-weight: 500; color: var(--ink); }

p { font-size: 16px; color: var(--ink-soft); line-height: 1.72; font-weight: 300; }
.lead { font-size: 18px; color: var(--ink-muted); line-height: 1.65; max-width: 560px; }

/* === Layout === */
.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 32px;
}
.container-narrow {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 32px;
}

/* === Chapter system (new) =====================================
   Each major page section is a "chapter" — visually distinct
   block with its own background tint and breathing room.
   Stack chapters to create the rhythm of the page.
================================================================ */
.chapter {
  padding: 64px 0;
  position: relative;
}
.chapter--cream  { background: var(--cream); }
.chapter--linen  { background: var(--linen); }
.chapter--sage   { background: var(--sage-wash); }
.chapter--warm   { background: var(--warm-white); }
.chapter--terra  { background: var(--terra-tint); }

.chapter-tight   { padding: 44px 0; }

/* divider — extra-thin gold rule between chapters when needed */
.chapter-divider {
  width: 56px;
  height: 1px;
  background: var(--terra);
  margin: 0 auto 32px;
  opacity: 0.4;
}

.chapter-header {
  margin-bottom: 38px;
  max-width: 720px;
}
.chapter-header.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.chapter-number {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-size: 14px;
  color: var(--terra);
  letter-spacing: 0.04em;
  margin-bottom: 12px;
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
}
.chapter-number::before {
  content: '';
  width: 18px;
  height: 1px;
  background: var(--terra);
  margin-right: 4px;
  position: relative;
  top: -4px;
}

.section-eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--terra);
  margin-bottom: 14px;
  display: inline-block;
}
.section-title {
  font-size: 42px;
  line-height: 1.12;
  margin-bottom: 18px;
  letter-spacing: -0.02em;
  max-width: 640px;
}
.section-title em { color: var(--terra); }
.section-lead {
  font-size: 17px;
  color: var(--ink-muted);
  line-height: 1.65;
  max-width: 580px;
  margin-bottom: 0;
}

/* === Header / Nav === */
.site-header {
  position: sticky;
  top: 0;
  background: rgba(255, 251, 245, 0.92);
  border-bottom: 1px solid var(--line-warm);
  z-index: 50;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 18px;
  padding-bottom: 18px;
}
.brand-mark {
  font-family: 'Instrument Serif', serif;
  font-size: 22px;
  color: var(--ink);
  font-weight: 400;
  letter-spacing: -0.01em;
}
.brand-mark em { color: var(--terra); }

.nav-links {
  display: flex;
  gap: 28px;
  align-items: center;
}
.nav-links a {
  font-size: 14px;
  color: var(--ink-soft);
  font-weight: 400;
  transition: color 0.15s;
}
.nav-links a:hover { color: var(--terra); }
.nav-cta {
  padding: 9px 20px;
  background: var(--terra);
  color: #fff !important;
  border-radius: 100px;
  font-size: 13.5px;
  font-weight: 500;
}
.nav-cta:hover { background: var(--terra-hover); color: #fff !important; }

/* Mobile hamburger */
.nav-toggle {
  display: none;
  background: transparent;
  border: 1.5px solid var(--terra-border);
  border-radius: 100px;
  padding: 8px 14px;
  cursor: pointer;
  color: var(--terra-hover);
  font-family: 'Outfit', sans-serif;
  font-size: 13px;
  font-weight: 500;
}
.nav-toggle:hover { background: var(--terra-glow); }

/* === Hero === */
.hero {
  padding: 52px 0 44px;
  position: relative;
  overflow: hidden;
  background: var(--cream);
}
.hero-deco {
  position: absolute;
  top: -120px;
  right: -120px;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  border: 1px solid var(--line-warm);
  pointer-events: none;
}
.hero-deco::after {
  content: '';
  position: absolute;
  inset: 60px;
  border-radius: 50%;
  border: 1px solid var(--line);
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border: 1px solid var(--terra-border);
  border-radius: 100px;
  font-size: 11px;
  font-weight: 500;
  color: var(--terra-hover);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--terra-glow);
  margin-bottom: 28px;
}
.hero-badge::before {
  content: '';
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--terra);
}
.hero h1 {
  font-size: 64px;
  line-height: 1.05;
  margin-bottom: 22px;
  max-width: 780px;
  letter-spacing: -0.02em;
}
.hero .lead {
  font-size: 19px;
  max-width: 560px;
  margin-bottom: 36px;
}
.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* === Buttons === */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 30px;
  border-radius: 100px;
  font-family: 'Outfit', sans-serif;
  font-size: 15px;
  font-weight: 500;
  border: none;
  cursor: pointer;
  letter-spacing: 0.01em;
  transition: all 0.18s;
  text-decoration: none;
  min-height: 48px;
  justify-content: center;
}
.btn-primary { background: var(--terra); color: #fff; }
.btn-primary:hover { background: var(--terra-hover); color: #fff; transform: translateY(-1px); box-shadow: 0 6px 18px rgba(184,97,61,0.2); }
.btn-secondary {
  background: transparent;
  color: var(--terra);
  border: 1.5px solid var(--terra-border);
}
.btn-secondary:hover { background: var(--terra-glow); border-color: var(--terra); color: var(--terra-hover); }
.btn-large { padding: 17px 36px; font-size: 16px; min-height: 56px; }
.btn-sage  { background: var(--sage); color: #fff; }
.btn-sage:hover { background: #3D5A41; color: #fff; transform: translateY(-1px); }
.btn-block { width: 100%; }

/* === Cards === */
.card {
  background: var(--warm-white);
  border: 1px solid var(--line-warm);
  border-radius: 16px;
  padding: 32px;
  transition: all 0.2s;
}
.card-glow { box-shadow: var(--shadow-soft); }
.card-glow:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); border-color: var(--terra-border); }

.card-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--terra);
  margin-bottom: 10px;
}
.card h3 { margin-bottom: 10px; }
.card p { font-size: 15px; margin-bottom: 16px; }
.card-cta {
  font-size: 14px;
  font-weight: 500;
  color: var(--terra);
}
.card-cta::after { content: ' →'; transition: margin 0.15s; }
.card-glow:hover .card-cta::after { margin-left: 4px; }
.card-cta:hover { color: var(--terra-hover); }

/* === Grids === */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

/* === ES vs NO ES — 2-column filter block (new) =================
   Use inside a "Para quién es" chapter. Sage = positive, terra
   = negative, both stack on mobile.
================================================================= */
.filter-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 8px;
}
.filter-card {
  background: var(--warm-white);
  border-radius: 20px;
  padding: 36px 32px;
  position: relative;
  border: 1px solid var(--line-warm);
}
.filter-card--yes {
  background: var(--sage-wash);
  border: 1px solid rgba(74,107,78,0.18);
}
.filter-card--no {
  background: var(--terra-tint);
  border: 1px solid var(--terra-border);
}
.filter-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}
.filter-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 600;
  flex-shrink: 0;
}
.filter-card--yes .filter-icon {
  background: var(--sage);
  color: #fff;
}
.filter-card--no .filter-icon {
  background: var(--terra);
  color: #fff;
}
.filter-card-title {
  font-family: 'Instrument Serif', serif;
  font-size: 22px;
  line-height: 1.2;
  color: var(--ink);
}
.filter-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.filter-list li {
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink-soft);
  font-weight: 300;
  padding: 10px 0 10px 28px;
  position: relative;
  border-bottom: 1px solid rgba(0,0,0,0.04);
}
.filter-list li:last-child { border-bottom: none; }
.filter-list li::before {
  position: absolute;
  left: 0;
  top: 11px;
  font-size: 13px;
  font-weight: 600;
}
.filter-card--yes .filter-list li::before {
  content: '✓';
  color: var(--sage);
}
.filter-card--no .filter-list li::before {
  content: '✗';
  color: var(--terra);
}

/* === Email form === */
.signup-form {
  display: flex;
  gap: 10px;
  max-width: 480px;
  flex-wrap: wrap;
}
.signup-form input[type="email"] {
  flex: 1;
  min-width: 220px;
  padding: 14px 22px;
  border: 1.5px solid var(--line-warm);
  border-radius: 100px;
  background: var(--warm-white);
  font-family: 'Outfit', sans-serif;
  font-size: 15px;
  color: var(--ink);
  font-weight: 400;
  transition: border-color 0.15s;
  min-height: 48px;
}
.signup-form input[type="email"]:focus {
  outline: none;
  border-color: var(--terra);
}
.signup-form input[type="email"]::placeholder { color: var(--ink-faint); }
.form-note {
  font-size: 12.5px;
  color: var(--ink-faint);
  margin-top: 12px;
  font-weight: 300;
}

/* === Callout / panel === */
.panel {
  background: var(--linen);
  border-left: 3px solid var(--terra);
  border-radius: 12px;
  padding: 24px 28px;
  margin: 20px 0;
}
.panel-title {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--terra-hover);
  margin-bottom: 10px;
}
.panel p { font-size: 15px; margin-bottom: 0; }

/* === Footer === */
.site-footer {
  background: var(--linen);
  padding: 64px 0 36px;
  border-top: 1px solid var(--line-warm);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 56px;
  margin-bottom: 40px;
}
.footer-grid h5 {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 14px;
}
.footer-grid a {
  display: block;
  font-size: 14px;
  color: var(--ink-soft);
  padding: 5px 0;
}
.footer-grid a:hover { color: var(--terra); }
.footer-grid p { font-size: 14px; }
.footer-bottom {
  border-top: 1px solid var(--line-warm);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 12px;
  color: var(--ink-faint);
  flex-wrap: wrap;
}

/* === About section === */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 64px;
  align-items: center;
}
.about-photo {
  aspect-ratio: 4 / 5;
  background: var(--linen);
  border-radius: 20px;
  border: 1px solid var(--line-warm);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}
.about-photo-placeholder {
  font-family: 'Instrument Serif', serif;
  font-size: 100px;
  color: var(--terra);
  opacity: 0.4;
}
.about-photo::after {
  content: 'Tu foto aquí';
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
  font-weight: 500;
}
.about-text h2 { font-size: 38px; margin-bottom: 18px; line-height: 1.1; }
.about-text p { font-size: 16px; line-height: 1.72; margin-bottom: 14px; }
.about-signature {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-size: 22px;
  color: var(--terra);
  margin-top: 18px;
  display: block;
}
.about-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 6px 0 22px;
}
.about-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 13px;
  border: 1px solid var(--terra-border);
  border-radius: 100px;
  font-size: 11.5px;
  font-weight: 500;
  color: var(--terra-hover);
  letter-spacing: 0.02em;
  background: var(--terra-glow);
}
.about-chip::before {
  content: '';
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--terra);
}

/* === Product hero (workbook mockup grid) === */
.product-hero {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 64px;
  align-items: center;
  padding-top: 24px;
}
.mockup-stack {
  position: relative;
  padding: 16px;
}
.mockup-page {
  background: var(--cream);
  border: 1px solid var(--line-warm);
  border-radius: 6px;
  padding: 36px 28px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.08);
  position: relative;
  aspect-ratio: 0.707 / 1;
  max-width: 360px;
  margin: 0 auto;
}
.mockup-page::before {
  content: '';
  position: absolute;
  inset: 12px 18px 18px 18px;
  border-radius: 4px;
}
.mockup-page .m-brand {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--terra);
  margin-bottom: 28px;
}
.mockup-page .m-line {
  width: 24px; height: 1.5px;
  background: var(--terra);
  margin-bottom: 14px;
  border-radius: 1px;
}
.mockup-page .m-title {
  font-family: 'Instrument Serif', serif;
  font-size: 20px;
  line-height: 1.2;
  color: var(--ink);
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}
.mockup-page .m-title em { color: var(--terra); font-style: italic; }
.mockup-page .m-sub {
  font-size: 9px;
  color: var(--ink-muted);
  line-height: 1.6;
  font-weight: 300;
  margin-bottom: 18px;
}
.mockup-page .m-index {
  margin-top: 14px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 14px;
}
.mockup-page .m-index-item {
  display: flex;
  gap: 6px;
  align-items: center;
  font-size: 8px;
  color: var(--ink-muted);
  padding: 3px 0;
  border-bottom: 1px solid var(--line);
}
.mockup-page .m-index-num {
  font-family: 'Instrument Serif', serif;
  font-size: 10px;
  color: var(--terra);
}

/* === Pricing block === */
.pricing-block {
  background: var(--warm-white);
  border: 1.5px solid var(--terra-border);
  border-radius: 20px;
  padding: 32px 36px;
}
.pricing-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--terra);
  margin-bottom: 8px;
}
.pricing-price {
  font-family: 'Instrument Serif', serif;
  font-size: 48px;
  line-height: 1;
  color: var(--ink);
  margin-bottom: 6px;
  letter-spacing: -0.02em;
}
.pricing-price small {
  font-size: 16px;
  color: var(--ink-muted);
  font-family: 'Outfit', sans-serif;
  font-weight: 300;
  margin-left: 4px;
}
.pricing-old {
  font-size: 14px;
  color: var(--ink-faint);
  text-decoration: line-through;
  margin-bottom: 8px;
}
.pricing-save {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  background: var(--sage);
  color: #fff;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 100px;
  margin-bottom: 20px;
}
.pricing-save::before {
  content: '✓';
  font-weight: 700;
}
.pricing-features {
  list-style: none;
  margin: 18px 0;
}
.pricing-features li {
  font-size: 14px;
  color: var(--ink-soft);
  padding: 8px 0;
  padding-left: 26px;
  position: relative;
  font-weight: 300;
  line-height: 1.5;
}
.pricing-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 8px;
  color: var(--sage);
  font-weight: 600;
}

/* === Steps / numbered list (for "Cómo funciona" chapter) === */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 12px;
}
.step {
  position: relative;
  padding-top: 24px;
}
.step-num {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-size: 56px;
  line-height: 1;
  color: var(--terra);
  opacity: 0.45;
  margin-bottom: 16px;
  display: block;
}
.step h3 {
  font-size: 22px;
  margin-bottom: 10px;
}
.step p {
  font-size: 15px;
}

/* === Test === */
.test-progress {
  height: 5px;
  background: var(--line-warm);
  border-radius: 100px;
  overflow: hidden;
  margin-bottom: 32px;
}
.test-progress-fill {
  height: 100%;
  background: var(--terra);
  border-radius: 100px;
  transition: width 0.3s ease;
}
.test-section { display: none; }
.test-section.active { display: block; }

.test-question {
  background: var(--warm-white);
  border: 1px solid var(--line-warm);
  border-radius: 14px;
  padding: 22px 26px;
  margin-bottom: 14px;
  transition: border-color 0.15s;
}
.test-question:hover { border-color: var(--terra-border); }
.test-question-text {
  font-size: 16px;
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 16px;
  line-height: 1.5;
}
.test-options {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.test-option {
  flex: 1;
  min-width: 100px;
  padding: 12px 16px;
  border: 1.5px solid var(--line-warm);
  border-radius: 100px;
  background: var(--warm-white);
  font-family: 'Outfit', sans-serif;
  font-size: 13.5px;
  color: var(--ink-soft);
  cursor: pointer;
  transition: all 0.15s;
  text-align: center;
  font-weight: 400;
  min-height: 44px;
}
.test-option:hover {
  border-color: var(--terra-border);
  background: var(--terra-glow);
  color: var(--terra-hover);
}
.test-option.selected {
  background: var(--terra);
  color: #fff;
  border-color: var(--terra);
}

.test-nav {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 32px;
}

.test-result { display: none; text-align: center; }
.test-result.active { display: block; }
.test-score-circle {
  width: 160px;
  height: 160px;
  border: 4px solid var(--terra);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 28px;
  font-family: 'Instrument Serif', serif;
  font-size: 52px;
  color: var(--terra);
  background: var(--cream);
}
.test-score-circle small {
  font-size: 16px;
  color: var(--ink-muted);
  font-family: 'Outfit', sans-serif;
  font-weight: 300;
}

/* === Promise / final close === */
.promise-block {
  background: var(--warm-white);
  border: 1px solid var(--line-warm);
  border-radius: 20px;
  padding: 40px;
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
  box-shadow: var(--shadow-soft);
}
.promise-block .panel-title {
  margin-bottom: 12px;
}
.promise-block p { font-size: 16px; }

/* === Inline mini-illustration / glyph === */
.brand-glyph {
  width: 56px;
  height: 56px;
  margin: 0 auto 18px;
  border: 1.5px solid var(--terra);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-size: 26px;
  color: var(--terra);
  background: var(--terra-glow);
}

/* === Freebie block (centered form + benefit strip) ========== */
.freebie-points {
  list-style: none;
  margin: 0;
  padding: 0;
}
.freebie-points--row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px 28px;
  margin: 24px auto 28px;
  max-width: 640px;
}
.freebie-points li {
  position: relative;
  padding-left: 24px;
  font-size: 14px;
  color: var(--ink-soft);
  font-weight: 400;
}
.freebie-points li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 1px;
  color: var(--sage);
  font-weight: 600;
}
.freebie-form-card {
  background: var(--warm-white);
  border: 1px solid var(--line-warm);
  border-radius: 18px;
  padding: 28px;
  box-shadow: 0 8px 32px rgba(74,107,78,0.08);
  max-width: 480px;
  margin: 0 auto;
}
.freebie-form-card .form-note { text-align: center; margin-top: 12px; }
.freebie-line {
  font-size: 14px;
  color: var(--ink-soft);
  max-width: 680px;
  margin: 22px auto 26px;
  text-align: center;
  line-height: 1.6;
}

/* === Responsive ============================================= */
@media (max-width: 980px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .product-hero { grid-template-columns: 1fr; gap: 40px; }
  .about-grid { grid-template-columns: 1fr; gap: 36px; }
  .about-photo { max-width: 320px; margin: 0 auto; }
}

@media (max-width: 760px) {
  h1 { font-size: 42px; }
  h2, .section-title { font-size: 30px; }
  .hero h1 { font-size: 42px; }
  .hero { padding: 44px 0 36px; }
  .chapter { padding: 52px 0; }
  .chapter-header { margin-bottom: 30px; }

  .grid-3, .grid-2, .steps-grid { grid-template-columns: 1fr; gap: 14px; }
  .filter-grid { grid-template-columns: 1fr; gap: 16px; }

  /* Mobile nav: hide regular links, show hamburger */
  .nav-links { display: none; gap: 14px; }
  .nav-links.is-open {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--cream);
    flex-direction: column;
    align-items: stretch;
    padding: 18px 32px 24px;
    gap: 18px;
    border-bottom: 1px solid var(--line-warm);
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
  }
  .nav-links.is-open a { padding: 8px 0; font-size: 16px; }
  .nav-links.is-open .nav-cta { text-align: center; padding: 12px 20px; }
  .nav-toggle { display: inline-flex; }

  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; gap: 10px; text-align: center; }

  .about-text h2 { font-size: 28px; }
  .test-nav { flex-direction: row; }
  .test-nav .btn { flex: 1; }
}

@media (max-width: 520px) {
  .container, .container-narrow { padding: 0 22px; }
  .site-header .container { padding-top: 14px; padding-bottom: 14px; }
  .hero h1 { font-size: 34px; }
  .section-title { font-size: 26px; }
  .chapter { padding: 44px 0; }
  .card { padding: 24px; }
  .filter-card { padding: 28px 22px; }
  .pricing-block { padding: 26px 24px; }
  .pricing-price { font-size: 38px; }
  .promise-block { padding: 28px 22px; }
  .test-question { padding: 18px 20px; }
  .test-option { font-size: 13px; padding: 12px 14px; }
  .btn { padding: 12px 22px; }
  .btn-large { padding: 15px 28px; font-size: 15px; }
}

/* === MailerLite embed overrides ==============================
   The freebie form is rendered by MailerLite's universal.js into
   .ml-embedded[data-form]. MailerLite scopes its styles under a
   dynamic #mlb2-NNNN ID with selectors like:
     #mlb2-NNN.ml-form-embedContainer .ml-form-embedWrapper
       .ml-form-embedBody .ml-form-embedSubmit button   → (1,4,1)
   To win we mirror its full descendant chain (under our #freebie
   section ID) so every rule lands at (1,5,1)+ and outranks it.
   Goal: clean stacked form — cream pill input + terra pill button.
============================================================== */
#freebie .ml-embed-wrap { max-width: 100%; margin: 0; }

/* Strip MailerLite's wrapper chrome (backgrounds, borders, padding) */
#freebie .ml-embed-wrap .ml-embedded .ml-form-embedContainer,
#freebie .ml-embed-wrap .ml-embedded .ml-form-align-center,
#freebie .ml-embed-wrap .ml-embedded .ml-form-embedWrapper,
#freebie .ml-embed-wrap .ml-embedded .ml-form-embedWrapper .ml-form-embedBody {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 0 auto !important;
  width: 100% !important;
  max-width: 100% !important;
  text-align: center !important;
}

/* Hide MailerLite's own title/description — we have our own copy above */
#freebie .ml-embed-wrap .ml-embedded .ml-form-embedWrapper .ml-form-embedContent {
  display: none !important;
}

/* Form layout — stacked, centered */
#freebie .ml-embed-wrap .ml-embedded .ml-form-embedWrapper form.ml-block-form,
#freebie .ml-embed-wrap .ml-embedded .ml-form-embedWrapper .ml-form-formContent {
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}
#freebie .ml-embed-wrap .ml-embedded .ml-form-embedWrapper .ml-form-embedBody .ml-form-fieldRow {
  margin: 0 0 12px 0 !important;
  padding: 0 !important;
  width: 100% !important;
}
#freebie .ml-embed-wrap .ml-embedded .ml-form-embedWrapper .ml-form-embedBody .ml-form-fieldRow .ml-field-group {
  width: 100% !important;
}

/* Email input → cream pill */
#freebie .ml-embed-wrap .ml-embedded .ml-form-embedWrapper .ml-form-embedBody .ml-form-fieldRow input.form-control,
#freebie .ml-embed-wrap .ml-embedded .ml-form-embedWrapper .ml-form-embedBody .ml-form-fieldRow input[type="email"] {
  width: 100% !important;
  padding: 14px 22px !important;
  border: 1.5px solid var(--line-warm) !important;
  border-radius: 100px !important;
  background: var(--warm-white) !important;
  font-family: 'Outfit', sans-serif !important;
  font-size: 15px !important;
  color: var(--ink) !important;
  font-weight: 400 !important;
  min-height: 50px !important;
  box-shadow: none !important;
  text-align: center !important;
}
#freebie .ml-embed-wrap .ml-embedded .ml-form-embedWrapper .ml-form-embedBody .ml-form-fieldRow input.form-control:focus {
  outline: none !important;
  border-color: var(--terra) !important;
}
#freebie .ml-embed-wrap .ml-embedded .ml-form-embedWrapper .ml-form-embedBody .ml-form-fieldRow input.form-control::placeholder {
  color: var(--ink-faint) !important;
}

/* Submit → terra pill button (full width, below input) */
#freebie .ml-embed-wrap .ml-embedded .ml-form-embedWrapper .ml-form-embedBody .ml-form-embedSubmit {
  margin: 0 !important;
  width: 100% !important;
}
/* Only target button.primary for display — the sibling .loading
   button must keep its inline display:none until submit, so we
   never set `display` on the generic/loading button. */
#freebie .ml-embed-wrap .ml-embedded .ml-form-embedWrapper .ml-form-embedBody .ml-form-embedSubmit button.primary {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  padding: 14px 30px !important;
  border-radius: 100px !important;
  background: var(--terra) !important;
  color: #fff !important;
  font-family: 'Outfit', sans-serif !important;
  font-size: 15px !important;
  font-weight: 500 !important;
  border: none !important;
  cursor: pointer !important;
  min-height: 50px !important;
  box-shadow: none !important;
  transition: background 0.18s, transform 0.18s !important;
}
#freebie .ml-embed-wrap .ml-embedded .ml-form-embedWrapper .ml-form-embedBody .ml-form-embedSubmit button.primary:hover {
  background: var(--terra-hover) !important;
  transform: translateY(-1px) !important;
}
/* Loading-state button (spinner shown only while submitting) — brand
   its shape + color, but do NOT set display (preserve inline none). */
#freebie .ml-embed-wrap .ml-embedded .ml-form-embedWrapper .ml-form-embedBody .ml-form-embedSubmit button.loading {
  width: 100% !important;
  padding: 14px 30px !important;
  border-radius: 100px !important;
  background: var(--terra) !important;
  color: #fff !important;
  border: none !important;
  min-height: 50px !important;
  box-shadow: none !important;
  text-align: center !important;
  font-size: 0 !important;
}
/* While submitting, MailerLite swaps the button for this one with a
   spinner. Hide the spinner and show the same label so the click looks
   seamless (no "weird" loading bubble). We never set `display` here —
   MailerLite toggles that inline on submit. */
#freebie .ml-embed-wrap .ml-embedded .ml-form-embedWrapper .ml-form-embedBody .ml-form-embedSubmit button.loading .ml-form-embedSubmitLoad {
  display: none !important;
}
#freebie .ml-embed-wrap .ml-embedded .ml-form-embedWrapper .ml-form-embedBody .ml-form-embedSubmit button.loading::after {
  content: "Quiero el ejercicio gratis";
  font-family: 'Outfit', sans-serif;
  font-size: 15px;
  font-weight: 500;
  color: #fff;
}

/* Success message (shown if not redirecting) */
#freebie .ml-embed-wrap .ml-embedded .ml-form-embedWrapper .ml-form-successBody {
  text-align: center !important;
  padding: 0 !important;
}
#freebie .ml-embed-wrap .ml-embedded .ml-form-embedWrapper .ml-form-successBody .ml-form-successContent h4 {
  font-family: 'Instrument Serif', serif !important;
  color: var(--ink) !important;
}
