/* ================================================================
   Amaloha Downloads — Base (alineado al DS hibrido CxE)
   Mantiene la API de clases (.cover, .chapter, .callout, .exercise,
   .reflection-box, .affirmation, footer, .print-btn) para que los 35
   HTMLs de lead magnets existentes se actualicen sin editarlos uno a uno.
================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Bodoni+Moda:ital,wght@0,400;0,500;0,600;0,700;0,800;1,400;1,700&family=Jost:wght@300;400;500;600;700&family=Great+Vibes&display=swap');

:root {
  /* Paleta CxE (nombres locales que usan los HTMLs) */
  --cream:        #F7EFE2;
  --cream-dark:   #EFE3CF;   /* era #F5F0E8 */
  --cream-pale:   #FDFAF4;
  --dark:         #2A1A0E;   /* ink */
  --gold:         #B48532;   /* saffron-d */
  --gold-light:   #D4A34A;   /* ochre */
  --copper:       #D07553;   /* terracotta */
  --copper-d:     #B55A3D;   /* terracotta-d */
  --sage:         #A8B99A;
  --sage-d:       #7E9270;
  --border:       rgba(58, 40, 23, 0.12);
  --hairline:     rgba(58, 40, 23, 0.20);
  --text:         #3A2817;
  --text-muted:   #7A6251;

  --f-heading: 'Bodoni Moda', serif;
  --f-body:    'Jost', sans-serif;
  --f-script:  'Great Vibes', cursive;
}

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

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: var(--f-body);
  background: var(--cream);
  color: var(--text);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Sutil paper grain en body */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 99;
  opacity: 0.04;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ── COVER PAGE ─────────────────────────────── */
.cover {
  min-height: 100vh;
  background:
    radial-gradient(circle at 20% 25%, rgba(212, 163, 74, 0.18) 0%, transparent 45%),
    radial-gradient(circle at 85% 75%, rgba(126, 146, 112, 0.15) 0%, transparent 50%),
    linear-gradient(135deg, var(--dark) 0%, #3e2719 100%);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(32px, 5vw, 64px);
  position: relative;
  overflow: hidden;
  page-break-after: always;
  border-bottom: 3px solid var(--gold-light);
}

.cover::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -20%;
  width: 60vw;
  height: 60vw;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 163, 74, 0.22), transparent 70%);
  pointer-events: none;
}
.cover::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.08;
  mix-blend-mode: overlay;
  pointer-events: none;
}
.cover > * { position: relative; z-index: 1; }

.cover-logo {
  font-family: var(--f-script);
  font-size: 2.4rem;
  color: var(--gold-light);
  letter-spacing: 0.02em;
  line-height: 1;
}

.cover-eyebrow {
  display: inline-block;
  font-family: var(--f-body);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.38em;
  font-weight: 600;
  color: var(--gold-light);
  padding: 8px 16px;
  border: 1px solid var(--gold-light);
  border-radius: 999px;
  margin-bottom: 1.5rem;
  box-shadow: 2px 2px 0 var(--gold-light);
  background: transparent;
}

.cover-title {
  font-family: var(--f-heading);
  font-size: clamp(3rem, 7.5vw, 6rem);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: #fff;
  margin-bottom: 2rem;
}

.cover-title em {
  font-style: italic;
  font-weight: 700;
  color: var(--gold-light);
}

.cover-subtitle {
  font-family: var(--f-heading);
  font-style: italic;
  font-size: clamp(1.1rem, 1.8vw, 1.4rem);
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.78);
  max-width: 560px;
  font-weight: 400;
}

.cover-author {
  font-family: var(--f-body);
  font-size: 11px;
  color: var(--gold-light);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  font-weight: 600;
}

.cover-divider {
  width: 64px;
  height: 2px;
  background: var(--gold-light);
  margin: 2rem 0;
  border-radius: 999px;
}

/* ── CONTENT PAGES ──────────────────────────── */
.content {
  max-width: 820px;
  margin: 0 auto;
  padding: clamp(48px, 7vw, 96px) clamp(24px, 4vw, 56px);
}

/* Chapter */
.chapter {
  page-break-before: always;
  padding-top: clamp(48px, 7vw, 96px);
}
.chapter:first-child {
  page-break-before: avoid;
  padding-top: 0;
}

.chapter-number {
  display: inline-block;
  font-family: var(--f-heading);
  font-style: italic;
  font-weight: 700;
  font-size: 72px;
  color: var(--gold-light);
  line-height: 1;
  margin-bottom: 0.8rem;
  opacity: 0.5;
}

.chapter-title {
  font-family: var(--f-heading);
  font-size: clamp(2.2rem, 5.5vw, 3.8rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--dark);
  margin-bottom: 1rem;
  position: relative;
  padding-top: 1rem;
}
.chapter-title::before {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  background: var(--gold-light);
  margin-bottom: 1.2rem;
  border-radius: 999px;
}

.chapter-title em { font-style: italic; color: var(--copper); }

.section-title {
  font-family: var(--f-heading);
  font-size: clamp(1.4rem, 2.4vw, 1.8rem);
  font-weight: 700;
  color: var(--dark);
  margin: 3rem 0 1rem;
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.section-title em { font-style: italic; color: var(--copper); }

/* Typography */
p { margin-bottom: 1.4rem; font-size: 1.05rem; color: var(--text); }

.lead {
  font-family: var(--f-heading);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.15rem, 1.8vw, 1.35rem);
  line-height: 1.55;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--hairline);
}

blockquote {
  margin: 2.5rem 0;
  padding: 2rem 2.5rem;
  background: var(--cream-pale);
  border: 1px solid var(--hairline);
  border-left: 3px solid var(--gold-light);
  border-radius: 0 1rem 1rem 0;
  box-shadow: 3px 3px 0 var(--hairline);
}

blockquote p {
  font-family: var(--f-heading);
  font-style: italic;
  font-size: 1.3rem;
  line-height: 1.5;
  color: var(--dark);
  margin: 0;
}

blockquote cite {
  display: block;
  margin-top: 0.75rem;
  font-style: normal;
  font-family: var(--f-body);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--gold);
  font-weight: 600;
}

/* Lists */
ul, ol { padding-left: 1.6rem; margin-bottom: 1.4rem; }
li { margin-bottom: 0.5rem; line-height: 1.7; color: var(--text); }

/* Links en contenido */
.content a {
  color: var(--copper);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}
.content a:hover { color: var(--copper-d); }

/* ── CALLOUT ─────────────────────────────── */
.callout {
  background: var(--cream-pale);
  border: 1px solid var(--hairline);
  border-radius: 1.2rem;
  padding: 2.2rem;
  margin: 2.5rem 0;
  box-shadow: 3px 3px 0 var(--gold-light);
  position: relative;
}

.callout--gold   { box-shadow: 3px 3px 0 var(--gold-light); }
.callout--copper { box-shadow: 3px 3px 0 var(--copper); }
.callout--sage   { box-shadow: 3px 3px 0 var(--sage); }

.callout-label {
  display: inline-block;
  font-family: var(--f-body);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-weight: 700;
  color: var(--gold);
  padding: 5px 12px;
  background: var(--cream);
  border: 1px solid var(--hairline);
  border-radius: 999px;
  margin-bottom: 1rem;
}

/* ── EXERCISE (dark card) ──────────────────── */
.exercise {
  background: linear-gradient(160deg, var(--dark) 0%, #3a281b 100%);
  color: #fff;
  border-radius: 1.2rem;
  padding: 2.5rem;
  margin: 2.5rem 0;
  border: 1px solid var(--dark);
  box-shadow: 6px 6px 0 var(--gold-light);
  position: relative;
}

.exercise-label {
  display: inline-block;
  font-family: var(--f-body);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-weight: 700;
  color: var(--gold-light);
  padding: 5px 12px;
  border: 1px solid var(--gold-light);
  border-radius: 999px;
  margin-bottom: 1rem;
  box-shadow: 2px 2px 0 var(--gold-light);
}

.exercise h4 {
  font-family: var(--f-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 1rem;
  line-height: 1.2;
}
.exercise h4 em { font-style: italic; color: var(--gold-light); }

.exercise p,
.exercise li {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.98rem;
}

.exercise a {
  color: var(--gold-light);
  border-bottom: 1px solid currentColor;
  text-decoration: none;
}

/* ── REFLECTION BOX ─────────────────────── */
.reflection-box {
  border: 1px dashed var(--hairline);
  border-radius: 1rem;
  padding: 1.5rem;
  margin: 1.5rem 0;
  min-height: 80px;
  background: var(--cream-pale);
}

.reflection-label {
  display: inline-block;
  font-family: var(--f-body);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

/* ── AFFIRMATION ────────────────────────── */
.affirmation {
  text-align: center;
  padding: 3rem 2rem;
  margin: 3rem 0;
}

.affirmation p {
  font-family: var(--f-script);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  color: var(--copper);
  line-height: 1.4;
  margin: 0;
}

/* ── FOOTER ─────────────────────────────── */
footer {
  background: var(--dark);
  color: rgba(255, 255, 255, 0.55);
  text-align: center;
  padding: 3rem 2rem;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  margin-top: 6rem;
  page-break-inside: avoid;
  border-top: 3px solid var(--gold-light);
}

footer .footer-logo {
  font-family: var(--f-script);
  font-size: 2rem;
  color: var(--gold-light);
  display: block;
  margin-bottom: 0.5rem;
}

/* ── PRINT BTN (fab) ────────────────────── */
.print-btn {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--copper);
  color: #fff;
  border: 1px solid var(--copper-d);
  padding: 10px 10px 10px 22px;
  border-radius: 999px;
  font-family: var(--f-body);
  font-weight: 500;
  font-size: 14px;
  cursor: pointer;
  letter-spacing: 0.02em;
  box-shadow: 3px 3px 0 var(--sage-d);
  transition: transform 250ms cubic-bezier(.2,.8,.2,1), box-shadow 250ms cubic-bezier(.2,.8,.2,1);
  z-index: 999;
}

.print-btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: 5px 5px 0 var(--sage-d);
}

.print-btn::after {
  content: "⎙";
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--gold-light);
  color: var(--dark);
  font-size: 14px;
}

/* ── PRINT ──────────────────────────────── */
@media print {
  body { background: #fff; font-size: 11pt; color: #000; }
  body::after { display: none; }
  .cover { min-height: auto; height: 100vh; background: #fff; color: #000; border-bottom: none; }
  .cover::before, .cover::after { display: none; }
  .cover-logo, .cover-eyebrow, .cover-title, .cover-subtitle, .cover-author, .cover-divider { color: #000; }
  .cover-title em, .cover-author { color: #8B6F47; }
  .chapter { page-break-before: always; }
  .callout, .exercise, .reflection-box { page-break-inside: avoid; }
  .no-print, .print-btn { display: none !important; }
  a { color: inherit; text-decoration: none; }
  h1, h2, h3, h4 { color: #000 !important; }
  h1 em, h2 em, h3 em { color: #8B6F47 !important; }
  footer { background: #fff; color: #666; border-top: 1px solid #ddd; }
  footer .footer-logo { color: #8B6F47; }
}

/* ── UTILITIES ──────────────────────────── */
.text-gold   { color: var(--gold); }
.text-copper { color: var(--copper); }
.text-sage   { color: var(--sage-d); }
.text-muted  { color: var(--text-muted); }
.text-center { text-align: center; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mb-2 { margin-bottom: 2rem; }
.divider {
  height: 1px;
  background: var(--hairline);
  margin: 3rem 0;
  border: none;
}
