/* ==========================================================================
   CARTA HORARIA — article.css (cluster de guías + sobre-maria)
   Extiende style.css; mismos tokens.
   ========================================================================== */

.article-main { padding: 48px 0 80px; }
.article-container { max-width: 780px; }

.breadcrumbs {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 28px;
}
.breadcrumbs a { color: var(--purple); }
.crumb-sep { color: var(--border); padding: 0 2px; }

.article-title {
  font-family: var(--font-heading);
  font-size: clamp(30px, 5vw, 42px);
  line-height: 1.2;
  color: var(--text-dark);
  margin-bottom: 20px;
}

/* Byline */
.byline {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.byline-avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.byline-name { font-size: 14px; color: var(--text-dark); font-weight: 600; }
.byline-name a { color: var(--purple); }
.byline-meta { font-size: 12.5px; color: var(--text-muted); }
.rating-chip {
  margin-left: auto;
  background: var(--purple-light);
  color: var(--purple);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
  white-space: nowrap;
}

/* Article body */
article h2 {
  font-family: var(--font-heading);
  font-size: 26px;
  color: var(--text-dark);
  margin: 40px 0 14px;
}
article h3 {
  font-family: var(--font-heading);
  font-size: 20px;
  color: var(--text-dark);
  margin: 28px 0 10px;
}
article p { margin-bottom: 16px; }
article ul { margin: 0 0 16px 22px; }
article li { margin-bottom: 8px; }
article blockquote {
  border-left: 3px solid var(--purple);
  background: var(--purple-section);
  padding: 14px 18px;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 0 0 16px;
  font-style: italic;
}

/* Figures */
.article-figure { margin: 28px 0; }
.article-figure img { margin: 0 auto; }
.article-figure figcaption {
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
  margin-top: 10px;
}

/* CTA box */
.cta-box {
  background: var(--purple-light);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 28px;
  margin: 36px 0;
  text-align: center;
}
.cta-box-title {
  font-family: var(--font-heading);
  font-size: 21px;
  color: var(--text-dark);
  margin-bottom: 10px;
}
.cta-box .cta-btn {
  display: inline-block;
  background: var(--purple);
  color: var(--white);
  padding: 13px 28px;
  border-radius: 999px;
  font-weight: 600;
  margin-top: 6px;
}
.cta-box .cta-btn:hover { background: var(--purple-vivid); }
.cta-box-rating { font-size: 13px; color: var(--text-muted); margin: 12px 0 0; }

/* Curso box (derivación a la Academia) */
.curso-box {
  border: 1.5px solid var(--purple);
  border-radius: var(--radius);
  padding: 22px 26px;
  margin: 36px 0;
  background: var(--white);
}
.curso-box-title {
  font-family: var(--font-heading);
  font-size: 19px;
  color: var(--text-dark);
  margin-bottom: 8px;
}

/* Hub */
.hub-intro { font-size: 17px; margin-bottom: 30px; }
.guide-cards { display: grid; grid-template-columns: 1fr; gap: 18px; }
.guide-card {
  display: block;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  padding: 24px 26px;
  transition: border-color .15s, box-shadow .15s;
}
.guide-card:hover { border-color: var(--purple); box-shadow: 0 4px 18px rgba(151, 126, 217, .15); }
.guide-card h2 {
  font-family: var(--font-heading);
  font-size: 21px;
  color: var(--text-dark);
  margin: 0 0 8px;
}
.guide-card p { color: var(--text-body); margin-bottom: 10px; }
.guide-card-more { color: var(--purple); font-weight: 600; font-size: 14px; }

/* Sobre María */
.maria-hero { text-align: center; margin-bottom: 28px; }
.maria-hero img { margin: 0 auto 12px; border-radius: var(--radius); }
.maria-hero .rating-chip { margin: 0 auto; display: inline-block; }
.maria-links { display: grid; gap: 10px; margin: 30px 0; }
.maria-link {
  display: block;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 13px 18px;
  background: var(--white);
  font-size: 15px;
}
.maria-link:hover { border-color: var(--purple); }

/* Footer links */
.footer-links { margin-top: 8px; font-size: 13.5px; }

@media (min-width: 700px) {
  .guide-cards { grid-template-columns: repeat(3, 1fr); }
  .guide-card h2 { font-size: 19px; }
}

/* Hero rating (home) */
.hero-rating { margin-top: 18px; font-size: 14.5px; color: var(--text-muted); }
.hero-rating-stars { color: #f5a623; letter-spacing: 2px; }
.hero-rating a { color: var(--text-muted); text-decoration: underline; }

/* Articles need navigation; homes keep the original headerless design */
body:has(.article-main) .header {
  display: block;
  padding: 15px 0;
  background: var(--white);
  border-bottom: 1px solid var(--border);
}

/* Review strip (draconic-style social proof under CTAs) */
.review-strip { margin-top: 20px; text-align: left; }
.review-strip-rating { font-size: 14px; color: var(--text-dark); margin-bottom: 8px; }
.review-quote {
  border: none; background: none; padding: 0; margin: 0 0 6px;
  font-style: italic; font-size: 15px; color: var(--text-body);
}
.review-who { font-style: normal; font-size: 13px; color: var(--text-muted); }
.review-link { font-size: 14px; font-weight: 600; color: var(--purple); text-decoration: underline; }

/* Offer box (price + what's included) */
.offer-box {
  margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--border); text-align: left;
}
.offer-price { font-size: 24px; font-weight: 700; color: var(--text-dark); margin-bottom: 10px; }
.offer-price-note { font-size: 14px; font-weight: 400; color: var(--text-muted); }
.offer-list { list-style: none; margin: 0 0 12px; padding: 0; }
.offer-list li { padding-left: 26px; position: relative; margin-bottom: 7px; font-size: 15px; }
.offer-list li::before { content: "✓"; position: absolute; left: 0; color: #2e7d32; font-weight: 700; }
.offer-note { font-size: 13.5px; color: var(--text-muted); margin: 0; }

/* Related guides */
.related-guides { margin-top: 44px; }
.related-guides h2 {
  font-family: var(--font-heading); font-size: 22px; color: var(--text-dark); margin-bottom: 16px;
}
.footer-guides { margin-bottom: 10px; }

/* Offer box centered variant for the home CTA section */
.offer-box-home { max-width: 520px; margin: 28px auto 0; border-top: none; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px 28px; }
.hero .review-quote { margin-top: 10px; max-width: 78%; }

/* Home bio-section list (why-Maria bullet points) */
.bio-text ul { list-style: none; margin: 0 0 24px; padding: 0; }
.bio-text ul li { padding-left: 26px; position: relative; margin-bottom: 10px; line-height: 1.6; }
.bio-text ul li::before { content: "✓"; position: absolute; left: 0; color: var(--purple); font-weight: 700; }

/* Hero variants: review strip + offer card inside the hero column */
.hero .review-strip { margin-top: 14px; max-width: 480px; }
.hero .review-quote { max-width: none; }
.hero .offer-box, .offer-box.hero-offer {
  max-width: 480px;
  margin-top: 20px;
  padding: 18px 22px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  border-top: 1px solid var(--border);
}
.hero .offer-box .offer-price, .offer-box.hero-offer .offer-price { font-size: 21px; margin-bottom: 8px; }
.hero .offer-box .offer-list li, .offer-box.hero-offer .offer-list li { font-size: 14px; margin-bottom: 5px; }

/* Article hero image + ecosystem links */
.article-hero-figure { margin: 0 0 30px; }
.article-hero-figure img { border-radius: var(--radius); width: 100%; height: auto; }
.eco-links {
  margin-top: 34px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  font-size: 13.5px;
  color: var(--text-muted);
}

/* The hero artwork must keep its designed scale even when the hero grows
   taller (review strip + offer card). Without this, background-size:contain
   scales the planets to the full hero height and they invade the copy. */
@media (min-width: 901px) {
  .hero { background-size: auto 600px; background-position: right top; }
}
