/* =====================================================================
   COSTA DE LA LUZ · Estilos de ARTÍCULO  (css/articulo.css)
   Se carga solo en las páginas de artículo (encima de main.css).
   ===================================================================== */

.article { padding-top: 92px; }

/* ----- Migas de pan ----- */
.breadcrumb {
  display: flex; align-items: center; flex-wrap: wrap; gap: .5rem;
  font-size: .88rem; color: var(--ink-faint); padding: 1.4rem 0 .4rem;
}
.breadcrumb a { color: var(--primary); font-weight: 600; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb i { font-size: .6rem; color: var(--ink-faint); }
.breadcrumb span { color: var(--ink-soft); }

/* ----- Cabecera del artículo ----- */
.article-head { max-width: 820px; margin: 1rem auto 2rem; text-align: center; }
.article-cat {
  display: inline-block; background: var(--primary); color: #fff;
  padding: .35rem .95rem; border-radius: 999px; font-size: .78rem; font-weight: 700;
  letter-spacing: .05em; text-transform: uppercase; margin-bottom: 1.1rem;
}
.article-cat:hover { background: var(--primary-dk); }
.article-title { font-size: clamp(2rem, 4.2vw, 3rem); line-height: 1.12; margin-bottom: 1rem; }
.article-lead { font-size: 1.2rem; line-height: 1.6; color: var(--ink-soft); max-width: 700px; margin: 0 auto 1.6rem; }

.article-meta {
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: .4rem 1.5rem;
  font-size: .92rem; color: var(--ink-soft);
}
.article-meta span { display: inline-flex; align-items: center; gap: .45rem; }
.article-meta i { color: var(--teal); }
.article-author { font-weight: 700; color: var(--navy); }

/* ----- Imagen principal ----- */
.article-hero {
  margin: 0 auto 3rem; max-width: 1100px; padding: 0 1.5rem;
}
.article-hero img {
  width: 100%; height: clamp(280px, 46vw, 540px); object-fit: cover;
  border-radius: var(--radius); box-shadow: var(--sh-lg);
}
.article-hero figcaption {
  text-align: center; font-size: .9rem; color: var(--ink-faint);
  margin-top: .9rem; font-style: italic;
}

/* ----- Layout (texto + sidebar) ----- */
.article-layout {
  display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 3.5rem;
  align-items: start; padding-bottom: 4rem;
}

/* ----- Cuerpo del texto ----- */
.article-body { max-width: 720px; }
.article-body > p { font-size: 1.12rem; line-height: 1.85; margin-bottom: 1.5rem; color: #33414f; }
.article-intro {
  font-size: 1.3rem !important; line-height: 1.7 !important; color: var(--navy) !important;
  font-weight: 500; margin-bottom: 2rem !important;
}
.article-body h2 {
  font-size: clamp(1.6rem, 3vw, 2.1rem); margin: 2.8rem 0 1.1rem;
  padding-top: 1.2rem; border-top: 2px solid var(--line);
}
.article-body h3 { font-size: 1.4rem; color: var(--primary); margin: 2rem 0 .9rem; }
.article-body h4 { font-size: 1.15rem; margin-bottom: .6rem; }
.article-body a:not(.btn) { color: var(--primary); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.article-body strong { color: var(--navy); }

.article-list, .article-body ul { margin: 0 0 1.6rem 0; padding: 0; }
.article-list li, .article-body ul li {
  position: relative; padding-left: 1.8rem; margin-bottom: .7rem;
  font-size: 1.08rem; line-height: 1.7; color: #33414f;
}
.article-list li::before, .article-body ul li::before {
  content: "\f111"; font-family: "Font Awesome 6 Free"; font-weight: 900;
  position: absolute; left: 0; top: .55em; font-size: .42rem; color: var(--teal);
}

/* ----- Cita destacada ----- */
.article-quote {
  margin: 2.4rem 0; padding: 1.6rem 2rem; border-left: 4px solid var(--gold);
  background: var(--sand-soft); border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-family: var(--serif); font-size: 1.3rem; font-style: italic; line-height: 1.5; color: var(--navy);
}
.article-quote cite {
  display: block; margin-top: 1rem; font-family: var(--sans); font-size: .92rem;
  font-style: normal; font-weight: 700; color: var(--ink-soft);
}

/* ----- Cajas informativas ----- */
.article-highlight-box, .article-info-box, .article-tip-box {
  margin: 2.2rem 0; padding: 1.6rem 1.8rem; border-radius: var(--radius-sm);
}
.article-highlight-box h4, .article-info-box h4, .article-tip-box h4 {
  display: flex; align-items: center; gap: .6rem; font-family: var(--sans);
  font-weight: 800; font-size: 1.08rem; margin-bottom: .8rem;
}
.article-highlight-box { background: #eef5fb; border: 1px solid #d7e7f4; }
.article-highlight-box h4 { color: var(--primary); }
.article-highlight-box ul { margin-bottom: 0; }
.article-info-box { background: #eafaf7; border: 1px solid #cbeee6; }
.article-info-box h4 { color: #0e8a72; }
.article-info-box p { margin: 0; color: #2a4a44; }
.article-tip-box { background: #fdf6e8; border: 1px solid #f3e2bd; }
.article-tip-box h4 { color: #b9821f; }
.article-tip-box p { margin: 0; color: #5c4a28; }

/* ----- Etiquetas ----- */
.article-tags { margin: 3rem 0 1.5rem; padding-top: 1.6rem; border-top: 2px solid var(--line); }
.article-tags__label { display: block; font-weight: 800; color: var(--navy); margin-bottom: .8rem; font-size: .95rem; }
.tags-list { display: flex; flex-wrap: wrap; gap: .6rem; }
.tag {
  background: var(--sand-soft); color: var(--ink-soft); border: 1px solid var(--line);
  padding: .4rem .9rem; border-radius: 999px; font-size: .85rem; font-weight: 600;
}

/* ----- Bloque de afiliado ----- */
.affiliate-box {
  margin: 2.5rem 0; padding: 2rem; border-radius: var(--radius);
  background: linear-gradient(135deg, #0f2f4f 0%, #1e5b9c 100%); color: #fff;
  box-shadow: var(--sh-lg);
}
.affiliate-tag {
  display: inline-block; background: var(--gold); color: var(--navy);
  padding: .3rem .85rem; border-radius: 999px; font-size: .74rem; font-weight: 800;
  letter-spacing: .06em; text-transform: uppercase; margin-bottom: 1rem;
}
.affiliate-box h3 { color: #fff; font-size: 1.5rem; margin-bottom: .6rem; }
.affiliate-box > p { color: rgba(255,255,255,.9); font-size: 1.05rem; margin-bottom: 1.3rem; }
.affiliate-box .btn { margin-bottom: 1rem; }
.affiliate-note {
  display: flex; align-items: flex-start; gap: .5rem;
  font-size: .82rem !important; color: rgba(255,255,255,.7) !important; margin: 0 !important; line-height: 1.5;
}
.affiliate-note i { margin-top: .15em; }

/* ----- Compartir ----- */
.article-share {
  display: flex; align-items: center; flex-wrap: wrap; gap: .8rem;
  margin: 2rem 0; padding: 1.2rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.article-share span { font-weight: 700; color: var(--navy); margin-right: .3rem; }
.article-share a {
  width: 42px; height: 42px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  background: var(--sand-soft); color: var(--navy); transition: transform .2s var(--ease), background .2s var(--ease), color .2s var(--ease);
}
.article-share a:hover { transform: translateY(-3px); background: var(--primary); color: #fff; }

/* ----- Artículos relacionados ----- */
.related-articles { margin-top: 3.5rem; }
.related-articles h2 { font-size: 1.7rem; margin-bottom: 1.6rem; }
.related-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1.4rem; }
.related-card {
  background: #fff; border-radius: var(--radius-sm); overflow: hidden; box-shadow: var(--sh);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.related-card:hover { transform: translateY(-5px); box-shadow: var(--sh-lg); }
.related-img { display: block; height: 140px; overflow: hidden; }
.related-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.related-card:hover .related-img img { transform: scale(1.06); }
.related-body { padding: 1rem 1.1rem 1.2rem; }
.related-cat { font-size: .72rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--teal); }
.related-body h3 { font-size: 1.02rem; line-height: 1.3; margin-top: .35rem; }
.related-body h3 a:hover { color: var(--primary); }

/* ----- Sidebar ----- */
.article-sidebar { position: sticky; top: 100px; display: flex; flex-direction: column; gap: 1.6rem; }
.sidebar-widget { background: var(--sand-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; }
.sidebar-widget h3 { font-size: 1.15rem; margin-bottom: 1.1rem; }
.mini-post { display: flex; gap: .85rem; margin-bottom: 1rem; }
.mini-post:last-child { margin-bottom: 0; }
.mini-post img { width: 72px; height: 72px; border-radius: 10px; object-fit: cover; flex-shrink: 0; }
.mini-post h4 { font-family: var(--sans); font-weight: 700; font-size: .92rem; line-height: 1.35; }
.mini-post h4 a:hover { color: var(--primary); }
.sidebar-pueblos { display: flex; flex-direction: column; gap: .2rem; }
.sidebar-pueblos a {
  display: flex; align-items: center; gap: .6rem; padding: .6rem .4rem; border-radius: 8px;
  font-weight: 600; color: var(--ink-soft); font-size: .96rem; transition: background .2s var(--ease), color .2s var(--ease);
}
.sidebar-pueblos a:hover { background: #fff; color: var(--primary); }
.sidebar-pueblos i { color: var(--teal); }

/* ----- Responsive ----- */
@media (max-width: 920px) {
  .article-layout { grid-template-columns: 1fr; gap: 2.5rem; }
  .article-sidebar { position: static; }
  .article-body { max-width: none; }
}
