/* =====================================================================
   IA con Impacto — landing page
   Brand: matches the book cover — deep petrol/teal + vivid orange
   Colors sampled directly from Portada.png:
   Teal darkest #0B2A33 · Teal lighter stop #13414C · Teal accent #1C5B6B
   Orange (word "Impacto") #D98A2B · Orange light #E8A857
   Purple #9C338C (enterprise track, unchanged)
   Fonts: Tiempos Headline (fallback Georgia/serif) + DM Sans
   ===================================================================== */

@font-face {
  font-family: "Tiempos Headline";
  src: local("Tiempos Headline");
  font-weight: 700;
}

:root {
  /* Book cover palette */
  --teal-dark: #0B2A33;
  --teal-mid: #13414C;
  --teal-light: #1C5B6B;
  --orange: #D98A2B;
  --orange-light: #E8A857;
  --purple: #9C338C;

  /* Legacy aliases (kept so every existing rule/inline style repaints
     automatically to the book identity without a full rewrite) */
  --forest: var(--teal-light);
  --deep: var(--teal-dark);
  --mint: #D7E6E9;
  --mint-dark: var(--teal-light);
  --gold: var(--orange);
  --gold-light: var(--orange-light);

  --ink: #16262B;
  --muted: #55676C;
  --paper: #FBF8F3;
  --paper-alt: #F1ECE2;
  --line: rgba(11, 42, 51, 0.14);

  --serif: "Tiempos Headline", Georgia, "Iowan Old Style", serif;
  --sans: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --max: 1120px;
}

/* Reusable dot-grid texture + dark teal gradient, mirrors the cover */
.dot-grid-dark {
  background-color: var(--teal-dark);
  background-image:
    radial-gradient(rgba(255, 255, 255, 0.09) 1px, transparent 1.5px),
    linear-gradient(135deg, var(--teal-mid) 0%, var(--teal-dark) 65%);
  background-size: 22px 22px, cover;
  background-position: 0 0, 0 0;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3 {
  font-family: var(--serif);
  color: var(--deep);
  line-height: 1.15;
  margin: 0 0 0.6em;
}

h1 { font-size: clamp(2rem, 4.2vw, 3rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1em; }

a { color: inherit; }

/* ---------------- Header ---------------- */

.site-header {
  padding: 28px 0 0;
}

.site-header--overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  padding: 24px 0 0;
  z-index: 10;
}

.site-header--overlay .brand-mark { color: rgba(255, 255, 255, 0.85); }

.brand-logo { display: block; height: 23px; width: auto; opacity: 0.92; }
.site-header--overlay .brand-dot { color: var(--orange-light); }

.header-inner { display: flex; align-items: center; }

.brand-mark {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--deep);
  letter-spacing: 0.02em;
}

.brand-dot { color: var(--mint-dark); }

/* ---------------- Hero ---------------- */

.hero {
  padding: 88px 0 72px;
  background-color: var(--teal-dark);
  background-image:
    radial-gradient(rgba(255, 255, 255, 0.09) 1px, transparent 1.5px),
    linear-gradient(135deg, var(--teal-mid) 0%, var(--teal-dark) 65%);
  background-size: 22px 22px, cover;
  color: #fff;
}

.hero h1,
.hero h2,
.hero h3 { color: #fff; }

.hero .hero-copy .lede { color: rgba(255, 255, 255, 0.92); }

.hero .eyebrow { color: var(--orange-light); }

.hero .fallback { color: rgba(255, 255, 255, 0.7); }

.hero .fallback a { color: var(--orange-light); }

.hero .presale-delivery { color: rgba(255, 255, 255, 0.75); }

.hero .presale-price { color: #fff; }

.hero .presale-price .price-old { color: rgba(255, 255, 255, 0.55); }

.hero .presale-price .price-new { color: var(--orange); }

.hero .btn-outline {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.6);
}
.hero .btn-outline:hover { background: rgba(255, 255, 255, 0.12); }

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

.eyebrow {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mint-dark);
  margin: 0 0 14px;
}

.hero-copy .lede {
  font-size: 1.1rem;
  color: var(--ink);
  max-width: 52ch;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 28px 0 18px;
}

.fallback {
  font-size: 0.92rem;
  color: #4A5C57;
}

.fallback a { color: var(--forest); text-decoration: underline; }

.presale-block {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 4px 0 22px;
}

.presale-chip {
  display: inline-block;
  align-self: flex-start;
  background: var(--gold-light);
  color: var(--deep);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
}

.presale-price {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.6rem;
  color: var(--deep);
}

.presale-price .price-old {
  font-family: var(--sans);
  font-size: 1rem;
  color: #7A8B86;
  text-decoration: line-through;
  margin-right: 10px;
}

.presale-price .price-new {
  font-weight: 700;
  color: var(--forest);
}

.presale-delivery {
  margin: 0;
  font-size: 0.95rem;
  color: #3E524D;
  font-weight: 500;
}

.hero-cover {
  display: flex;
  justify-content: center;
}

.hero-cover img {
  width: 100%;
  max-width: 360px;
  border-radius: 10px;
  box-shadow:
    0 2px 6px rgba(0, 0, 0, 0.2),
    0 24px 48px -16px rgba(0, 0, 0, 0.5);
  transform: rotate(-1.2deg);
}

/* ---------------- Buttons ---------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  padding: 15px 26px;
  border-radius: 999px;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}

.btn-gold {
  background: var(--gold);
  color: var(--deep);
  box-shadow: 0 8px 20px -8px rgba(217, 138, 43, 0.55);
}
.btn-gold:hover { background: var(--gold-light); transform: translateY(-1px); }

.btn-purple {
  background: var(--purple);
  color: #fff;
  box-shadow: 0 8px 20px -8px rgba(156, 51, 140, 0.55);
}
.btn-purple:hover { background: #b03e9e; transform: translateY(-1px); }

.btn-outline {
  background: transparent;
  color: var(--forest);
  border: 2px solid var(--forest);
  padding: 13px 24px;
}
.btn-outline:hover { background: rgba(28, 91, 107, 0.08); }

.btn-outline--light {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.6);
}
.btn-outline--light:hover { background: rgba(255, 255, 255, 0.12); }

/* ---------------- Promise ---------------- */

.promise {
  background: var(--paper-alt);
  padding: 64px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.promise-intro {
  font-size: 1.1rem;
  color: var(--forest);
  font-weight: 500;
  max-width: 56ch;
}

.promise-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 18px;
  max-width: 66ch;
}

.promise-list li {
  position: relative;
  padding-left: 30px;
  font-size: 1.05rem;
}

.promise-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0.05em;
  color: var(--mint-dark);
  font-weight: 700;
}

/* ---------------- CTA cards ---------------- */

.ctas { padding: 72px 0; }

.cta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.cta-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 36px 32px;
  box-shadow: 0 2px 4px rgba(11, 42, 51, 0.05);
  display: flex;
  flex-direction: column;
}

/* El boton se ancla al fondo de la tarjeta; ambos quedan en la misma
   linea vertical sin importar cuanto texto haya arriba (Opus + Sol). */
.cta-card > .btn { margin-top: auto; align-self: stretch; justify-content: center; text-align: center; }

.cta-card--reader {
  border-top: 4px solid var(--gold);
  box-shadow: 0 8px 28px -12px rgba(217, 138, 43, 0.35);
}
.cta-card--enterprise { border-top: 4px solid var(--purple); }

.cta-kicker {
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mint-dark);
  margin-bottom: 10px;
}

.cta-card--enterprise .cta-kicker { color: var(--purple); }

.cta-card h3 { font-size: 1.35rem; }

.presale-perks {
  list-style: none;
  margin: 0 0 4px;
  padding: 0;
  display: grid;
  gap: 12px;
}
.presale-perks li { font-size: 0.98rem; line-height: 1.45; }

.cta-hint {
  font-size: 0.88rem;
  color: var(--muted);
  margin: 12px 0 0;
  min-height: 3.25em;
  text-align: center;
}

/* ---------------- Author note ---------------- */

.author-note {
  background-color: var(--teal-dark);
  background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1.5px);
  background-size: 22px 22px;
  color: var(--paper);
  padding: 72px 0;
}

.author-note h2 { color: #fff; }

.author-note blockquote {
  margin: 0;
  max-width: 74ch;
}

.author-note p {
  font-family: var(--serif);
  font-size: clamp(1.15rem, 2.4vw, 1.5rem);
  line-height: 1.5;
  font-style: italic;
  color: #fff;
}

.author-note footer {
  font-family: var(--sans);
  font-style: normal;
  font-size: 0.95rem;
  color: var(--mint);
  font-weight: 700;
}

/* ---------------- FAQ ---------------- */

.faq { padding: 72px 0; }

.faq-item {
  border-top: 1px solid var(--line);
  padding: 24px 0;
}

.faq-item:last-child { border-bottom: 1px solid var(--line); }

.faq-item h3 { font-size: 1.1rem; margin-bottom: 6px; }

.faq-item p { color: var(--muted); margin: 0; }

/* ---------------- Final CTA ---------------- */

.final-cta {
  background-color: var(--teal-dark);
  background-image:
    radial-gradient(rgba(255, 255, 255, 0.09) 1px, transparent 1.5px),
    linear-gradient(135deg, var(--teal-mid) 0%, var(--teal-dark) 65%);
  background-size: 22px 22px, cover;
  color: #fff;
  padding: 80px 0;
}

.final-cta-inner { text-align: center; }

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

.final-cta p {
  color: var(--mint);
  font-size: 1.1rem;
  margin-bottom: 30px;
}

.final-cta .hero-ctas { justify-content: center; margin-top: 0; }

/* ---------------- Footer ---------------- */

.site-footer {
  padding: 40px 0;
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.88rem;
  color: var(--muted);
}

.footer-inner a { color: var(--forest); text-decoration: underline; }

/* ---------------- Floating WhatsApp support ---------------- */

.wa-float {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 999;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366; /* official WhatsApp green */
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.28);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  animation: wa-float-in 0.45s ease 0.4s backwards;
}

.wa-float:hover {
  transform: scale(1.06);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.32);
}

.wa-float svg {
  width: 30px;
  height: 30px;
  display: block;
}

@keyframes wa-float-in {
  from { transform: translateY(90px); }
  to   { transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .wa-float { animation: none; }
}

/* ---------------- Accesibilidad: foco visible ---------------- */
.btn:focus-visible,
.wa-float:focus-visible,
.fallback a:focus-visible,
.footer-inner a:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
  box-shadow: 0 0 0 4px var(--teal-dark);
}

/* ---------------- Responsive ---------------- */

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-cover { order: -1; }
  .hero-cover img { max-width: 280px; transform: none; }
  .cta-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .hero { padding: 72px 0 56px; }
  .btn { width: 100%; justify-content: center; }
  .cta-card { padding: 28px 24px; }
  .cta-card > .btn { white-space: normal; text-align: center; }
  .hero-ctas { flex-direction: column; }
  .final-cta .hero-ctas { align-items: stretch; }
  /* keep the floating WhatsApp bubble clear of full-width CTAs/footer */
  .site-footer { padding-bottom: 96px; }
  .wa-float { width: 52px; height: 52px; right: 14px; bottom: 14px; }
  .wa-float svg { width: 28px; height: 28px; }
}

/* --- TOC: las 13 etapas + Etapa Final --- */
.toc { padding: 64px 0; background: var(--paper-alt, #F1ECE2); }
.toc-list { columns: 2; column-gap: 48px; padding-left: 22px; margin: 20px 0 0; }
.toc-list li { margin: 0 0 12px; break-inside: avoid; line-height: 1.45; }
.toc-final { color: #D98A2B; }
@media (max-width: 720px) { .toc-list { columns: 1; } }

/* --- Credentials bar (autor) --- */
.cred-bar { display: flex; flex-wrap: wrap; gap: 10px 14px; margin: 22px 0 8px; }
.cred { font-family: var(--sans); font-size: 12px; font-weight: 700; letter-spacing: 2.2px;
  color: rgba(255,255,255,0.85); border: 1px solid rgba(255,255,255,0.28);
  padding: 8px 14px; border-radius: 6px; white-space: nowrap; }
.author-bio { color: rgba(255,255,255,0.94); max-width: 820px; }

/* --- Libro en formato original --- */
.book-cover { aspect-ratio: 225 / 334; width: min(450px, 88vw); height: auto; object-fit: cover;
  border-radius: 4px 10px 10px 4px;
  box-shadow: -6px 0 0 rgba(0,0,0,0.30), 0 18px 44px rgba(0,0,0,0.5);
  border: 1px solid rgba(0,0,0,0.15); background: #fff; }
.interior-peek { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 36px; }
.interior-peek figure { margin: 0; }
@media (max-width: 760px) { .interior-peek { grid-template-columns: 1fr; max-width: 360px; margin-left: auto; margin-right: auto; } }
.interior-peek img { aspect-ratio: 15 / 23; object-fit: cover; width: 100%; border: 1px solid rgba(0,0,0,0.12);
  border-radius: 6px; box-shadow: 0 10px 26px rgba(0,0,0,0.14); background: #fff; }
.interior-peek figcaption { font-size: 13px; color: #5f6b6d; margin-top: 10px; text-align: center; }

/* --- Impact cards (autor, aligerado) --- */
.impact-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 26px 0 22px; }
.impact-card { border: 1px solid rgba(255,255,255,0.22); border-radius: 10px; padding: 20px 18px;
  background: rgba(255,255,255,0.04); display: flex; flex-direction: column; gap: 8px; }
.impact-big { font-family: var(--serif); font-size: 22px; font-weight: 700; color: #E8A54B; line-height: 1.15; }
.impact-ctx { font-size: 13.5px; color: rgba(255,255,255,0.82); line-height: 1.45; }
.author-note .author-line { font-family: var(--sans); font-style: normal; color: rgba(255,255,255,0.95); font-size: 17px; max-width: 640px; }
.quote-short p { font-size: 20px; }
@media (max-width: 880px) { .impact-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .impact-grid { grid-template-columns: 1fr; } }
.toc-final-item { margin-top: 18px; font-family: var(--serif); font-size: 19px; color: #C57A20;
  border-top: 2px solid #D98A2B; padding-top: 14px; }

/* --- Bonus card (licencia KindWorks) --- */
.bonus-card { border: 2px solid #D98A2B; border-radius: 12px; padding: 18px 20px; margin: 18px 0 22px;
  background: linear-gradient(135deg, rgba(217,138,43,0.08), rgba(217,138,43,0.02)); }
.bonus-title { font-family: var(--serif); font-weight: 700; font-size: 17px; color: #B06F16; margin: 0 0 6px; }
.bonus-sub { margin: 0 0 12px; font-size: 14.5px; }
.bonus-items { display: grid; gap: 9px; }
.bonus-item { display: flex; align-items: center; gap: 10px; font-size: 14.5px; line-height: 1.4; }
.bi-icon { font-size: 19px; flex-shrink: 0; }

/* --- Presale row: precio + bono lado a lado --- */
.presale-row { display: flex; gap: 18px; align-items: stretch; flex-wrap: wrap; margin: 8px 0 4px; }
.presale-bonus { border: 2px dashed #E8A54B; border-radius: 12px; padding: 14px 18px; max-width: 330px;
  background: rgba(232,165,75,0.07); display: flex; flex-direction: column; gap: 6px; }
.bonus-chip { display: inline-block; width: fit-content; background: #E8A54B; color: #0B2A33; font-family: var(--sans);
  font-size: 12px; font-weight: 800; letter-spacing: 1.5px; padding: 5px 12px; border-radius: 999px; }
.bonus-head { font-family: var(--serif); font-weight: 700; font-size: 17px; color: #fff; margin: 2px 0 0; }
.bonus-copy { font-size: 13.5px; color: rgba(255,255,255,0.88); margin: 0; line-height: 1.45; }
@media (max-width: 720px) { .presale-row { flex-direction: column; } .presale-bonus { max-width: none; } }
