/* ═══════════════════════════════════════════════════
   BGCreativos Blog Design System v1.0
   Purple: #664A98 | Blue: #2B87DA
   Gradient: linear-gradient(135deg, #2B87DA, #664A98)
   ═══════════════════════════════════════════════════ */

/* ─── VARIABLES ─── */
:root {
  --bg-purple: #664A98;
  --bg-blue: #2B87DA;
  --bg-gradient: linear-gradient(135deg, #2B87DA, #664A98);
  --bg-gradient-soft: linear-gradient(135deg, rgba(43,135,218,0.08), rgba(102,74,152,0.08));
  --bg-purple-light: rgba(102,74,152,0.07);
  --bg-blue-light: rgba(43,135,218,0.07);
  --bg-text: #2d2d2d;
  --bg-text-light: #5a5a5a;
  --bg-radius: 12px;
}

/* ─── DROP CAP (LETRÍN) ─── */
.bg-article-enhanced > p:first-of-type::first-letter,
.bg-dropcap::first-letter {
  float: left;
  font-size: 4.2em;
  line-height: 0.8;
  padding: 4px 12px 4px 0;
  margin-top: 6px;
  font-weight: 800;
  font-family: 'Montserrat', Georgia, serif;
  background: var(--bg-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ─── ARTICLE WRAPPER ─── */
.bg-article-enhanced {
  font-size: 1.08rem;
  line-height: 1.85;
  color: var(--bg-text);
}

.bg-article-enhanced p {
  margin-bottom: 1.4em;
}

/* ─── HEADINGS WITH GRADIENT ACCENT ─── */
.bg-article-enhanced h2 {
  position: relative;
  padding-left: 18px;
  margin-top: 2.8em;
  margin-bottom: 1em;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 1.65em;
  color: var(--bg-text);
  border-left: 4px solid transparent;
  border-image: var(--bg-gradient) 1;
}

.bg-article-enhanced h2::before {
  content: '';
  position: absolute;
  left: -4px;
  top: -8px;
  bottom: -8px;
  width: 4px;
  background: var(--bg-gradient);
  border-radius: 2px;
}

.bg-article-enhanced h3 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 1.3em;
  color: var(--bg-purple);
  margin-top: 2em;
  margin-bottom: 0.8em;
}

/* ─── SECTION DIVIDER ─── */
.bg-divider {
  border: none;
  height: 3px;
  background: var(--bg-gradient);
  margin: 2.5em auto;
  border-radius: 2px;
  max-width: 120px;
  opacity: 0.6;
}

/* ─── KEY STAT BOX ─── */
.bg-stat-box {
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--bg-gradient-soft);
  border-radius: var(--bg-radius);
  padding: 24px 28px;
  margin: 2em 0;
  border-left: 4px solid;
  border-image: var(--bg-gradient) 1;
}

.bg-stat-number {
  font-family: 'Montserrat', sans-serif;
  font-size: 2.8em;
  font-weight: 800;
  background: var(--bg-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  flex-shrink: 0;
}

.bg-stat-text {
  font-size: 1em;
  color: var(--bg-text);
  line-height: 1.5;
}

/* ─── HIGHLIGHT / CALLOUT BOX ─── */
.bg-highlight {
  position: relative;
  background: var(--bg-gradient-soft);
  border-radius: var(--bg-radius);
  padding: 28px 28px 28px 64px;
  margin: 2em 0;
  overflow: hidden;
}

.bg-highlight::before {
  content: '💡';
  position: absolute;
  left: 20px;
  top: 26px;
  font-size: 1.6em;
}

.bg-highlight::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--bg-gradient);
}

.bg-highlight p {
  margin: 0;
  font-style: italic;
  color: var(--bg-text);
}

/* ─── BLOCKQUOTE STYLED ─── */
.bg-article-enhanced blockquote,
.bg-quote {
  position: relative;
  background: var(--bg-purple-light);
  border: none;
  border-radius: var(--bg-radius);
  padding: 32px 32px 32px 70px;
  margin: 2em 0;
  font-size: 1.15em;
  font-style: italic;
  color: var(--bg-text);
  line-height: 1.7;
}

.bg-article-enhanced blockquote::before,
.bg-quote::before {
  content: '"';
  position: absolute;
  left: 18px;
  top: 10px;
  font-size: 4em;
  font-family: Georgia, serif;
  background: var(--bg-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.bg-article-enhanced blockquote::after,
.bg-quote::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--bg-gradient);
  border-radius: 0 0 var(--bg-radius) var(--bg-radius);
}

/* ─── PULL QUOTE (centered, large) ─── */
.bg-pullquote {
  text-align: center;
  font-family: 'Montserrat', sans-serif;
  font-size: 1.45em;
  font-weight: 600;
  line-height: 1.5;
  color: var(--bg-purple);
  padding: 1.5em 2em;
  margin: 2.5em auto;
  max-width: 85%;
  border-top: 3px solid;
  border-bottom: 3px solid;
  border-image: var(--bg-gradient) 1;
}

/* ─── INFO CARD (for tools/features) ─── */
.bg-info-card {
  background: #fff;
  border-radius: var(--bg-radius);
  padding: 24px 28px;
  margin: 2em 0;
  box-shadow: 0 2px 16px rgba(102,74,152,0.08), 0 1px 4px rgba(0,0,0,0.04);
  border-top: 3px solid transparent;
  border-image: var(--bg-gradient) 1;
  border-image-slice: 1;
}

.bg-info-card h4 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 1.15em;
  margin: 0 0 10px 0;
  color: var(--bg-purple);
}

/* ─── STYLED LIST ─── */
.bg-article-enhanced ul {
  list-style: none;
  padding-left: 0;
  margin: 1.5em 0;
}

.bg-article-enhanced ul li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 0.8em;
  line-height: 1.7;
}

.bg-article-enhanced ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--bg-gradient);
}

/* ─── ARTICLE FOOTER / TAGS AREA ─── */
.bg-article-footer {
  margin-top: 3em;
  padding-top: 2em;
  border-top: 2px solid;
  border-image: var(--bg-gradient) 1;
}

/* ─── RESPONSIVE ─── */
@media (max-width: 768px) {
  .bg-article-enhanced > p:first-of-type::first-letter,
  .bg-dropcap::first-letter {
    font-size: 3.2em;
    padding: 2px 8px 2px 0;
  }

  .bg-stat-box {
    flex-direction: column;
    text-align: center;
    padding: 20px;
  }

  .bg-stat-number {
    font-size: 2.2em;
  }

  .bg-pullquote {
    font-size: 1.2em;
    padding: 1em;
    max-width: 100%;
  }

  .bg-highlight {
    padding: 20px 20px 20px 56px;
  }

  .bg-article-enhanced blockquote,
  .bg-quote {
    padding: 24px 20px 24px 56px;
  }
}

/* ─── ANIMATION ON SCROLL ─── */
.bg-stat-box,
.bg-highlight,
.bg-info-card,
.bg-pullquote {
  animation: bgFadeUp 0.5s ease-out;
}

@keyframes bgFadeUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ─── READING PROGRESS BAR ─── */
.bg-reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: var(--bg-gradient);
  z-index: 99999;
  transition: width 0.15s ease-out;
  width: 0%;
}
