/* ===================================================================
   Artículo del blog (rediseño sep 2026)
   Misma familia editorial que /servicios, /herramientas y la prueba
   gratuita: filete rosa en los eyebrow, Montserrat en titulares,
   tarjetas negras de cierre y degradado de marca en el CTA.
   Prefijo .bga- para no chocar con blog-styles.min.css, que sigue
   sirviendo al listado del blog.
   =================================================================== */

.bga { background: #fff; }
.bga * { box-sizing: border-box; }

/* ---------- Estructura ---------- */
.bga__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}
.bga__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 32px;
  padding-block: 28px 56px;
}

/* ---------- Cabecera del artículo ---------- */
.bga-head { padding-top: 8px; }
.bga-head__crumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 14px;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #e61c72;
}
.bga-head__crumbs::before {
  content: "";
  width: 22px;
  height: 2px;
  background: #e61c72;
  border-radius: 2px;
}
.bga-head__crumbs a { color: inherit; text-decoration: none; }
.bga-head__crumbs a:hover { text-decoration: underline; }
.bga-head__crumbs span[aria-hidden] { color: #f0a0c4; }

.bga-head__title {
  margin: 0 0 16px;
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: clamp(1.9rem, 5.2vw, 3rem);
  line-height: 1.06;
  font-weight: 800;
  letter-spacing: -.035em;
  color: #14181f;
  text-wrap: balance;
}

.bga-head__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: .84rem;
  color: #6b7280;
}
.bga-head__meta li { display: flex; align-items: center; gap: 14px; }
.bga-head__meta li + li::before {
  content: "";
  width: 3px; height: 3px;
  border-radius: 50%;
  background: #d1d5db;
}

/* ---------- Imagen de portada ---------- */
.bga-cover {
  position: relative;
  margin: 22px 0 26px;
  border-radius: 18px;
  overflow: hidden;
  background: #f1f3f6;
  aspect-ratio: 1200 / 630;
}
.bga-cover img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: cover;
}

/* ---------- Cuerpo del artículo ---------- */
.bga-body {
  font-size: 1.02rem;
  line-height: 1.75;
  color: #374151;
}
.bga-body > p { margin: 0 0 18px; }
.bga-body strong { color: #14181f; font-weight: 700; }
.bga-body a {
  color: #c4105f;
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 1px;
}
.bga-body a:hover { color: #e61c72; }

.bga-body h2 {
  margin: 42px 0 14px;
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: clamp(1.4rem, 3.6vw, 1.85rem);
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -.028em;
  color: #14181f;
  scroll-margin-top: 90px;
  text-wrap: balance;
}
.bga-body h3 {
  margin: 30px 0 10px;
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 1.12rem;
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -.018em;
  color: #14181f;
  scroll-margin-top: 90px;
}

.bga-body ul, .bga-body ol { margin: 0 0 18px; padding-left: 22px; }
.bga-body li { margin-bottom: 9px; }
.bga-body ul li::marker { color: #e61c72; }
.bga-body ol li::marker { color: #e61c72; font-weight: 700; }

.bga-body blockquote {
  margin: 24px 0;
  padding: 18px 22px;
  border: 0;
  border-left: 3px solid #e61c72;
  border-radius: 0 14px 14px 0;
  background: #fdf2f7;
  font-size: .97rem;
  line-height: 1.68;
  color: #4b5563;
}
.bga-body blockquote strong { color: #14181f; }
.bga-body blockquote p:last-child { margin-bottom: 0; }

.bga-body img {
  max-width: 100%;
  height: auto;
  border-radius: 14px;
  margin: 8px 0 18px;
}

.bga-body hr {
  margin: 34px 0;
  border: 0;
  border-top: 1px solid #e8eaed;
}

/* Tablas: el contenedor .table-wrapper ya lo añade la vista */
.bga-body .table-wrapper {
  margin: 22px 0;
  overflow-x: auto;
  border: 1px solid #e8eaed;
  border-radius: 14px;
  -webkit-overflow-scrolling: touch;
}
.bga-body table {
  width: 100%;
  min-width: 480px;
  border-collapse: collapse;
  font-size: .92rem;
}
.bga-body thead th {
  padding: 12px 14px;
  background: #fafbfc;
  border-bottom: 1px solid #e8eaed;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: #6b7280;
  text-align: left;
  white-space: nowrap;
}
.bga-body tbody td {
  padding: 12px 14px;
  border-bottom: 1px solid #f0f2f5;
  vertical-align: top;
  color: #4b5563;
}
.bga-body tbody tr:last-child td { border-bottom: 0; }
.bga-body tbody td strong { color: #14181f; }

/* ---------- Índice del artículo ---------- */
.bga-body .toc-inline {
  margin: 26px 0 30px;
  border: 1px solid #e8eaed;
  border-radius: 16px;
  background: #fff;
  overflow: hidden;
}
.bga-body .toc-inline__summary {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  cursor: pointer;
  list-style: none;
  background: #fafbfc;
}
.bga-body .toc-inline__summary::-webkit-details-marker { display: none; }
.bga-body .toc-inline__eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: #e61c72;
}
.bga-body .toc-inline__icon { flex: 0 0 15px; }
.bga-body .toc-inline__meta {
  margin-left: auto;
  font-size: .78rem;
  color: #9aa1ab;
  white-space: nowrap;
}
.bga-body .toc-inline__chevron {
  flex: 0 0 17px;
  color: #9aa1ab;
  transition: transform .2s ease;
}
.bga-body .toc-inline[open] .toc-inline__chevron { transform: rotate(180deg); }
.bga-body .toc-inline__body { padding: 6px 18px 16px; }
.bga-body .toc-inline__list {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: none;
}
.bga-body .toc-inline__item { margin: 0; }
.bga-body .toc-inline__link {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid #f0f2f5;
  color: #374151;
  font-size: .92rem;
  line-height: 1.45;
  text-decoration: none;
}
.bga-body .toc-inline__link:hover { color: #e61c72; text-decoration: none; }
.bga-body .toc-inline__item:last-child > .toc-inline__link { border-bottom: 0; }
.bga-body .toc-inline__num {
  flex: 0 0 auto;
  font-size: .72rem;
  font-weight: 700;
  color: #c9ccd3;
  font-variant-numeric: tabular-nums;
}
.bga-body .toc-inline__link--h2 .toc-inline__text { font-weight: 600; }
.bga-body .toc-inline__sublist {
  margin: 0 0 4px;
  padding: 0 0 0 30px;
  list-style: none;
}
.bga-body .toc-inline__subitem { margin: 0; }
.bga-body .toc-inline__link--h3 {
  padding: 7px 0;
  font-size: .87rem;
  color: #6b7280;
  border-bottom: 0;
}

/* ---------- Pie del artículo ---------- */
.bga-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 34px 0 0;
  padding-top: 24px;
  border-top: 1px solid #e8eaed;
}
.bga-tags__label {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #9aa1ab;
  margin-right: 4px;
}
.bga-tag {
  padding: 6px 13px;
  border: 1px solid #e8eaed;
  border-radius: 999px;
  background: #fff;
  color: #4b5563;
  font-size: .82rem;
  font-weight: 600;
  text-decoration: none;
  transition: border-color .16s ease, color .16s ease;
}
.bga-tag:hover { border-color: #e61c72; color: #e61c72; text-decoration: none; }

.bga-author {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-top: 26px;
  padding: 20px;
  border: 1px solid #e8eaed;
  border-radius: 16px;
  background: #fafbfc;
}
.bga-author__avatar {
  flex: 0 0 56px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  overflow: hidden;
  background: #e8eaed;
}
.bga-author__avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bga-author__name {
  margin: 0 0 4px;
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: #14181f;
}
.bga-author__text { margin: 0; font-size: .87rem; line-height: 1.6; color: #6b7280; }

.bga-share {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid #e8eaed;
}
.bga-share__label {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #9aa1ab;
  margin-right: 2px;
}
.bga-share__btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border: 1px solid #e8eaed;
  border-radius: 999px;
  background: #fff;
  color: #4b5563;
  font-family: inherit;
  font-size: .82rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: border-color .16s ease, color .16s ease, background .16s ease;
}
.bga-share__btn:hover { border-color: #14181f; color: #14181f; text-decoration: none; }
.bga-share__btn svg { flex: 0 0 15px; width: 15px; height: 15px; }
.bga-share__btn.is-copied { border-color: #10b981; color: #059669; }

/* ---------- Columna lateral ---------- */
.bga-side { display: grid; gap: 16px; align-content: start; }

.bga-side__note {
  padding: 16px 18px;
  border-left: 3px solid #e61c72;
  border-radius: 0 12px 12px 0;
  background: #fdf2f7;
}
.bga-side__note h2 {
  margin: 0 0 6px;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #e61c72;
}
.bga-side__note p { margin: 0; font-size: .87rem; line-height: 1.6; color: #4b5563; }

.bga-cta {
  padding: 22px 20px;
  border-radius: 18px;
  background: linear-gradient(135deg, #e61c72 0%, #ff4d94 100%);
  color: #fff;
}
.bga-cta__kicker {
  display: block;
  margin-bottom: 8px;
  font-size: .66rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .8);
}
.bga-cta__title {
  margin: 0 0 8px;
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 1.32rem;
  line-height: 1.16;
  font-weight: 800;
  letter-spacing: -.025em;
  color: #fff;
}
.bga-cta__text { margin: 0 0 16px; font-size: .86rem; line-height: 1.6; color: rgba(255, 255, 255, .88); }
.bga-cta__btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 18px;
  border-radius: 11px;
  background: #fff;
  color: #e61c72 !important;
  font-size: .9rem;
  font-weight: 700;
  text-decoration: none !important;
  transition: transform .18s ease, box-shadow .18s ease;
}
.bga-cta__btn:hover { transform: translateY(-2px); box-shadow: 0 14px 28px -14px rgba(0, 0, 0, .4); }
.bga-cta__btn svg { flex: 0 0 15px; transition: transform .18s ease; }
.bga-cta__btn:hover svg { transform: translateX(3px); }

.bga-widget {
  padding: 20px 18px;
  border: 1px solid #e8eaed;
  border-radius: 18px;
  background: #fff;
}
.bga-widget__title {
  margin: 0 0 14px;
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -.015em;
  color: #14181f;
}

.bga-post {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 11px 0;
  border-bottom: 1px solid #f0f2f5;
  text-decoration: none;
}
.bga-post:first-of-type { padding-top: 0; }
.bga-post:last-of-type { border-bottom: 0; padding-bottom: 0; }
.bga-post__num {
  flex: 0 0 auto;
  padding-top: 1px;
  font-size: .72rem;
  font-weight: 700;
  color: #c9ccd3;
  font-variant-numeric: tabular-nums;
}
.bga-post__body { min-width: 0; }
.bga-post__title {
  margin: 0 0 3px;
  font-size: .87rem;
  font-weight: 600;
  line-height: 1.4;
  color: #14181f;
  transition: color .16s ease;
}
.bga-post:hover .bga-post__title { color: #e61c72; }
.bga-post__date { font-size: .74rem; color: #9aa1ab; }

.bga-cats { display: flex; flex-wrap: wrap; gap: 7px; }
.bga-cats a {
  padding: 6px 12px;
  border: 1px solid #e8eaed;
  border-radius: 999px;
  color: #4b5563;
  font-size: .8rem;
  font-weight: 600;
  text-decoration: none;
  transition: border-color .16s ease, color .16s ease;
}
.bga-cats a:hover { border-color: #e61c72; color: #e61c72; text-decoration: none; }

.bga-warn {
  padding: 18px 18px;
  border-radius: 16px;
  background: #101114;
  color: #fff;
}
.bga-warn__title {
  margin: 0 0 6px;
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: .95rem;
  font-weight: 700;
  color: #fff;
}
.bga-warn p { margin: 0; font-size: .83rem; line-height: 1.6; color: rgba(255, 255, 255, .74); }

/* ---------- Servicios relacionados ---------- */
.bga-services { padding: 44px 0 56px; background: #f7f8fa; }
.bga-services__eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 12px;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #e61c72;
}
.bga-services__eyebrow::before {
  content: "";
  width: 22px; height: 2px;
  background: #e61c72;
  border-radius: 2px;
}
.bga-services__title {
  margin: 0 0 22px;
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: clamp(1.4rem, 3.6vw, 1.9rem);
  line-height: 1.14;
  font-weight: 800;
  letter-spacing: -.03em;
  color: #14181f;
}
.bga-services__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 11px;
}
.bga-svc {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 16px;
  border: 1px solid #e8eaed;
  border-radius: 14px;
  background: #fff;
  color: #14181f;
  text-decoration: none;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.bga-svc:hover {
  transform: translateY(-2px);
  border-color: #e61c72;
  box-shadow: 0 14px 30px -18px rgba(230, 28, 114, .45);
  color: #14181f;
  text-decoration: none;
}
.bga-svc img { flex: 0 0 30px; width: 30px; height: 30px; border-radius: 8px; object-fit: cover; }
.bga-svc__name { font-size: .89rem; font-weight: 600; line-height: 1.35; }
.bga-svc__arrow { margin-left: auto; flex: 0 0 15px; color: #c9ccd3; transition: transform .18s ease, color .18s ease; }
.bga-svc:hover .bga-svc__arrow { color: #e61c72; transform: translateX(3px); }

/* ---------- Tablet ---------- */
@media (min-width: 640px) {
  .bga__inner { padding: 0 24px; }
  .bga-body { font-size: 1.06rem; }
  .bga-services__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
}

/* ---------- Escritorio ---------- */
@media (min-width: 992px) {
  .bga__grid {
    grid-template-columns: minmax(0, 1fr) 316px;
    gap: 48px;
    padding-block: 36px 72px;
  }
  .bga-side {
    position: sticky;
    top: 92px;
    align-self: start;
    max-height: calc(100vh - 110px);
    overflow-y: auto;
    scrollbar-width: thin;
  }
  .bga-side::-webkit-scrollbar { width: 6px; }
  .bga-side::-webkit-scrollbar-thumb { background: #dfe3e9; border-radius: 3px; }
  .bga-cover { margin: 26px 0 32px; }
  .bga-services { padding: 60px 0 76px; }
  .bga-services__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
  .bga-cta__btn, .bga-svc, .bga-share__btn, .bga-post__title,
  .bga-body .toc-inline__chevron, .bga-svc__arrow { transition: none; }
  .bga-cta__btn:hover, .bga-svc:hover { transform: none; }
}

/* ---------- Impresión ---------- */
@media print {
  .bga-side, .bga-share, .bga-services, .bga-body .toc-inline { display: none; }
  .bga__grid { grid-template-columns: 1fr; }
}
