/*
 * Blog: listado (tarjetas, destacada, paginación) y nota individual (portada, texto, compartir, relacionadas).
 * La base compartida (encabezado, botones, etiquetas) está en contenido.css.
 */
.ecb-list { padding: clamp(40px, 5vw, 72px) 0 clamp(64px, 8vw, 110px); background: #fff; }
.ecb-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
@media (max-width: 1000px) { .ecb-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .ecb-grid { grid-template-columns: 1fr; gap: 20px; } }

/* Tarjeta */
.ecb-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--brand-line, #dce6eb);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(20, 54, 77, .04);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.ecb-card:hover { transform: translateY(-4px); border-color: transparent; box-shadow: 0 26px 60px rgba(20, 54, 77, .13); }
.ecb-card__media { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--brand-pale, #eaf4fa); }
.ecb-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.ecb-card:hover .ecb-card__media img { transform: scale(1.04); }
.ecb-card__ph { display: grid; place-items: center; width: 100%; height: 100%; background: linear-gradient(135deg, var(--brand-pale, #eaf4fa), #f6fafc); }
.ecb-card__ph svg { width: 54px; height: 54px; fill: none; stroke: var(--brand-sky, #7fa8d8); stroke-width: 1.2; }
.ecb-card__body { display: flex; flex: 1; flex-direction: column; padding: 24px 26px 26px; }
.ecb-card__title { margin: 0 0 10px; font-size: 21px; font-weight: 600; letter-spacing: -.03em; line-height: 1.22; }
.ecb-card__title a { color: var(--brand-ink, #152736); text-decoration: none; }
.ecb-card__title a:hover { color: var(--brand-blue, #2f6f9f); }
.ecb-card__excerpt { margin: 0 0 20px; color: var(--brand-muted, #5f717e); font-size: 15px; line-height: 1.6; }
.ecb-more { display: inline-flex; align-items: center; gap: 8px; margin-top: auto; color: var(--brand-red, #e31d3b); font-size: 14px; font-weight: 700; text-decoration: none; }
.ecb-more svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s ease; }
.ecb-more:hover { color: var(--brand-red-dark, #c91431); }
.ecb-more:hover svg { transform: translateX(3px); }

/* Destacada (primera nota de la portada) */
.ecb-card--big { flex-direction: row; margin-bottom: 36px; border-radius: 28px; }
.ecb-card--big .ecb-card__media { flex: 0 0 56%; aspect-ratio: auto; min-height: 380px; }
.ecb-card--big .ecb-card__body { justify-content: center; padding: clamp(28px, 4vw, 52px); }
.ecb-card--big .ecb-card__title { font-size: clamp(26px, 2.6vw, 38px); letter-spacing: -.045em; line-height: 1.08; }
.ecb-card--big .ecb-card__excerpt { font-size: 16.5px; }
.ecb-card--big .ecb-more { margin-top: 6px; }
@media (max-width: 860px) {
  .ecb-card--big { flex-direction: column; }
  .ecb-card--big .ecb-card__media { flex-basis: auto; min-height: 0; aspect-ratio: 16 / 10; }
}

.ecb-empty { max-width: 560px; margin: 0 auto; padding: 40px 0; text-align: center; }
.ecb-empty .ecb-card__ph { width: 96px; height: 96px; margin: 0 auto 18px; border-radius: 50%; }
.ecb-empty h2 { margin: 0 0 10px; color: var(--brand-ink, #152736); font-size: 28px; font-weight: 600; letter-spacing: -.04em; }
.ecb-empty p { margin: 0; color: var(--brand-muted, #5f717e); }

.ecb-pager { display: flex; justify-content: center; gap: 8px; margin-top: 48px; }
.ecb-pager a { display: grid; place-items: center; min-width: 44px; height: 44px; padding: 0 12px; border: 1px solid var(--brand-line, #dce6eb); border-radius: 999px; color: var(--brand-ink, #152736); font-weight: 600; text-decoration: none; }
.ecb-pager a:hover { border-color: var(--brand-blue, #2f6f9f); }
.ecb-pager a[aria-current="page"] { border-color: var(--brand-ink, #152736); background: var(--brand-ink, #152736); color: #fff; }

/* Nota */
.ecb-post__hero {
  padding: clamp(40px, 6vw, 84px) 0 clamp(32px, 4vw, 48px);
  background: linear-gradient(180deg, #f6fafc 0%, #fff 100%);
}
.ecb-back { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 26px; color: var(--brand-blue, #2f6f9f); font-size: 14px; font-weight: 600; text-decoration: none; }
.ecb-back svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ecb-back:hover { color: var(--brand-ink, #152736); }
.ecb-post__title { margin: 6px 0 20px; color: var(--brand-ink, #152736); font-size: clamp(34px, 4.4vw, 58px); font-weight: 600; letter-spacing: -.05em; line-height: 1.04; text-wrap: balance; }
.ecb-draft { margin: 0 0 18px; padding: 10px 14px; border: 1px solid #f2d48a; border-radius: 10px; background: #fff7e0; color: #7a5600; font-size: 14px; }
.ecb-post__cover { width: min(calc(100% - 64px), 1080px); margin: 0 auto clamp(32px, 4vw, 52px); overflow: hidden; border-radius: 28px; box-shadow: 0 26px 70px rgba(20, 54, 77, .13); }
.ecb-post__cover img { display: block; width: 100%; max-height: 600px; object-fit: cover; }
@media (max-width: 549px) { .ecb-post__cover { width: calc(100% - 32px); border-radius: 18px; } }
.ecb-post__body { padding-bottom: clamp(48px, 6vw, 80px); }

/* Texto de la nota */
.ecb-prose { color: #33495a; font-size: 18px; line-height: 1.78; }
.ecb-prose > *:first-child { margin-top: 0; }
.ecb-prose p { margin: 0 0 1.25em; color: #33495a; }
.ecb-prose h2 { margin: 1.9em 0 .6em; color: var(--brand-ink, #152736); font-size: clamp(26px, 2.6vw, 34px); font-weight: 600; letter-spacing: -.04em; line-height: 1.15; }
.ecb-prose h3 { margin: 1.6em 0 .5em; color: var(--brand-ink, #152736); font-size: 22px; font-weight: 600; letter-spacing: -.03em; line-height: 1.25; }
.ecb-prose h4 { margin: 1.4em 0 .4em; color: var(--brand-ink, #152736); font-size: 18px; font-weight: 700; }
.ecb-prose a { color: var(--brand-blue, #2f6f9f); text-decoration: underline; text-underline-offset: 3px; }
.ecb-prose a:hover { color: var(--brand-red, #e31d3b); }
.ecb-prose strong, .ecb-prose b { color: var(--brand-ink, #152736); }
.ecb-prose ul, .ecb-prose ol { margin: 0 0 1.35em; padding-left: 1.3em; }
.ecb-prose li { margin: 0 0 .5em; padding-left: .2em; }
.ecb-prose ul li::marker { color: var(--brand-red, #e31d3b); }
.ecb-prose ol li::marker { color: var(--brand-blue, #2f6f9f); font-weight: 700; }
.ecb-prose blockquote {
  margin: 1.8em 0;
  padding: 6px 0 6px 26px;
  border-left: 3px solid var(--brand-red, #e31d3b);
  color: var(--brand-ink, #152736);
  font-size: 22px;
  font-style: normal;
  font-weight: 500;
  letter-spacing: -.02em;
  line-height: 1.5;
}
.ecb-prose blockquote p { color: inherit; }
.ecb-prose img { display: block; max-width: 100%; height: auto; border-radius: 18px; }
.ecb-prose figure { margin: 2em 0; }
.ecb-prose figcaption { margin-top: 10px; color: var(--brand-muted, #5f717e); font-size: 14px; text-align: center; }
.ecb-prose hr { margin: 2.4em 0; border: 0; border-top: 1px solid var(--brand-line, #dce6eb); }
.ecb-prose iframe { display: block; width: 100%; aspect-ratio: 16 / 9; height: auto; margin: 2em 0; border: 0; border-radius: 18px; }
.ecb-prose table { width: 100%; margin: 1.6em 0; border-collapse: collapse; font-size: 16px; }
.ecb-prose th, .ecb-prose td { padding: 10px 12px; border-bottom: 1px solid var(--brand-line, #dce6eb); text-align: left; }
@media (max-width: 549px) { .ecb-prose { font-size: 17px; } }

/* Compartir */
.ecb-share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 40px 0; padding: 22px 0; border-top: 1px solid var(--brand-line, #dce6eb); border-bottom: 1px solid var(--brand-line, #dce6eb); }
.ecb-share > span { margin-right: 6px; color: var(--brand-muted, #5f717e); font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.ecb-share a, .ecb-share button { padding: 8px 14px; border: 1px solid var(--brand-line, #dce6eb); border-radius: 999px; background: #fff; color: var(--brand-ink, #152736); font: inherit; font-size: 13.5px; font-weight: 600; text-decoration: none; cursor: pointer; }
.ecb-share a:hover, .ecb-share button:hover { border-color: var(--brand-blue, #2f6f9f); color: var(--brand-blue, #2f6f9f); }
.ecb-share button.is-done { border-color: #61a97e; color: #2f7a4f; }

/* Llamado dentro de la nota */
.ecb-post__cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: clamp(26px, 4vw, 40px);
  border-radius: 24px;
  background: var(--brand-pale, #eaf4fa);
}
.ecb-post__cta h2 { margin: 0 0 8px; color: var(--brand-ink, #152736); font-size: clamp(22px, 2.4vw, 30px); font-weight: 600; letter-spacing: -.035em; line-height: 1.15; }
.ecb-post__cta p { margin: 0; color: var(--brand-muted, #5f717e); }
.ecb-post__cta .ecb-eyebrow { margin-bottom: 12px; }

/* Relacionadas */
.ecb-related { padding: clamp(48px, 6vw, 84px) 0; background: var(--brand-surface, #f6f9fb); }
.ecb-related__title { margin: 0 0 28px; color: var(--brand-ink, #152736); font-size: clamp(28px, 3vw, 40px); font-weight: 600; letter-spacing: -.045em; }
.ecb-related .ecb-card__title { font-size: 19px; }
.ecb-prose figure.eco-video iframe { margin: 0; }
