/* =====================================================
   ECO MEXA — Blog & páginas internas
   Reusa las variables de :root de styles.css
   ===================================================== */

body.internal { background: var(--obsidian); }
.page { padding-top: 64px; min-height: 70vh; }

/* ---- Breadcrumb ---- */
.breadcrumb { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; font-size: .82rem; color: var(--bone-faint); padding-top: 2rem; margin-bottom: 1.2rem; }
.breadcrumb a { color: var(--bone-dim); }
.breadcrumb a:hover { color: var(--gold-soft); }
.breadcrumb .cur { color: var(--jade); }

/* ---- Badge de categoría ---- */
.badge-cat { display: inline-block; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-soft); border: 1px solid rgba(217,169,58,.4); border-radius: 999px; padding: .28rem .8rem; }
.badge-cat.sm { font-size: .65rem; padding: .2rem .6rem; }

/* ---- Cabecera de artículo ---- */
.article__title { font-size: clamp(2rem, 5vw, 3.2rem); margin: 1rem 0 .8rem; max-width: 16ch; line-height: 1.1; }
.article__wrap { max-width: 1180px; }
.article__meta { color: var(--bone-dim); font-size: .9rem; margin-bottom: 1.5rem; }
.article__hero { margin: 1.5rem auto 2.5rem; max-width: 1100px; padding: 0 clamp(20px,5vw,48px); }
.article__hero img { width: 100%; border-radius: var(--radius); border: 1px solid rgba(217,169,58,.2); box-shadow: var(--shadow); aspect-ratio: 16/9; object-fit: cover; }

/* ---- Cuerpo del artículo (prosa) ---- */
.article-body { max-width: 760px; margin: 0 auto; font-size: 1.08rem; line-height: 1.8; color: var(--bone); }
.article-body > p:first-of-type { font-size: 1.2rem; color: #fff; }
.article-body h2 { font-family: var(--font-display); font-size: clamp(1.5rem, 3.5vw, 2.1rem); margin: 2.6rem 0 1rem; color: var(--bone); padding-top: .6rem; border-top: 1px solid rgba(236,230,216,.1); }
.article-body h3 { font-family: var(--font-display); font-size: 1.3rem; margin: 1.8rem 0 .7rem; color: var(--gold-soft); }
.article-body p { margin-bottom: 1.2rem; }
.article-body a { color: var(--gold-soft); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(217,169,58,.4); transition: text-decoration-color .2s; }
.article-body a:hover { text-decoration-color: var(--gold-soft); }
.article-body strong { color: #fff; }
.article-body ul, .article-body ol { margin: 0 0 1.4rem 1.2rem; }
.article-body li { margin-bottom: .6rem; }
.article-body li::marker { color: var(--jade); }
.article-body blockquote { border-left: 3px solid var(--gold); background: linear-gradient(90deg, rgba(217,169,58,.08), transparent); margin: 1.8rem 0; padding: 1rem 1.4rem; font-family: var(--font-display); font-size: 1.2rem; color: var(--bone); border-radius: 0 10px 10px 0; }
.article-body blockquote p { margin: 0; }
.article-body h2 + p, .article-body h3 + p { margin-top: 0; }
.article-body figure { margin: 2rem 0; }
.article-body figure img { width: 100%; border-radius: var(--radius); border: 1px solid rgba(236,230,216,.1); }
.article-body figcaption { font-size: .82rem; color: var(--bone-faint); text-align: center; margin-top: .5rem; }
.article-body .key-fact { background: linear-gradient(160deg, rgba(24,160,111,.12), rgba(10,10,12,.4)); border: 1px solid rgba(24,160,111,.3); border-radius: 12px; padding: 1.2rem 1.4rem; margin: 1.8rem 0; }
.article-body .key-fact strong { color: var(--jade); }

/* ---- CTA de la canción ---- */
.song-cta { max-width: 760px; margin: 3rem auto; display: flex; align-items: center; gap: 1.2rem; flex-wrap: wrap; background: linear-gradient(160deg, var(--obsidian-2), var(--stone)); border: 1px solid rgba(217,169,58,.3); border-radius: 18px; padding: 1.6rem; }
.song-cta__art img { width: 64px; height: 64px; }
.song-cta__txt { flex: 1; min-width: 200px; }
.song-cta__txt .eyebrow { margin-bottom: .3rem; }
.song-cta__txt h3 { font-family: var(--font-display); font-size: 1.4rem; color: var(--gold-soft); }
.song-cta__txt .muted { color: var(--bone-dim); font-size: .92rem; }

/* ---- Relacionados / tarjetas ---- */
.related { max-width: 1100px; margin: 3.5rem auto 1rem; padding: 0 clamp(20px,5vw,48px); }
.related > h2 { font-family: var(--font-display); font-size: 1.6rem; margin-bottom: 1.4rem; color: var(--bone); }
.related__grid, .posts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.post-card { display: flex; flex-direction: column; background: linear-gradient(160deg, var(--obsidian-2), var(--stone)); border: 1px solid rgba(236,230,216,.08); border-radius: var(--radius); overflow: hidden; transition: transform .25s ease, border-color .25s ease; }
.post-card:hover { transform: translateY(-5px); border-color: rgba(217,169,58,.35); }
.post-card__img { aspect-ratio: 16/9; overflow: hidden; }
.post-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.post-card:hover .post-card__img img { transform: scale(1.05); }
.post-card__body { padding: 1.1rem 1.2rem 1.4rem; display: flex; flex-direction: column; gap: .6rem; }
.post-card__body h3 { font-family: var(--font-display); font-size: 1.12rem; line-height: 1.25; color: var(--bone); }
.post-card__excerpt { font-size: .9rem; color: var(--bone-dim); }

/* ---- Índice del blog ---- */
.blog-hero { padding: 7rem 0 2rem; text-align: center; }
.blog-hero h1 { font-size: clamp(2.4rem, 6vw, 4rem); background: linear-gradient(180deg, #fff, var(--gold-soft)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.blog-hero p { color: var(--bone-dim); max-width: 640px; margin: 1rem auto 0; font-size: 1.1rem; }
.blog-cat { margin: 3rem 0; }
.blog-cat__head { display: flex; align-items: baseline; gap: 1rem; margin-bottom: 1.4rem; }
.blog-cat__head h2 { font-family: var(--font-display); font-size: 1.7rem; color: var(--bone); }
.blog-cat__head .count { color: var(--bone-faint); font-size: .9rem; }

/* ---- Página de la canción ---- */
.song-page .breadcrumb { padding-top: 5.5rem; }
.song-page__video { max-width: 900px; margin: 1.5rem auto 2.5rem; }
.song-page__video .song__media { aspect-ratio: 16/9; border-radius: var(--radius); overflow: hidden; border: 1px solid rgba(217,169,58,.25); box-shadow: var(--shadow); }
.song-page__video .song__media iframe { width: 100%; height: 100%; border: 0; }
.lyrics { columns: 2; column-gap: 2.5rem; background: linear-gradient(160deg, var(--obsidian-2), var(--stone)); border: 1px solid rgba(236,230,216,.1); border-left: 3px solid var(--gold); border-radius: 12px; padding: 1.8rem 2rem; margin: 1.5rem 0; font-family: var(--font-display); line-height: 1.7; }
.lyrics p { break-inside: avoid; margin-bottom: 1.3rem; color: var(--bone); }
.lyrics strong { display: block; color: var(--gold-soft); font-family: var(--font-body); font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: .3rem; }
.symbols { max-width: 1100px; margin: 3rem auto; padding: 0 clamp(20px,5vw,48px); }
.symbols__title { font-family: var(--font-display); font-size: 1.6rem; margin-bottom: 1.4rem; color: var(--bone); }

/* ---- Responsive ---- */
@media (max-width: 760px) { .lyrics { columns: 1; } }
@media (max-width: 900px) {
  .related__grid, .posts-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  .related__grid, .posts-grid { grid-template-columns: 1fr; }
  .song-cta { flex-direction: column; text-align: center; }
  .song-cta__txt { min-width: 0; }
}
