/*
 * Base compartida del Blog y de Preguntas frecuentes: encabezado, rótulos, botones, etiquetas y llamado final.
 * Misma estética que las landings (Poppins, línea roja en los rótulos, paleta --brand-*).
 */
.ecb-hero, .ecb-list, .ecb-post, .ecb-related, .ecb-cta, .ecf-hero, .ecf-list {
  color: var(--brand-ink, #152736);
  font-family: "Ecopure Poppins", "Poppins", Arial, sans-serif;
}
.ecb-wrap { width: min(calc(100% - 64px), 1180px); margin: 0 auto; }
.ecb-wrap--narrow { width: min(calc(100% - 48px), 780px); }
@media (max-width: 549px) { .ecb-wrap { width: calc(100% - 32px); } .ecb-wrap--narrow { width: calc(100% - 32px); } }

/* Encabezado de página */
.ecb-hero, .ecf-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(56px, 7vw, 100px) 0 clamp(40px, 5vw, 64px);
  background:
    radial-gradient(circle at 92% 8%, color-mix(in srgb, var(--brand-sky, #7fa8d8) 22%, transparent), transparent 32%),
    linear-gradient(135deg, #f9fcfd 0%, #eef6fa 60%, #f8fbfc 100%);
}
.ecb-hero::before, .ecf-hero::before {
  content: "";
  position: absolute;
  top: 40px;
  right: -180px;
  width: 480px;
  height: 480px;
  border: 1px solid color-mix(in srgb, var(--brand-sky, #7fa8d8) 18%, transparent);
  border-radius: 50%;
  pointer-events: none;
}
.ecb-hero > .ecb-wrap, .ecf-hero > .ecb-wrap { position: relative; z-index: 1; }
.ecb-eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 20px;
  color: var(--brand-blue, #2f6f9f);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .17em;
  line-height: 1.2;
  text-transform: uppercase;
}
.ecb-eyebrow::before { content: ""; flex: 0 0 24px; width: 24px; height: 2px; background: var(--brand-red, #e31d3b); }
.ecb-eyebrow--light { color: #d5e8f4; }
.ecb-title {
  max-width: 900px;
  margin: 0 0 22px;
  color: var(--brand-ink, #152736);
  font-size: clamp(40px, 5vw, 70px);
  font-weight: 600;
  letter-spacing: -.055em;
  line-height: 1;
  text-wrap: balance;
}
.ecb-lead {
  max-width: 700px;
  margin: 0;
  color: #4f6473;
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.62;
}

/* Botón principal (rojo, con flecha) */
.ecb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 26px;
  border-radius: 999px;
  background: var(--brand-red, #e31d3b);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 12px 26px color-mix(in srgb, var(--brand-red, #e31d3b) 22%, transparent);
  transition: transform .18s ease, background-color .18s ease;
}
.ecb-btn::after {
  content: "";
  width: 1.05em;
  height: 1.05em;
  background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform .2s ease;
}
.ecb-btn:hover { background: var(--brand-red-dark, #c91431); color: #fff; transform: translateY(-2px); }
.ecb-btn:hover::after { transform: translateX(3px); }

/* Etiquetas y datos */
.ecb-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 14px; color: var(--brand-muted, #5f717e); font-size: 13px; }
.ecb-chip {
  display: inline-flex;
  align-items: center;
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--brand-pale, #eaf4fa);
  color: var(--brand-blue, #2f6f9f);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .06em;
  text-decoration: none;
  text-transform: uppercase;
}
a.ecb-chip:hover { background: var(--brand-blue, #2f6f9f); color: #fff; }

/* Filtros en pastilla (categorías del blog y temas de preguntas) */
.ecb-cats, .ecf-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 30px; }
.ecb-cats a, .ecf-chips button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border: 1px solid var(--brand-line, #dce6eb);
  border-radius: 999px;
  background: #fff;
  color: var(--brand-ink, #152736);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease;
}
.ecb-cats a:hover, .ecf-chips button:hover { border-color: var(--brand-blue, #2f6f9f); }
.ecb-cats a[aria-current="page"], .ecf-chips button[aria-pressed="true"] { border-color: var(--brand-ink, #152736); background: var(--brand-ink, #152736); color: #fff; }
.ecf-chips button span { min-width: 22px; padding: 1px 7px; border-radius: 999px; background: var(--brand-pale, #eaf4fa); color: var(--brand-blue, #2f6f9f); font-size: 12px; text-align: center; }
.ecf-chips button[aria-pressed="true"] span { background: rgba(255, 255, 255, .16); color: #fff; }

/* Llamado final */
.ecb-cta { padding: clamp(48px, 6vw, 84px) 0; background: var(--brand-ink, #152736); }
.ecb-cta__box { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px 40px; }
.ecb-cta h2 { max-width: 720px; margin: 0; color: #fff; font-size: clamp(28px, 3.4vw, 46px); font-weight: 600; letter-spacing: -.045em; line-height: 1.08; text-wrap: balance; }
.ecb-cta .ecb-eyebrow { margin-bottom: 16px; }
