:root {
  --bp-ink: #0b1220;
  --bp-muted: #64748b;
  --bp-soft: #94a3b8;
  --bp-line: #e2e8f0;
  --bp-bg: #f8fafc;
  --bp-card: #ffffff;
  --bp-featured-bg: #fff7ed;
  --bp-featured: #c2410c;
}

.bp-root {
  color: var(--bp-ink);
  line-height: 1.65;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  max-width: 920px;
  margin: 0 auto;
}

.bp-root * { box-sizing: border-box; }
.bp-root a { color: inherit; text-decoration: none; }
.bp-root a:hover { text-decoration: underline; text-underline-offset: 3px; }
.bp-loading {
  color: var(--bp-muted);
  padding: 2.5rem 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .85rem;
  text-align: center;
}
.bp-loading-spinner {
  width: 1.75rem;
  height: 1.75rem;
  border: 2px solid var(--bp-line);
  border-top-color: var(--bp-ink);
  border-radius: 50%;
  animation: bp-spin .7s linear infinite;
}
@keyframes bp-spin {
  to { transform: rotate(360deg); }
}

/* Hero */
.bp-hero { margin-bottom: 1.75rem; }
.bp-kicker {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--bp-soft);
  margin: 0 0 .65rem;
}
.bp-hero-title {
  font-size: clamp(2.5rem, 6vw, 3.75rem);
  font-weight: 700;
  letter-spacing: -.04em;
  margin: 0;
  line-height: 1.05;
}
.bp-hero-text {
  max-width: 36rem;
  color: #475569;
  margin: .9rem 0 0;
  font-size: 1.05rem;
}
.bp-chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.1rem; }
.bp-chip {
  border: 1px solid var(--bp-line);
  background: #fff;
  border-radius: 999px;
  padding: .35rem .8rem;
  font-size: 12px;
  color: #475569;
}

/* Compact meta strip (not dashboard cards) */
.bp-meta-strip {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem 1.25rem;
  align-items: baseline;
  padding: 1rem 0 1.25rem;
  margin-bottom: 1rem;
  border-top: 1px solid var(--bp-line);
  border-bottom: 1px solid var(--bp-line);
  color: var(--bp-muted);
  font-size: .92rem;
}
.bp-meta-strip strong {
  color: var(--bp-ink);
  font-size: 1.15rem;
  font-weight: 700;
  margin-right: .3rem;
}

.bp-filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.5rem; }
.bp-filter {
  border: 1px solid var(--bp-line);
  background: #fff;
  border-radius: 999px;
  padding: .45rem 1rem;
  font-size: 13px;
  color: #334155;
  cursor: pointer;
}
.bp-filter.is-active {
  background: var(--bp-ink);
  color: #fff;
  border-color: var(--bp-ink);
}
.bp-filter.is-static { cursor: default; }

/* List items — text first like tinguar.com/blog */
.bp-list { display: flex; flex-direction: column; gap: 1rem; }

.bp-item {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.1rem;
  background: var(--bp-card);
  border: 1px solid var(--bp-line);
  border-radius: 18px;
  padding: 1.25rem 1.35rem;
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.bp-item:hover {
  border-color: #cbd5e1;
  box-shadow: 0 10px 30px rgba(15, 23, 42, .06);
}

@media (min-width: 768px) {
  .bp-item.has-cover {
    grid-template-columns: 1fr 200px;
    align-items: center;
  }
  .bp-item.has-cover .bp-cover { order: 2; }
  .bp-item.has-cover .bp-body { order: 1; }
}

.bp-cover {
  width: 100%;
  display: block;
  object-fit: cover;
  border-radius: 14px;
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, #e2e8f0, #f1f5f9);
}

.bp-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .4rem;
  margin-bottom: .65rem;
}
.bp-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: .2rem .65rem;
  font-size: 11px;
  font-weight: 650;
  background: #f1f5f9;
  color: #334155;
}
.bp-badge.featured {
  background: var(--bp-featured-bg);
  color: var(--bp-featured);
}
.bp-mins {
  font-size: 12px;
  color: var(--bp-soft);
  margin-left: .15rem;
}

.bp-title {
  margin: 0;
  font-size: clamp(1.25rem, 2.4vw, 1.65rem);
  font-weight: 700;
  letter-spacing: -.025em;
  line-height: 1.25;
}
.bp-excerpt {
  margin: .65rem 0 0;
  color: #475569;
  font-size: .98rem;
  max-width: 48rem;
}
.bp-foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: .75rem;
  margin-top: 1.1rem;
  font-size: .9rem;
  color: var(--bp-muted);
}
.bp-foot strong { color: #334155; font-weight: 600; }
.bp-cta {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-weight: 700;
  color: #1d4ed8;
  white-space: nowrap;
}
.bp-cta:hover { text-decoration: none; color: #1e40af; }

/* Detail — misma familia visual que el listado */
.bp-detail {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.bp-back {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  width: fit-content;
  font-size: .92rem;
  font-weight: 700;
  color: #1d4ed8;
}
.bp-back:hover { text-decoration: none; color: #1e40af; }

.bp-detail-hero {
  background: var(--bp-card);
  border: 1px solid var(--bp-line);
  border-radius: 22px;
  padding: 1.4rem 1.4rem 1.5rem;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
}
.bp-detail-hero .bp-badges { margin-bottom: .85rem; }
.bp-detail-hero .bp-title {
  font-size: clamp(1.85rem, 4.5vw, 2.85rem);
  font-weight: 750;
  letter-spacing: -.035em;
  line-height: 1.12;
  margin: 0;
}
.bp-detail-hero .bp-excerpt {
  margin: .9rem 0 0;
  font-size: 1.12rem;
  line-height: 1.55;
  color: #475569;
  max-width: 42rem;
}
.bp-detail-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .55rem 1rem;
  margin-top: 1.15rem;
  padding-top: 1rem;
  border-top: 1px solid var(--bp-line);
  color: var(--bp-muted);
  font-size: .92rem;
}
.bp-detail-meta strong { color: #334155; }
.bp-detail-dot { color: #cbd5e1; }

.bp-detail-cover-wrap {
  overflow: hidden;
  border: 1px solid var(--bp-line);
  border-radius: 22px;
  background: #e2e8f0;
  box-shadow: 0 10px 30px rgba(15, 23, 42, .06);
}
.bp-detail-cover-wrap .bp-cover {
  aspect-ratio: 16 / 9;
  border-radius: 0;
  margin: 0;
}

.bp-detail-top--side {
  display: grid;
  gap: 1rem;
}
@media (min-width: 860px) {
  .bp-detail-top--side {
    grid-template-columns: 1.15fr .85fr;
    align-items: stretch;
  }
  .bp-detail-cover-wrap--side {
    height: 100%;
  }
  .bp-detail-cover-wrap--side .bp-cover {
    height: 100%;
    min-height: 260px;
    aspect-ratio: auto;
    object-fit: cover;
  }
}

.bp-cover-size-full .bp-detail-cover-wrap { width: 100%; }
.bp-cover-size-medium .bp-detail-cover-wrap { width: min(100%, 70%); margin-inline: auto; }
.bp-cover-size-small .bp-detail-cover-wrap { width: min(100%, 45%); margin-inline: auto; }
.bp-cover-layout-side.bp-cover-size-medium .bp-detail-cover-wrap--side,
.bp-cover-layout-side.bp-cover-size-small .bp-detail-cover-wrap--side,
.bp-cover-layout-side.bp-cover-size-full .bp-detail-cover-wrap--side {
  width: 100%;
  margin-inline: 0;
}

.bp-detail-body {
  background: var(--bp-card);
  border: 1px solid var(--bp-line);
  border-radius: 22px;
  padding: 1.5rem 1.35rem 1.75rem;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
}
@media (min-width: 768px) {
  .bp-detail-hero { padding: 1.75rem 1.85rem 1.9rem; }
  .bp-detail-body { padding: 2rem 2.1rem 2.25rem; }
}

.bp-content {
  font-size: 1.06rem;
  line-height: 1.8;
  color: #1e293b;
  max-width: 42rem;
}
.bp-content::after { content: ''; display: table; clear: both; }
.bp-content > :first-child { margin-top: 0; }
.bp-content h2 {
  font-size: 1.55rem;
  font-weight: 750;
  letter-spacing: -.025em;
  margin: 1.8em 0 .55em;
  line-height: 1.25;
}
.bp-content h3 {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -.02em;
  margin: 1.5em 0 .45em;
}
.bp-content h4 {
  font-size: 1.08rem;
  font-weight: 700;
  margin: 1.3em 0 .4em;
}
.bp-content p { margin: 0 0 1.05em; }
.bp-content ul,
.bp-content ol {
  padding-left: 1.35rem;
  margin: 0 0 1.05em;
}
.bp-content li { margin: .3em 0; }
.bp-content blockquote {
  margin: 0 0 1.25em;
  padding: .85rem 1rem;
  border-left: 3px solid #cbd5e1;
  background: #f8fafc;
  border-radius: 0 12px 12px 0;
  color: #475569;
}
.bp-content a { color: #1d4ed8; font-weight: 600; }
.bp-content hr {
  border: 0;
  border-top: 1px solid var(--bp-line);
  margin: 2rem 0;
  clear: both;
}
.bp-content img,
.bp-content .bp-editor-image {
  max-width: 100%;
  height: auto;
  border-radius: 14px;
}
.bp-content .bp-align-float-left { float: left; margin: 0 1.25rem 1rem 0; }
.bp-content .bp-align-float-right { float: right; margin: 0 0 1rem 1.25rem; }
.bp-content .bp-align-left { display: block; margin: 1rem auto 1rem 0; }
.bp-content .bp-align-right { display: block; margin: 1rem 0 1rem auto; }
.bp-content .bp-align-center { display: block; margin: 1rem auto; }

.bp-detail-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: 1rem 1.25rem;
  border: 1px solid var(--bp-line);
  border-radius: 18px;
  background: #fff;
}
.bp-detail-footer p {
  margin: 0;
  color: var(--bp-muted);
  font-size: .92rem;
}

/* Magazine article: cover arriba, hero debajo */
.bp-magazine .bp-detail { gap: 1rem; }
.bp-magazine .bp-detail-cover-wrap { order: -1; }

/* Minimal article: tipografía limpia, menos chrome */
.bp-minimal .bp-detail-hero,
.bp-minimal .bp-detail-body,
.bp-minimal .bp-detail-footer {
  border: 0;
  box-shadow: none;
  background: transparent;
  border-radius: 0;
  padding-left: 0;
  padding-right: 0;
}
.bp-minimal .bp-detail-hero {
  border-bottom: 1px solid var(--bp-line);
  padding-bottom: 1.5rem;
}
.bp-minimal .bp-detail-cover-wrap {
  border: 0;
  border-radius: 12px;
  box-shadow: none;
}

/* Magazine */
.bp-magazine .bp-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.1rem;
}
@media (min-width: 720px) {
  .bp-magazine .bp-list { grid-template-columns: 1fr 1fr; }
}
.bp-magazine .bp-item,
.bp-magazine .bp-item.has-cover {
  grid-template-columns: 1fr;
  padding: 0;
  overflow: hidden;
}
.bp-magazine .bp-cover {
  order: 0 !important;
  border-radius: 0;
  aspect-ratio: 16 / 10;
}
.bp-magazine .bp-body {
  order: 1 !important;
  padding: 1.2rem 1.25rem 1.35rem;
}
.bp-magazine .bp-badge:not(.featured) {
  background: #0f172a;
  color: #fff;
}

/* Minimal */
.bp-minimal .bp-list { gap: 0; }
.bp-minimal .bp-item,
.bp-minimal .bp-item.has-cover {
  grid-template-columns: 1fr;
  border: 0;
  border-radius: 0;
  border-bottom: 1px solid var(--bp-line);
  box-shadow: none;
  padding: 1.5rem 0;
  background: transparent;
}
.bp-minimal .bp-item:hover { box-shadow: none; transform: none; border-color: var(--bp-line); }
.bp-minimal .bp-cover { display: none; }
.bp-minimal .bp-title { font-size: clamp(1.4rem, 3vw, 1.95rem); }
