/* ==========================================================
   Blog (usa las variables y bloques de soluciones.css)
   ========================================================== */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Encabezado ---------- */
.blog-hero { padding-top: 100px; padding-bottom: 60px; }
@media (min-width: 768px) { .blog-hero { padding-top: 130px; padding-bottom: 70px; } }
.sol-chips .sol-chip.is-active { background: #fff; border-color: #fff; color: var(--sol-brown); }
.blog-chip-count { display: inline-block; min-width: 20px; margin-left: 4px; padding: 0 6px; border-radius: 999px; background: rgba(255,255,255,.18); font-size: 11px; line-height: 18px; }
.sol-chip.is-active .blog-chip-count, .sol-chip:hover .blog-chip-count { background: var(--sol-bg-alt); }

.blog-preview-note {
  margin: 0 0 28px;
  padding: 12px 16px;
  border-radius: 8px;
  background: #fff6e5;
  border: 1px solid #f3d9a4;
  color: #7a5a1c;
  font-size: 14px;
  font-weight: 400;
  text-align: left;
}

/* ---------- Etiqueta de tema y meta ---------- */
.blog-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin: 0 0 12px;
  color: var(--sol-text);
  font-size: 13px;
  font-weight: 400;
}
.blog-tag {
  display: inline-block;
  padding: 3px 12px;
  border-radius: 999px;
  background: var(--sol-bg-alt);
  color: var(--sol-brown);
  font-family: "Roboto", Helvetica, Arial, sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background .2s ease, color .2s ease;
}
.blog-tag:hover { background: var(--sol-brown); color: #fff; }

/* ---------- Tarjetas ---------- */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 30px; }
.blog-grid > * { margin: 0; }
.blog-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--sol-line);
  border-radius: var(--sol-radius);
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(40, 25, 15, .04);
  transition: transform .35s ease, box-shadow .35s ease;
  text-align: left;
}
.blog-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(40, 25, 15, .12); }
.blog-card__img { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; background: #eee7df; }
.blog-card__img img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.blog-card:hover .blog-card__img img { transform: scale(1.05); }
.blog-card__body { display: flex; flex-direction: column; flex: 1; padding: 22px 24px 24px; }
.blog-card__title { margin: 0 0 10px; font-size: 21px; font-weight: 500; line-height: 1.3; letter-spacing: 0; text-transform: none; }
.blog-card__title a { color: var(--sol-ink); text-decoration: none; }
.blog-card__title a:hover { color: var(--sol-brown); }
.blog-card__text { margin: 0 0 16px; color: var(--sol-text); font-size: 15px; font-weight: 400; line-height: 1.6; }
.blog-card__more {
  margin-top: auto;
  color: var(--sol-brown);
  font-family: "Roboto", Helvetica, Arial, sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  text-decoration: none;
}
.blog-card__more .mdi { display: inline-block; margin-left: 4px; transition: transform .3s ease; }
.blog-card:hover .blog-card__more .mdi { transform: translateX(5px); }
.blog-badge-draft {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 3px 10px;
  border-radius: 999px;
  background: #f0b429;
  color: #3d2a00;
  font-size: 12px;
  font-weight: 700;
}

/* Nota destacada (la más reciente) */
.blog-card--featured { margin-bottom: 40px; }
.blog-card--featured .blog-card__title { font-size: 26px; }
@media (min-width: 992px) {
  .blog-card--featured { flex-direction: row; }
  .blog-card--featured .blog-card__img { flex: 0 0 58%; aspect-ratio: auto; min-height: 380px; }
  .blog-card--featured .blog-card__body { justify-content: center; padding: 40px 44px; }
  .blog-card--featured .blog-card__title { font-size: 32px; }
  .blog-card--featured .blog-card__text { font-size: 17px; }
  .blog-card--featured .blog-card__more { margin-top: 8px; }
}

/* ---------- Paginación ---------- */
.blog-pager { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 48px; }
.blog-pager a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 42px;
  height: 42px;
  padding: 0 14px;
  justify-content: center;
  border: 1px solid var(--sol-line);
  border-radius: 999px;
  color: var(--sol-ink);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.blog-pager a:hover, .blog-pager a.is-active { background: var(--sol-brown); border-color: var(--sol-brown); color: #fff; }

/* ---------- Sin notas / 404 ---------- */
.blog-empty { max-width: 640px; margin: 0 auto; padding: 40px 0; text-align: center; }
section.blog-empty { padding: 120px 0 100px; }
.blog-empty h1, .blog-empty h2 { margin: 0 0 12px; color: var(--sol-ink); font-size: 30px; text-transform: none; letter-spacing: 0; }
.blog-empty p { margin: 0 0 26px; color: var(--sol-text); font-size: 17px; font-weight: 400; }

/* ---------- Nota completa ---------- */
.blog-post { background: #fff; }
.blog-post__head { padding: 50px 0 34px; text-align: center; }
@media (min-width: 992px) { .blog-post__head { padding: 70px 0 40px; } }
.blog-post__head .container { max-width: 860px; }
.blog-crumbs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 26px;
  color: var(--sol-text);
  font-size: 13px;
  font-weight: 400;
}
.blog-crumbs a { color: var(--sol-text); text-decoration: none; }
.blog-crumbs a:hover { color: var(--sol-brown); }
.blog-crumbs span { color: var(--sol-line); }
.blog-post__title {
  margin: 18px 0 0;
  color: var(--sol-ink);
  font-size: 32px;
  line-height: 1.2;
  letter-spacing: 0;
  text-transform: none;
}
@media (min-width: 768px) { .blog-post__title { font-size: 44px; } }
.blog-post__lead { max-width: 700px; margin: 18px auto 0; color: var(--sol-text); font-size: 19px; font-weight: 400; line-height: 1.6; }
.blog-post__meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 22px;
  margin: 22px 0 0;
  color: var(--sol-text);
  font-size: 14px;
  font-weight: 400;
}
.blog-post__meta .mdi { color: var(--sol-sand); margin-right: 3px; }

.blog-post__cover { margin: 0 auto 10px; }
.blog-post__cover img {
  display: block;
  width: 100%;
  max-height: 620px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--sol-radius);
  box-shadow: 0 24px 50px rgba(40, 25, 15, .14);
}

/* Tipografía del contenido */
.blog-content {
  max-width: 740px;
  margin: 44px auto 0;
  color: #3d3732;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.8;
  letter-spacing: .01em;
  text-align: left;
}
.blog-content > * + * { margin-top: 1.1em; }
.blog-content p { margin-bottom: 0; }
.blog-content h2, .blog-content h3, .blog-content h4 {
  color: var(--sol-ink);
  letter-spacing: 0;
  text-transform: none;
  line-height: 1.3;
  scroll-margin-top: 100px;
}
.blog-content h2 { margin-top: 2em; font-size: 28px; }
.blog-content h3 { margin-top: 1.6em; font-size: 22px; }
.blog-content h4 { margin-top: 1.4em; font-size: 19px; }
.blog-content a { color: var(--sol-brown); text-decoration: underline; text-underline-offset: 3px; }
.blog-content a:hover { color: var(--sol-ink); }
.blog-content strong { color: var(--sol-ink); font-weight: 700; }
.blog-content ul, .blog-content ol { padding-left: 1.4em; }
.blog-content ul { list-style: disc; }
.blog-content ol { list-style: decimal; }
.blog-content li { margin-top: .45em; padding-left: .2em; }
.blog-content li::marker { color: var(--sol-brown); }
.blog-content blockquote {
  margin: 2em 0;
  padding: 6px 0 6px 26px;
  border-left: 3px solid var(--sol-sand);
  color: var(--sol-ink);
  font-size: 22px;
  font-style: italic;
  line-height: 1.6;
}
.blog-content blockquote p { margin: 0; }
.blog-content figure { margin: 2em 0; }
.blog-content img { display: block; max-width: 100%; height: auto; border-radius: 8px; }
.blog-content figcaption { margin-top: 10px; color: var(--sol-text); font-size: 14px; text-align: center; }
.blog-content hr { margin: 2.5em 0; border: 0; border-top: 1px solid var(--sol-line); }
.blog-content code { padding: 2px 6px; border-radius: 4px; background: var(--sol-bg-alt); font-size: .9em; }
.blog-content iframe, .blog-content video { display: block; width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; border-radius: 8px; }
.blog-embed { margin: 2em 0; }
.blog-embed > * { max-width: 100%; margin-left: auto; margin-right: auto; }
.blog-embed iframe { display: block; width: 100%; border: 0; border-radius: 8px; }
.blog-embed iframe[src*="youtube"], .blog-embed iframe[src*="vimeo"] { aspect-ratio: 16 / 9; height: auto; }
.blog-embed blockquote { border: 0; padding: 0; font-style: normal; font-size: inherit; }
.blog-content mark { background: #fff1c2; color: #6b4e00; padding: 1px 4px; border-radius: 3px; }
@media (max-width: 575px) {
  .blog-content { margin-top: 30px; font-size: 17px; }
  .blog-content h2 { font-size: 24px; }
  .blog-content blockquote { font-size: 19px; }
}

/* Llamado a la acción dentro de la nota */
.blog-post__cta {
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 740px;
  margin: 50px auto 0;
  padding: 26px 28px;
  border-radius: var(--sol-radius);
  background: var(--sol-bg-alt);
  text-align: left;
}
.blog-post__cta p { margin: 0; color: var(--sol-text); font-size: 15px; font-weight: 400; }
.blog-post__cta .blog-post__cta-title { margin-bottom: 4px; color: var(--sol-ink); font-family: "Roboto", Helvetica, Arial, sans-serif; font-size: 19px; font-weight: 500; }
.blog-post__cta .button { flex-shrink: 0; margin: 0; align-self: flex-start; }
.blog-post__cta .button .mdi { margin-right: 6px; }
@media (min-width: 768px) {
  .blog-post__cta { flex-direction: row; align-items: center; justify-content: space-between; }
  .blog-post__cta .button { align-self: center; }
}

/* Compartir */
.blog-share {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 740px;
  margin: 30px auto 0;
  padding: 24px 0 70px;
  border-top: 1px solid var(--sol-line);
}
.blog-share > span {
  margin-right: 6px;
  color: var(--sol-text);
  font-family: "Roboto", Helvetica, Arial, sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.blog-share a, .blog-share button {
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--sol-line);
  border-radius: 50%;
  background: #fff;
  color: var(--sol-brown);
  font-size: 18px;
  line-height: 38px;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.blog-share a:hover, .blog-share button:hover, .blog-share__copy.is-done { background: var(--sol-brown); border-color: var(--sol-brown); color: #fff; }

/* Relacionadas */
.blog-related__title { margin: 0 0 34px; color: var(--sol-ink); font-size: 30px; text-align: center; text-transform: none; letter-spacing: 0; }
.blog-related__all { margin: 40px 0 0; text-align: center; }
