/* ═══════════════════════════════════════════════════════════
   Blog Article – Estilos para páginas de artículo
   ═══════════════════════════════════════════════════════════ */

/* ── Tokens locales ────────────────────────────────────── */
:root {
  --ba-accent:       #b94d28;
  --ba-accent-light: rgba(185, 77, 40, 0.10);
  --ba-dark:         #0d1c29;
  --ba-surface:      #fafaf8;
  --ba-line:         rgba(16, 35, 61, 0.09);
  --ba-radius:       20px;
  --ba-body-max:     780px;
}

.blog-page { overflow-x: clip; }

/* ── Barra de progreso de lectura ──────────────────────── */
.ba-reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--ba-accent), #e07045);
  z-index: 9999;
  transition: width 0.1s linear;
}

/* ── Breadcrumb ────────────────────────────────────────── */
.ba-breadcrumb {
  background: var(--ba-surface);
  border-bottom: 1px solid var(--ba-line);
  padding: 0.9rem 0;
}

.ba-breadcrumb .container {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  font-size: 0.85rem;
}

.ba-breadcrumb a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--ba-accent);
  font-weight: 700;
  text-decoration: none;
  transition: color 0.2s ease;
}

.ba-breadcrumb a:hover {
  color: #8b3e21;
}

.ba-breadcrumb span {
  color: #9ca3af;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 60vw;
}

.ba-breadcrumb span::before {
  content: "/";
  margin-right: 0.6rem;
  color: var(--ba-line);
}

/* ── HERO ──────────────────────────────────────────────── */
.ba-hero {
  position: relative;
  min-height: clamp(380px, 52vh, 560px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  margin-top: 0;
}

.ba-hero-img-wrap {
  position: absolute;
  inset: 0;
}

.ba-hero-banner {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.ba-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(10, 20, 32, 0.20) 0%,
    rgba(10, 20, 32, 0.55) 50%,
    rgba(10, 20, 32, 0.88) 100%
  );
}

.ba-hero-content {
  position: relative;
  z-index: 2;
  padding-bottom: clamp(2rem, 5vw, 3.5rem);
  padding-top: 2rem;
}

.ba-hero-inner {
  max-width: var(--ba-body-max);
}

.ba-meta-top {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.1rem;
}

.ba-category-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.38rem 0.85rem;
  border-radius: 999px;
  background: var(--ba-accent);
  color: #fff;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.ba-read-time {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.85rem;
}

.ba-hero h1 {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.7rem, 3.8vw, 3rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: #fff;
  margin-bottom: 1.1rem;
}

.ba-meta-bottom {
  display: flex;
  gap: 1.4rem;
  flex-wrap: wrap;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.85rem;
}

.ba-meta-bottom span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

/* ── CUERPO ────────────────────────────────────────────── */
.ba-main {
  background: var(--ba-surface);
  padding: clamp(3rem, 6vw, 5rem) 0 0;
}

.ba-body-wrap {
  max-width: var(--ba-body-max);
  margin: 0 auto;
}

/* Texto intro */
.ba-lead-text {
  margin-bottom: 2.5rem;
}

.ba-lead-text p {
  font-size: 1.08rem;
  line-height: 1.78;
  color: #3a4450;
  margin-bottom: 1rem;
}

.ba-lead-text p:last-child { margin-bottom: 0; }

/* Separador */
.ba-divider {
  height: 1px;
  background: var(--ba-line);
  margin: 2.8rem 0;
}

/* Título de sección */
.ba-section-title {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.4rem, 2.8vw, 2rem);
  font-weight: 800;
  color: var(--ba-dark);
  letter-spacing: -0.03em;
  margin-bottom: 2rem;
}

/* ── Tarjetas de categoría ─────────────────────────────── */
.ba-cat-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--ba-line);
  border-left: 4px solid var(--ba-accent);
  border-radius: var(--ba-radius);
  padding: 1.8rem 1.8rem 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 8px 30px rgba(16, 35, 61, 0.06);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.ba-cat-card:hover {
  box-shadow: 0 16px 48px rgba(16, 35, 61, 0.1);
  transform: translateY(-2px);
}

.ba-cat-header {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
}

.ba-cat-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--ba-accent-light);
  border: 1px solid rgba(185, 77, 40, 0.14);
  flex-shrink: 0;
  margin-top: 0.2rem;
}

.ba-cat-icon i {
  font-size: 1.1rem;
  color: var(--ba-accent);
}

.ba-cat-num {
  display: block;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--ba-accent);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.15rem;
}

.ba-cat-title {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.18rem;
  font-weight: 700;
  color: var(--ba-dark);
  margin: 0;
  line-height: 1.2;
}

.ba-cat-card > p {
  font-size: 0.96rem;
  line-height: 1.72;
  color: #4a5568;
  margin-bottom: 1.1rem;
}

/* Pills de metadatos */
.ba-cat-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.ba-meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.32rem 0.75rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.3;
}

.ba-meta-obj {
  background: rgba(18, 60, 85, 0.08);
  color: #123c55;
}

.ba-meta-budget {
  background: rgba(185, 77, 40, 0.09);
  color: #8b3e21;
}

.ba-meta-use {
  background: rgba(16, 35, 61, 0.06);
  color: #4a5568;
}

/* Tags de ejemplos */
.ba-examples {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 1rem;
}

.ba-ex-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: #6b7280;
  margin-right: 0.2rem;
}

.ba-ex-tag {
  display: inline-block;
  padding: 0.22rem 0.7rem;
  background: #f3f4f6;
  border-radius: 999px;
  font-size: 0.8rem;
  color: #374151;
  font-weight: 500;
}

/* Tip */
.ba-tip {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 0.85rem 1rem;
  background: rgba(185, 77, 40, 0.06);
  border-radius: 12px;
  font-size: 0.88rem;
  color: #5a3020;
  line-height: 1.6;
}

.ba-tip i {
  color: var(--ba-accent);
  font-size: 0.95rem;
  flex-shrink: 0;
  margin-top: 0.15rem;
}

/* ── Caja de preguntas ─────────────────────────────────── */
.ba-questions-box {
  background: linear-gradient(155deg, #0e2132 0%, #0d1c29 50%, #152d40 100%);
  border-radius: 28px;
  padding: clamp(2rem, 4vw, 3rem);
  color: #f5f0e8;
  margin-bottom: 0;
}

.ba-questions-icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: rgba(185, 77, 40, 0.18);
  border: 1px solid rgba(185, 77, 40, 0.28);
  margin-bottom: 1.2rem;
}

.ba-questions-icon i {
  font-size: 1.4rem;
  color: #f6b087;
}

.ba-questions-box h2 {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  font-weight: 800;
  color: #fff8ef;
  letter-spacing: -0.03em;
  margin-bottom: 0.6rem;
}

.ba-questions-box > p {
  color: rgba(245, 240, 232, 0.72);
  font-size: 0.96rem;
  margin-bottom: 1.8rem;
  line-height: 1.6;
}

.ba-questions-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.ba-questions-list li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.ba-q-num {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--ba-accent), #d5643d);
  color: #fff;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  flex-shrink: 0;
  box-shadow: 0 6px 16px rgba(185, 77, 40, 0.3);
}

.ba-questions-list li > div strong {
  display: block;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.98rem;
  font-weight: 700;
  color: #fff8ef;
  margin-bottom: 0.25rem;
}

.ba-questions-list li > div p {
  font-size: 0.87rem;
  color: rgba(245, 240, 232, 0.68);
  line-height: 1.6;
  margin: 0;
}

/* ── CTA FINAL ─────────────────────────────────────────── */
.ba-cta-section {
  background: var(--ba-surface);
  padding: clamp(3rem, 6vw, 5rem) 0 clamp(3rem, 6vw, 5rem);
}

.ba-cta-box {
  max-width: var(--ba-body-max);
  margin: 0 auto;
  text-align: center;
  background: #fff;
  border: 1px solid var(--ba-line);
  border-radius: 28px;
  padding: clamp(2.5rem, 5vw, 4rem) clamp(1.5rem, 4vw, 3rem);
  box-shadow: 0 24px 60px rgba(16, 35, 61, 0.08);
}

.ba-cta-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  padding: 0.46rem 0.85rem;
  border-radius: 999px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ba-accent);
  background: var(--ba-accent-light);
  border: 1px solid rgba(185, 77, 40, 0.16);
}

.ba-cta-box h2 {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 800;
  color: var(--ba-dark);
  letter-spacing: -0.03em;
  margin-bottom: 0.85rem;
}

.ba-cta-box > p {
  font-size: 1rem;
  color: #5e6978;
  line-height: 1.7;
  max-width: 520px;
  margin: 0 auto 2rem;
}

.ba-cta-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-bottom: 1.2rem;
}

.ba-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1.8rem;
  border-radius: 999px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ba-cta-btn:hover {
  transform: translateY(-2px);
}

.ba-cta-btn--primary {
  background: linear-gradient(135deg, var(--ba-accent) 0%, #d5643d 100%);
  color: #fff;
  box-shadow: 0 10px 28px rgba(185, 77, 40, 0.28);
}

.ba-cta-btn--primary:hover {
  color: #fff;
  box-shadow: 0 14px 36px rgba(185, 77, 40, 0.38);
}

.ba-cta-btn--whatsapp {
  background: #25d366;
  color: #fff;
  box-shadow: 0 10px 28px rgba(37, 211, 102, 0.28);
}

.ba-cta-btn--whatsapp:hover {
  color: #fff;
  box-shadow: 0 14px 36px rgba(37, 211, 102, 0.38);
}

.ba-cta-sub {
  font-size: 0.82rem;
  color: #9ca3af;
  margin: 0;
}

/* ═══════════════════════════════════════════════════════════
   BLOG INDEX – Página de listado de artículos (blog.html)
   ═══════════════════════════════════════════════════════════ */

/* ── Hero del índice ───────────────────────────────────── */
.bl-hero {
  position: relative;
  padding: clamp(6.5rem, 12vw, 9rem) 0 clamp(3rem, 6vw, 4.5rem);
  background:
    radial-gradient(ellipse at 20% 20%, rgba(185, 77, 40, 0.18), transparent 45%),
    radial-gradient(ellipse at 85% 70%, rgba(18, 60, 85, 0.16), transparent 40%),
    linear-gradient(155deg, #0e2132 0%, #0d1c29 55%, #152d40 100%);
  color: #fff8ef;
  text-align: center;
  overflow: hidden;
}

.bl-hero-inner {
  max-width: 720px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.bl-hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.1rem;
  padding: 0.46rem 0.9rem;
  border-radius: 999px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #ffdbc8;
  background: rgba(185, 77, 40, 0.2);
  border: 1px solid rgba(255, 200, 170, 0.16);
}

.bl-hero h1 {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.04em;
  margin-bottom: 1rem;
}

.bl-hero h1 .accent {
  background: linear-gradient(135deg, #f6b087, #e86d3a);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.bl-hero p {
  font-size: 1.08rem;
  line-height: 1.7;
  color: rgba(255, 248, 239, 0.82);
  max-width: 560px;
  margin: 0 auto;
}

/* ── Filtros ───────────────────────────────────────────── */
.bl-listing {
  background: var(--ba-surface);
  padding: clamp(2.5rem, 5vw, 4rem) 0 clamp(3.5rem, 7vw, 6rem);
}

.bl-filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 2.8rem;
}

.bl-filter-btn {
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
  border: 1.5px solid var(--ba-line);
  background: #fff;
  color: #4a5568;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
}

.bl-filter-btn:hover {
  border-color: rgba(185, 77, 40, 0.3);
  color: var(--ba-accent);
}

.bl-filter-btn.is-active {
  background: var(--ba-accent);
  border-color: var(--ba-accent);
  color: #fff;
}

/* ── Grid de artículos ─────────────────────────────────── */
.bl-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem;
  max-width: 1120px;
  margin: 0 auto;
}

/* Tarjeta destacada (primer artículo, ocupa fila completa) */
.bl-card--featured {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
}

.bl-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--ba-line);
  border-radius: var(--ba-radius);
  overflow: hidden;
  text-decoration: none;
  box-shadow: 0 8px 30px rgba(16, 35, 61, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.bl-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 22px 55px rgba(16, 35, 61, 0.13);
}

.bl-card-img {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #eef0f2;
}

.bl-card--featured .bl-card-img {
  aspect-ratio: auto;
  height: 100%;
  min-height: 260px;
}

.bl-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.bl-card:hover .bl-card-img img {
  transform: scale(1.05);
}

.bl-card-cat {
  position: absolute;
  top: 0.9rem;
  left: 0.9rem;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  background: rgba(185, 77, 40, 0.95);
  color: #fff;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  backdrop-filter: blur(4px);
}

.bl-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.4rem 1.5rem 1.5rem;
}

.bl-card--featured .bl-card-body {
  padding: clamp(1.6rem, 3vw, 2.4rem);
  justify-content: center;
}

.bl-card-meta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 0.7rem;
  font-size: 0.78rem;
  color: #9ca3af;
}

.bl-card-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.bl-card h2,
.bl-card h3 {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  color: var(--ba-dark);
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 0.6rem;
}

.bl-card h3 {
  font-size: 1.14rem;
}

.bl-card--featured h2 {
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  margin-bottom: 0.85rem;
}

.bl-card p {
  font-size: 0.9rem;
  line-height: 1.6;
  color: #5e6978;
  margin-bottom: 1.2rem;
  flex: 1;
}

.bl-card--featured p {
  font-size: 1rem;
  line-height: 1.7;
}

.bl-card-more {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--ba-accent);
  margin-top: auto;
  transition: gap 0.25s ease;
}

.bl-card:hover .bl-card-more {
  gap: 0.85rem;
}

/* Placeholder "próximamente" */
.bl-card--soon {
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2.5rem 1.5rem;
  border-style: dashed;
  box-shadow: none;
  background: transparent;
  color: #9ca3af;
  cursor: default;
}

.bl-card--soon:hover {
  transform: none;
  box-shadow: none;
  border-color: rgba(185, 77, 40, 0.3);
}

.bl-card--soon i {
  font-size: 1.8rem;
  color: rgba(185, 77, 40, 0.4);
  margin-bottom: 0.8rem;
}

.bl-card--soon strong {
  display: block;
  font-family: "Space Grotesk", sans-serif;
  color: var(--ba-dark);
  margin-bottom: 0.3rem;
}

.bl-card--soon span {
  font-size: 0.85rem;
}

/* Estado sin resultados */
.bl-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 3rem 1rem;
  color: #9ca3af;
}

/* ── RESPONSIVE ────────────────────────────────────────── */
@media (max-width: 991.98px) {
  .bl-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .bl-card--featured {
    grid-template-columns: 1fr;
  }

  .bl-card--featured .bl-card-img {
    aspect-ratio: 16 / 9;
    min-height: 0;
  }
}

@media (max-width: 767.98px) {
  .ba-hero {
    min-height: clamp(320px, 60vw, 420px);
  }

  .ba-cat-card {
    padding: 1.4rem 1.2rem 1.2rem;
  }

  .ba-cat-meta {
    flex-direction: column;
    gap: 0.4rem;
  }

  .ba-questions-box {
    padding: 1.6rem 1.3rem;
  }

  .ba-cta-actions {
    flex-direction: column;
    align-items: center;
  }

  .ba-cta-btn {
    width: 100%;
    max-width: 320px;
    justify-content: center;
  }

  .bl-grid {
    grid-template-columns: 1fr;
  }
}
