/* ============================================================
   Blog de Cnote Lab — estilos aislados (prefijo .bl-)
   Mismo sistema visual del sitio: #1C4966 (primario),
   #F10077 (acento), #62B6CB (secundario), Poppins (títulos) + DM Sans.
   No depende del build de Tailwind (css/style.css está purgado).
   ============================================================ */

.bl { background: #fff; color: #1C4966; font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; }

/* Márgenes laterales: variables de css/layout.css (20 / 32 / 48 px) */
.bl-wrap { max-width: calc(760px + 2 * var(--cn-gutter, 20px)); margin: 0 auto; padding: 8.5rem var(--cn-gutter, 20px) 5rem; }
.bl-wrap--wide { max-width: calc(var(--cn-max, 1200px) + 2 * var(--cn-gutter, 20px)); }
@media (min-width: 768px) { .bl-wrap { padding-top: 10rem; } }

.bl-crumbs { font-size: .8125rem; font-weight: 700; color: #94A3B8; margin-bottom: 2rem; }
.bl-crumbs a { color: #475569; text-decoration: none; }
.bl-crumbs a:hover { color: #F10077; }

.bl-head { margin-bottom: 3rem; }
.bl-head--index { text-align: center; max-width: 760px; margin: 0 auto 3.5rem; }
.bl-eyebrow {
  display: inline-block; padding: .5rem 1.25rem; border-radius: 999px;
  background: #1C4966; color: #fff; margin: 0 0 1.5rem;
  font-weight: 900; font-size: .7rem; letter-spacing: .18em; text-transform: uppercase;
}
.bl-cat {
  font-size: .6875rem; font-weight: 900; letter-spacing: .16em; text-transform: uppercase;
  color: #F10077; margin: 0 0 .875rem;
}
.bl-head h1 {
  font-family: 'Poppins', sans-serif; font-weight: 700; color: #1C4966;
  font-size: clamp(2rem, 5.5vw, 3.25rem); line-height: 1.08; letter-spacing: -.035em;
  margin: 0 0 1.25rem; text-wrap: balance;
}
.bl-lead { font-size: 1.125rem; line-height: 1.65; color: #475569; margin: 0; }
.bl-meta { font-size: .8125rem; font-weight: 700; color: #64748b; margin: 0; }

/* Cuerpo del artículo */
.bl-body { font-size: 1.0625rem; line-height: 1.8; color: #334155; }
.bl-body h2 {
  font-family: 'Poppins', sans-serif; font-weight: 700; color: #1C4966;
  font-size: clamp(1.375rem, 3.2vw, 1.75rem); line-height: 1.2; letter-spacing: -.02em;
  margin: 2.75rem 0 1rem;
}
.bl-body h2:first-child { margin-top: 0; }
.bl-body p { margin: 0 0 1.25rem; }
.bl-body ol { margin: 0 0 1.25rem; padding-left: 1.5rem; }
.bl-body li { margin-bottom: .625rem; padding-left: .25rem; }
.bl-body li::marker { color: #F10077; font-weight: 900; }
.bl-body a, .bl-related a, .bl-back a { color: #F10077; font-weight: 700; text-underline-offset: 3px; }
.bl-body a:hover, .bl-related a:hover, .bl-back a:hover { color: #1C4966; }

.bl-related {
  margin: 2.5rem 0 0; padding: 1.25rem 1.5rem; border-radius: 1rem;
  background: #F8FAFC; border: 1px solid #E2E8F0; font-size: .9375rem;
}
.bl-related a { text-decoration: none; }
.bl-back { margin: 2.5rem 0 0; font-size: .9375rem; }
.bl-back a { text-decoration: none; }

/* CTA contextual */
.bl-cta {
  margin-top: 3rem; padding: 2.5rem 1.75rem; border-radius: 2rem; text-align: center;
  background: #1C4966; color: #fff; box-shadow: 0 30px 60px -30px rgba(28,73,102,.6);
}
.bl-cta-kicker {
  font-size: .6875rem; font-weight: 900; letter-spacing: .16em; text-transform: uppercase;
  color: #62B6CB; margin: 0 0 .75rem;
}
.bl-cta-title {
  font-family: 'Poppins', sans-serif; font-weight: 700; letter-spacing: -.02em;
  font-size: clamp(1.5rem, 4vw, 2.125rem); line-height: 1.15; margin: 0 0 1.75rem;
}
.bl-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .625rem;
  min-height: 52px; padding: 0 2.25rem; border-radius: 999px;
  background: #F10077; color: #fff; font-weight: 900; font-size: .9375rem;
  text-decoration: none; transition: transform .25s ease, background .25s ease;
}
.bl-btn:hover { transform: scale(1.04); background: #d1006a; }
.bl-btn:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }

/* Índice: tarjetas */
.bl-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 700px)  { .bl-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .bl-grid { grid-template-columns: repeat(3, 1fr); } }
.bl-card {
  display: flex; flex-direction: column; padding: 2rem 1.75rem;
  background: #fff; border: 1px solid #E2E8F0; border-radius: 1.75rem;
  text-decoration: none; color: inherit;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.bl-card:hover, .bl-card:focus-visible {
  transform: translateY(-6px); border-color: rgba(241,0,119,.35);
  box-shadow: 0 24px 48px -24px rgba(28,73,102,.35);
}
.bl-card:focus-visible { outline: 2px solid #F10077; outline-offset: 4px; }
.bl-card h2 {
  font-family: 'Poppins', sans-serif; font-weight: 700; color: #1C4966;
  font-size: 1.25rem; line-height: 1.25; letter-spacing: -.015em; margin: 0 0 .875rem; text-wrap: balance;
}
.bl-excerpt { font-size: .9375rem; line-height: 1.6; color: #475569; margin: 0 0 1.25rem; flex: 1; }
.bl-card .bl-meta { margin-bottom: 1rem; }
.bl-more { font-weight: 900; font-size: .8125rem; color: #F10077; text-transform: uppercase; letter-spacing: .06em; }

/* Tarjetas: imagen de vista previa con degradado negro → transparente y logo */
.bl-card { overflow: hidden; }
.bl-card-media {
  position: relative; margin: -2rem -1.75rem 1.5rem; aspect-ratio: 16 / 9;
  overflow: hidden; background: #1C4966;
}
.bl-card-media::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to bottom, rgba(0,0,0,.72) 0%, rgba(0,0,0,.28) 38%, rgba(0,0,0,0) 70%);
}
.bl-card-img {
  display: block; width: 100%; height: 100%; object-fit: cover;
  transition: transform .6s ease;
}
.bl-card:hover .bl-card-img, .bl-card:focus-visible .bl-card-img { transform: scale(1.04); }
.bl-card-logo {
  position: absolute; top: 1rem; right: 1.125rem; z-index: 1;
  width: auto; height: 26px; filter: brightness(0) invert(1);
}
/* Portada dentro del artículo (sin degradado ni logo) */
.bl-cover { margin: 0 0 2.25rem; }
.bl-cover img {
  display: block; width: 100%; height: auto; aspect-ratio: 1600 / 901;
  object-fit: cover; border-radius: 1.5rem;
}

@media (prefers-reduced-motion: reduce) { .bl-card, .bl-btn, .bl-card-img { transition: none; } }

/* También podría interesarte: mismas tarjetas del índice, más compactas */
.bl-also { margin: 3.5rem 0 0; }
.bl-also h2 {
  font-family: 'Poppins', sans-serif; font-weight: 700; color: #1C4966;
  font-size: clamp(1.25rem, 3vw, 1.5rem); line-height: 1.2; margin: 0 0 1.25rem;
}
.bl-also-grid { display: grid; grid-template-columns: 1fr; gap: 1.25rem; }
@media (min-width: 600px) { .bl-also-grid { grid-template-columns: 1fr 1fr; } }
.bl-card--mini { padding: 1.5rem 1.25rem; }
.bl-card--mini .bl-card-media { margin: -1.5rem -1.25rem 1.25rem; }
.bl-card--mini .bl-card-logo { height: 22px; top: .875rem; right: 1rem; }
.bl-card h3 {
  font-family: 'Poppins', sans-serif; font-weight: 700; color: #1C4966;
  font-size: 1.0625rem; line-height: 1.3; margin: 0 0 1rem; text-wrap: balance; flex: 1;
}

/* Imágenes dentro del artículo */
.bl-fig { margin: 2rem 0 2.25rem; }
.bl-fig img { display: block; width: 100%; height: auto; border-radius: 1.25rem; }
.bl-fig figcaption { margin-top: .625rem; font-size: .8125rem; line-height: 1.5; color: #64748b; text-align: center; }
.bl-fig--vertical img { max-width: 360px; margin: 0 auto; }
