/* ============================================================
   PULSA IA — STYLE V2
   Extiende style.css con mayor polish visual y profundidad de marca.
   Basado en Brandbook oficial Pulsa IA (degradados, tipografía, patrones).
   ============================================================ */

/* ─────────────────────────────────────────
   1. BRAND GRADIENT TEXT
   Degradado estándar: #e5bbdc → #c6beea → #2c3882
   ───────────────────────────────────────── */
.text-brand-gradient {
    background: linear-gradient(135deg, #e5bbdc 0%, #c6beea 55%, #7c7cb1 80%, #2c3882 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ─────────────────────────────────────────
   2. SECTION LABEL — gradient pill label
   ───────────────────────────────────────── */
.v2-section-label {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
    background: linear-gradient(135deg, #c6beea, #7c7cb1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ─────────────────────────────────────────
   3. BRAND DIVIDER LINE
   Línea degradada entre secciones
   ───────────────────────────────────────── */
.brand-divider {
    height: 1px;
    background: linear-gradient(
        to right,
        transparent 0%,
        rgba(198, 190, 234, 0.3) 25%,
        rgba(124, 124, 177, 0.25) 50%,
        rgba(44, 56, 130, 0.3) 75%,
        transparent 100%
    );
    border: none;
    margin: 0;
}

/* ─────────────────────────────────────────
   4. GRADIENT BORDER CARDS (V2)
   Técnica CSS mask para bordes degradados
   ───────────────────────────────────────── */
.v2-card {
    position: relative;
    background: rgba(6, 15, 56, 0.5);
    border-radius: 1.5rem;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    transition: background 0.35s ease, transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 0;
}

.v2-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 1.5rem;
    padding: 1px;
    background: linear-gradient(
        135deg,
        rgba(198, 190, 234, 0.22) 0%,
        rgba(180, 169, 208, 0.10) 50%,
        rgba(44, 56, 130, 0.22) 100%
    );
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    transition: background 0.35s ease;
}

.v2-card:hover {
    background: rgba(6, 15, 56, 0.75);
    transform: translateY(-6px);
}

.v2-card:hover::before {
    background: linear-gradient(
        135deg,
        rgba(198, 190, 234, 0.55) 0%,
        rgba(180, 169, 208, 0.25) 50%,
        rgba(44, 56, 130, 0.55) 100%
    );
}

/* Featured card (centro) — borde más brillante */
.v2-card-featured::before {
    background: linear-gradient(
        135deg,
        rgba(198, 190, 234, 0.38) 0%,
        rgba(124, 124, 177, 0.18) 50%,
        rgba(44, 56, 130, 0.38) 100%
    );
}

.v2-card-featured:hover::before {
    background: linear-gradient(
        135deg,
        rgba(198, 190, 234, 0.72) 0%,
        rgba(124, 124, 177, 0.40) 50%,
        rgba(44, 56, 130, 0.72) 100%
    );
}

/* ─────────────────────────────────────────
   5. GRADIENT BORDER PANELS (casos de éxito)
   ───────────────────────────────────────── */
.v2-panel {
    position: relative;
    background: rgba(15, 23, 42, 0.65);
    border-radius: 1.5rem;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    transition: background 0.35s ease, transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 0;
}

.v2-panel::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 1.5rem;
    padding: 1px;
    background: linear-gradient(
        135deg,
        rgba(198, 190, 234, 0.15) 0%,
        rgba(44, 56, 130, 0.15) 100%
    );
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    transition: background 0.35s ease;
}

.v2-panel:hover {
    transform: translateY(-5px);
}

.v2-panel.case-blue:hover::before {
    background: linear-gradient(
        135deg,
        rgba(96, 165, 250, 0.45) 0%,
        rgba(198, 190, 234, 0.20) 100%
    );
}

.v2-panel.case-violet:hover::before {
    background: linear-gradient(
        135deg,
        rgba(167, 139, 250, 0.45) 0%,
        rgba(198, 190, 234, 0.20) 100%
    );
}

/* ─────────────────────────────────────────
   6. GRADIENT BORDER — Badge Pill del Hero
   ───────────────────────────────────────── */
.v2-badge-pill {
    position: relative;
    background: rgba(198, 190, 234, 0.08);
    z-index: 0;
}

.v2-badge-pill::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 9999px;
    padding: 1px;
    background: linear-gradient(135deg, rgba(198, 190, 234, 0.55), rgba(44, 56, 130, 0.45));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

/* ─────────────────────────────────────────
   7. OUTLINE BUTTON V2 (gradient border)
   ───────────────────────────────────────── */
.v2-outline-btn {
    position: relative;
    z-index: 0;
    background: transparent;
    transition: background 0.25s ease;
}

.v2-outline-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 0.75rem;
    padding: 1px;
    background: linear-gradient(135deg, rgba(198, 190, 234, 0.55), rgba(44, 56, 130, 0.5));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    transition: background 0.25s ease;
}

.v2-outline-btn:hover {
    background: rgba(198, 190, 234, 0.05);
}

.v2-outline-btn:hover::before {
    background: linear-gradient(135deg, rgba(198, 190, 234, 0.85), rgba(44, 56, 130, 0.80));
}

/* ─────────────────────────────────────────
   8. STEP BADGE — Pill con degradado de marca
   ───────────────────────────────────────── */
.v2-step-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.65rem;
    border-radius: 9999px;
    font-size: 0.6rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    background: linear-gradient(135deg, #c6beea 0%, #7c7cb1 100%);
    color: #060f38;
    flex-shrink: 0;
}

/* ─────────────────────────────────────────
   9. SHIMMER BUTTON ANIMATION
   ───────────────────────────────────────── */
.btn-shimmer {
    position: relative;
    overflow: hidden;
}

/* Sobreescribir el shimmer de style.css para usar brand gradients */
.btn-shimmer::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -100%;
    width: 55%;
    height: 200%;
    background: linear-gradient(
        105deg,
        transparent 0%,
        rgba(255, 255, 255, 0.18) 50%,
        transparent 100%
    );
    transform: skewX(-22deg);
    animation: v2-shimmer 3.8s ease-in-out infinite 2s;
    pointer-events: none;
}

@keyframes v2-shimmer {
    0%   { left: -100%; }
    100% { left: 150%; }
}

/* ─────────────────────────────────────────
   10. SCROLL INDICATOR (hero bottom)
   ───────────────────────────────────────── */
.v2-scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    z-index: 20;
    pointer-events: none;
}

.v2-scroll-label {
    font-size: 0.58rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: rgba(148, 163, 184, 0.45);
}

.v2-scroll-mouse {
    width: 18px;
    height: 28px;
    border: 1.5px solid rgba(198, 190, 234, 0.28);
    border-radius: 9px;
    position: relative;
}

.v2-scroll-dot {
    position: absolute;
    top: 4px;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: rgba(198, 190, 234, 0.65);
    animation: v2-scroll-anim 1.9s ease-in-out infinite;
}

@keyframes v2-scroll-anim {
    0%   { top: 4px;  opacity: 1; }
    75%  { top: 15px; opacity: 0; }
    100% { top: 4px;  opacity: 0; }
}

/* ─────────────────────────────────────────
   11. STATS STRIP
   ───────────────────────────────────────── */
.stat-v2-divider {
    width: 1px;
    background: linear-gradient(
        to bottom,
        transparent,
        rgba(198, 190, 234, 0.22),
        transparent
    );
    align-self: stretch;
    min-height: 60px;
}

/* ─────────────────────────────────────────
   12. ABOUT — Gradient border on image
   ───────────────────────────────────────── */
.v2-image-frame {
    position: relative;
    border-radius: 1.5rem;
    overflow: visible;
    z-index: 0;
}

.v2-image-frame::after {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: calc(1.5rem + 1px);
    padding: 2px;
    background: linear-gradient(135deg, rgba(198, 190, 234, 0.35), rgba(180, 169, 208, 0.15), rgba(44, 56, 130, 0.35));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    z-index: 10;
}

/* ─────────────────────────────────────────
   13. CTA V2 SECTION (Degradado 4 de marca)
   Rosa Pálido → Azul Profundo como atmósfera
   ───────────────────────────────────────── */
.cta-v2-section {
    background:
        radial-gradient(ellipse at 25% 50%, rgba(229, 187, 220, 0.07) 0%, transparent 55%),
        radial-gradient(ellipse at 75% 50%, rgba(44, 56, 130, 0.10) 0%, transparent 55%);
}

/* Box con gradient border */
.cta-v2-box {
    position: relative;
    border-radius: 2rem;
    z-index: 0;
}

.cta-v2-box::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 2rem;
    padding: 1px;
    background: linear-gradient(
        135deg,
        rgba(229, 187, 220, 0.45) 0%,
        rgba(198, 190, 234, 0.22) 40%,
        rgba(44, 56, 130, 0.45) 100%
    );
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.cta-v2-inner {
    background: rgba(6, 15, 56, 0.65);
    border-radius: calc(2rem - 1px);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 3.5rem 2rem;
    text-align: center;
}

/* ─────────────────────────────────────────
   14. LEAD MAGNET V2 — gradient border form
   ───────────────────────────────────────── */
.lead-v2-form {
    position: relative;
    z-index: 0;
}

.lead-v2-form::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 0.75rem;
    padding: 1px;
    background: linear-gradient(135deg, rgba(198, 190, 234, 0.38), rgba(44, 56, 130, 0.38));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

/* ─────────────────────────────────────────
   15. PILL DECORATIONS (brand Pill Pattern)
   Formas de switch/píldora como decoración
   ───────────────────────────────────────── */
.v2-pill-deco {
    position: absolute;
    border-radius: 9999px;
    pointer-events: none;
    z-index: 0;
}

/* ─────────────────────────────────────────
   16. CARD LINK — arrow animation
   ───────────────────────────────────────── */
.v2-card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    transition: gap 0.2s ease;
}

.v2-card-link .v2-arrow {
    transition: transform 0.2s ease-out;
    font-size: 0.7rem;
}

.group:hover .v2-card-link .v2-arrow {
    transform: translateX(4px);
}

/* ─────────────────────────────────────────
   17. SOLUTION ICON — animated ring on reveal
   ───────────────────────────────────────── */
.v2-solution-icon {
    position: relative;
}

.v2-solution-icon::after {
    content: '';
    position: absolute;
    inset: -5px;
    border-radius: 50%;
    background: conic-gradient(
        from 0deg,
        rgba(198, 190, 234, 0.20),
        rgba(44, 56, 130, 0.20),
        rgba(198, 190, 234, 0.20)
    );
    z-index: -1;
    opacity: 0;
    transition: opacity 0.5s ease;
    animation: v2-ring-spin 5s linear infinite;
}

/* Solution card initial hidden state (activado por scroll-switch) */
.solution-item {
    opacity: 0;
    transform: translateX(16px);
    transition: opacity 0.4s ease, transform 0.4s ease, border-color 0.3s ease, background 0.3s ease;
}

.solution-item.visible {
    opacity: 1;
    transform: none;
}

.solution-item.visible .v2-solution-icon::after {
    opacity: 1;
}

@keyframes v2-ring-spin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

/* ─────────────────────────────────────────
   17b. FAQ ACCORDION — open state glow
   ───────────────────────────────────────── */
details[open] {
    border-color: rgba(198, 190, 234, 0.22) !important;
    box-shadow: 0 0 24px rgba(44, 56, 130, 0.12);
}

details summary {
    -webkit-user-select: none;
    user-select: none;
}

details > div {
    animation: faq-expand 0.25s ease;
}

@keyframes faq-expand {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: none; }
}

/* ─────────────────────────────────────────
   18. NAV — scroll state (más opaco al hacer scroll)
   ───────────────────────────────────────── */
nav.v2-nav-scrolled {
    background: rgba(6, 15, 56, 0.97) !important;
    border-bottom-color: rgba(198, 190, 234, 0.12) !important;
    box-shadow: 0 4px 28px rgba(0, 0, 0, 0.38);
}

/* ─────────────────────────────────────────
   19. FOOTER — gradient top border
   ───────────────────────────────────────── */
.v2-footer-line {
    height: 1px;
    background: linear-gradient(
        to right,
        transparent 0%,
        rgba(229, 187, 220, 0.30) 20%,
        rgba(198, 190, 234, 0.35) 40%,
        rgba(124, 124, 177, 0.30) 60%,
        rgba(44, 56, 130, 0.30) 80%,
        transparent 100%
    );
}

/* ─────────────────────────────────────────
   20. REDUCED MOTION — desactivar todo
   ───────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    .btn-shimmer::after,
    .v2-scroll-dot,
    .v2-solution-icon::after {
        animation: none !important;
    }
    .v2-card:hover,
    .v2-panel:hover {
        transform: none !important;
    }
}


/* ============================================================
   BLOG / RECURSOS — Estilos específicos para el blog
   ============================================================ */

/* ─────────────────────────────────────────
   B1. READING PROGRESS BAR
   ───────────────────────────────────────── */
#reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0%;
    background: linear-gradient(to right, #e5bbdc, #c6beea, #7c7cb1, #2c3882);
    z-index: 9999;
    transition: width 0.1s linear;
    border-radius: 0 2px 2px 0;
}

/* ─────────────────────────────────────────
   B2. ARTICLE CARD
   ───────────────────────────────────────── */
.blog-card {
    position: relative;
    background: rgba(6, 15, 56, 0.45);
    border: 1px solid rgba(198, 190, 234, 0.10);
    border-radius: 1.25rem;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.blog-card:hover {
    transform: translateY(-4px);
    border-color: rgba(198, 190, 234, 0.22);
    box-shadow: 0 16px 40px rgba(6, 15, 56, 0.50);
}
.blog-card-image {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: rgba(6, 15, 56, 0.60);
    flex-shrink: 0;
}
.blog-card-body {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 0.5rem;
}
.blog-card-title {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    line-height: 1.4;
    color: #f1f5f9;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.blog-card-excerpt {
    font-size: 0.8125rem;
    color: #94a3b8;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}
.blog-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(198, 190, 234, 0.07);
}
.blog-card-cta {
    font-size: 0.75rem;
    font-weight: 600;
    color: rgba(198, 190, 234, 0.75);
    display: flex;
    align-items: center;
    gap: 0.375rem;
    transition: color 0.2s, gap 0.2s;
}
.blog-card:hover .blog-card-cta {
    color: #c6beea;
    gap: 0.5rem;
}

/* ─────────────────────────────────────────
   B3. COVER PLACEHOLDER (when no image)
   ───────────────────────────────────────── */
.blog-cover-placeholder {
    position: relative;
}
.blog-cover-placeholder[data-categoria="estrategia-adopcion"] {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.18) 0%, rgba(6, 15, 56, 0.60) 100%);
}
.blog-cover-placeholder[data-categoria="ia-practica-operaciones"] {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.20) 0%, rgba(6, 15, 56, 0.60) 100%);
}
.blog-cover-placeholder[data-categoria="capacitacion-cultura"] {
    background: linear-gradient(135deg, rgba(229, 187, 220, 0.18) 0%, rgba(6, 15, 56, 0.60) 100%);
}
.blog-cover-placeholder[data-categoria="casos-exito"] {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.18) 0%, rgba(6, 15, 56, 0.60) 100%);
}
.blog-cover-placeholder[data-categoria="tendencias-futuro"] {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.18) 0%, rgba(6, 15, 56, 0.60) 100%);
}
.blog-cover-placeholder {
    background: linear-gradient(135deg, rgba(44, 56, 130, 0.25) 0%, rgba(6, 15, 56, 0.60) 100%);
}

/* ─────────────────────────────────────────
   B4. CATEGORY BADGES
   ───────────────────────────────────────── */
.blog-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.6rem;
    border-radius: 9999px;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    line-height: 1.6;
    white-space: nowrap;
}
.badge-blue    { background: rgba(37,99,235,0.15);  color: #93c5fd; border: 1px solid rgba(37,99,235,0.25); }
.badge-violet  { background: rgba(124,58,237,0.15); color: #c4b5fd; border: 1px solid rgba(124,58,237,0.25); }
.badge-pink    { background: rgba(229,187,220,0.12); color: #e5bbdc; border: 1px solid rgba(229,187,220,0.25); }
.badge-green   { background: rgba(16,185,129,0.12); color: #6ee7b7; border: 1px solid rgba(16,185,129,0.25); }
.badge-amber   { background: rgba(245,158,11,0.12); color: #fcd34d; border: 1px solid rgba(245,158,11,0.25); }
.badge-teal    { background: rgba(20,184,166,0.12); color: #5eead4; border: 1px solid rgba(20,184,166,0.25); }
.badge-indigo  { background: rgba(99,102,241,0.15); color: #a5b4fc; border: 1px solid rgba(99,102,241,0.25); }
.badge-orange  { background: rgba(249,115,22,0.12); color: #fdba74; border: 1px solid rgba(249,115,22,0.25); }
.badge-purple  { background: rgba(168,85,247,0.12); color: #d8b4fe; border: 1px solid rgba(168,85,247,0.25); }
.badge-rose    { background: rgba(244,63,94,0.12);  color: #fda4af; border: 1px solid rgba(244,63,94,0.25); }
.badge-slate   { background: rgba(100,116,139,0.12); color: #94a3b8; border: 1px solid rgba(100,116,139,0.25); }

/* ─────────────────────────────────────────
   B5. CATEGORY FILTER PILLS
   ───────────────────────────────────────── */
.blog-filter-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.45rem 1rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    background: rgba(15, 23, 64, 0.65);
    border: 1px solid rgba(198, 190, 234, 0.18);
    color: #94a3b8;
    transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease,
                box-shadow 0.18s ease, transform 0.15s ease;
    white-space: nowrap;
    touch-action: manipulation;
    min-height: 36px;
    letter-spacing: 0.01em;
    user-select: none;
}
.blog-filter-pill:hover {
    background: rgba(198, 190, 234, 0.10);
    border-color: rgba(198, 190, 234, 0.38);
    color: #e2e8f0;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(44, 56, 130, 0.20);
}
.blog-filter-pill:active {
    transform: translateY(0);
    box-shadow: none;
}
.blog-filter-pill.active {
    background: linear-gradient(135deg, rgba(198, 190, 234, 0.22), rgba(44, 56, 130, 0.38));
    border-color: rgba(198, 190, 234, 0.50);
    color: #e2e8f0;
    box-shadow: 0 0 22px rgba(198, 190, 234, 0.18), 0 2px 10px rgba(44, 56, 130, 0.35);
    font-weight: 700;
}
.blog-filter-pill:focus-visible {
    outline: 2px solid rgba(198, 190, 234, 0.55);
    outline-offset: 2px;
}

/* ─────────────────────────────────────────
   B6. ARTICLE HERO IMAGE
   ───────────────────────────────────────── */
.article-hero-image {
    aspect-ratio: 16 / 7;
    overflow: hidden;
    border: 1px solid rgba(198, 190, 234, 0.10);
}

/* ─────────────────────────────────────────
   B7. ARTICLE CONTENT (prose styles)
   ───────────────────────────────────────── */
.article-content {
    max-width: 720px;
    color: #cbd5e1;
    font-size: 1rem;
    line-height: 1.75;
}
.article-content p {
    margin-bottom: 1.375rem;
    color: #cbd5e1;
}
.article-content .article-lead {
    font-size: 1.125rem;
    line-height: 1.7;
    color: #e2e8f0;
    font-weight: 400;
    border-left: 3px solid rgba(198, 190, 234, 0.40);
    padding-left: 1.25rem;
    margin-bottom: 2rem;
}
.article-content h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #f1f5f9;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    line-height: 1.3;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(198, 190, 234, 0.10);
}
.article-content h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: #e2e8f0;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    line-height: 1.35;
}
.article-content h4 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: #e2e8f0;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}
.article-content strong {
    color: #f1f5f9;
    font-weight: 600;
}
.article-content em {
    color: #cbd5e1;
    font-style: italic;
}
.article-content a {
    color: #c6beea;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.15s;
}
.article-content a:hover { color: #e5bbdc; }

.article-content blockquote {
    border-left: 3px solid rgba(198, 190, 234, 0.40);
    margin: 1.75rem 0;
    padding: 1rem 1.5rem;
    background: rgba(44, 56, 130, 0.12);
    border-radius: 0 0.75rem 0.75rem 0;
}
.article-content blockquote p {
    color: #c6beea;
    font-size: 1.05rem;
    font-style: italic;
    margin: 0;
}

.article-list {
    list-style: none;
    padding: 0;
    margin: 1.25rem 0 1.75rem;
    space-y: 0.75rem;
}
.article-content ul.article-list li,
.article-content ol.article-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.6rem;
    color: #cbd5e1;
}
.article-content ul.article-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.6rem;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: linear-gradient(135deg, #e5bbdc, #7c7cb1);
}
.article-content ol {
    list-style: decimal;
    padding-left: 1.5rem;
    margin: 1.25rem 0 1.75rem;
}
.article-content ol li {
    margin-bottom: 0.5rem;
    color: #cbd5e1;
}
.article-content ul:not(.article-list) {
    list-style: disc;
    padding-left: 1.5rem;
    margin: 1.25rem 0 1.75rem;
}
.article-content ul:not(.article-list) li {
    margin-bottom: 0.5rem;
    color: #cbd5e1;
}

.article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.75rem 0;
    font-size: 0.875rem;
}
.article-content th {
    background: rgba(44, 56, 130, 0.25);
    color: #e2e8f0;
    font-weight: 600;
    text-align: left;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid rgba(198, 190, 234, 0.15);
}
.article-content td {
    padding: 0.75rem 1rem;
    color: #cbd5e1;
    border-bottom: 1px solid rgba(198, 190, 234, 0.07);
}
.article-content tr:hover td {
    background: rgba(44, 56, 130, 0.08);
}

.article-content hr {
    border: none;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(198,190,234,0.20), transparent);
    margin: 2.5rem 0;
}

.article-content code {
    font-size: 0.85em;
    background: rgba(44, 56, 130, 0.20);
    border: 1px solid rgba(198, 190, 234, 0.12);
    padding: 0.1em 0.4em;
    border-radius: 4px;
    color: #c6beea;
    font-family: 'Fira Code', 'Courier New', monospace;
}
.article-content pre {
    background: rgba(6, 15, 56, 0.80);
    border: 1px solid rgba(198, 190, 234, 0.12);
    border-radius: 0.75rem;
    padding: 1.25rem 1.5rem;
    overflow-x: auto;
    margin: 1.75rem 0;
}
.article-content pre code {
    background: none;
    border: none;
    padding: 0;
    font-size: 0.875rem;
    color: #cbd5e1;
}

.article-content figure {
    margin: 1.75rem 0;
}
.article-content figure img {
    width: 100%;
    border-radius: 0.75rem;
    border: 1px solid rgba(198, 190, 234, 0.10);
}
.article-content figcaption {
    text-align: center;
    color: #64748b;
    font-size: 0.8rem;
    margin-top: 0.5rem;
    font-style: italic;
}

/* ─────────────────────────────────────────
   B8. IN-ARTICLE CTA BLOCK
   ───────────────────────────────────────── */
.article-cta-block {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    padding: 1.5rem;
    border-radius: 1rem;
    border: 1px solid rgba(198, 190, 234, 0.20);
    background: linear-gradient(135deg, rgba(44, 56, 130, 0.18) 0%, rgba(6, 15, 56, 0.50) 100%);
    margin: 2rem 0;
    position: relative;
    overflow: hidden;
}
.article-cta-block::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(198, 190, 234, 0.40), transparent);
}
.article-cta-icon {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 0.75rem;
    background: rgba(44, 56, 130, 0.30);
    border: 1px solid rgba(198, 190, 234, 0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #c6beea;
    font-size: 1.1rem;
}
.article-cta-body { flex: 1; }
.article-cta-title {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    color: #f1f5f9;
    margin: 0 0 0.35rem;
}
.article-cta-desc {
    font-size: 0.8125rem;
    color: #94a3b8;
    margin: 0 0 0.875rem;
    line-height: 1.5;
}
.article-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    background: linear-gradient(135deg, #2c3882, #7c7cb1);
    color: #fff;
    font-size: 0.8125rem;
    font-weight: 700;
    padding: 0.55rem 1rem;
    border-radius: 0.5rem;
    text-decoration: none;
    transition: filter 0.2s, transform 0.2s;
}
.article-cta-btn:hover { filter: brightness(1.15); transform: translateY(-1px); color: #fff; text-decoration: none; }

/* ─────────────────────────────────────────
   B9. TABLE OF CONTENTS WIDGET
   ───────────────────────────────────────── */
.toc-widget {
    background: rgba(6, 15, 56, 0.50);
    border: 1px solid rgba(198, 190, 234, 0.10);
    border-radius: 1rem;
    padding: 1.25rem;
}
.toc-title {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #64748b;
    margin: 0 0 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
    space-y: 0.25rem;
}
.toc-list li { margin-bottom: 0.125rem; }
.toc-link {
    display: block;
    font-size: 0.8125rem;
    color: #64748b;
    text-decoration: none;
    padding: 0.35rem 0.5rem;
    border-radius: 0.375rem;
    transition: color 0.15s, background 0.15s;
    border-left: 2px solid transparent;
    line-height: 1.4;
}
.toc-link:hover { color: #cbd5e1; background: rgba(198, 190, 234, 0.06); }
.toc-link.active {
    color: #c6beea;
    border-left-color: rgba(198, 190, 234, 0.50);
    background: rgba(198, 190, 234, 0.06);
}

/* ─────────────────────────────────────────
   B10. SIDEBAR WIDGETS
   ───────────────────────────────────────── */
.sidebar-widget {
    background: rgba(6, 15, 56, 0.40);
    border: 1px solid rgba(198, 190, 234, 0.08);
    border-radius: 1rem;
    padding: 1.25rem;
}
.sidebar-widget-title {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #64748b;
    margin: 0 0 0.875rem;
}

.sidebar-cta-widget {
    position: relative;
    background: rgba(6, 15, 56, 0.55);
    border: 1px solid rgba(198, 190, 234, 0.18);
    border-radius: 1rem;
    padding: 1.375rem;
    overflow: hidden;
}
.sidebar-cta-glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 0%, rgba(44, 56, 130, 0.25) 0%, transparent 65%);
    pointer-events: none;
}

/* ─────────────────────────────────────────
   B11. SHARE BUTTONS
   ───────────────────────────────────────── */
.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.875rem;
    border-radius: 0.625rem;
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: 1px solid;
    transition: all 0.2s ease;
    min-height: 36px;
}
.share-btn-linkedin { color: #93c5fd; border-color: rgba(37,99,235,0.25); background: rgba(37,99,235,0.08); }
.share-btn-linkedin:hover { background: rgba(37,99,235,0.18); border-color: rgba(37,99,235,0.40); color: #bfdbfe; }
.share-btn-x { color: #e2e8f0; border-color: rgba(255,255,255,0.12); background: rgba(255,255,255,0.05); }
.share-btn-x:hover { background: rgba(255,255,255,0.10); border-color: rgba(255,255,255,0.20); }
.share-btn-whatsapp { color: #6ee7b7; border-color: rgba(16,185,129,0.25); background: rgba(16,185,129,0.08); }
.share-btn-whatsapp:hover { background: rgba(16,185,129,0.18); border-color: rgba(16,185,129,0.40); }
.share-btn-copy { color: #94a3b8; border-color: rgba(100,116,139,0.25); background: rgba(100,116,139,0.08); }
.share-btn-copy:hover { background: rgba(100,116,139,0.15); border-color: rgba(100,116,139,0.35); color: #cbd5e1; }

/* ─────────────────────────────────────────
   B12. ARTICLE TAGS
   ───────────────────────────────────────── */
.blog-tag {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.625rem;
    border-radius: 9999px;
    font-size: 0.72rem;
    background: rgba(44, 56, 130, 0.20);
    border: 1px solid rgba(198, 190, 234, 0.12);
    color: #64748b;
    transition: color 0.15s, border-color 0.15s;
}
.blog-tag:hover { color: #94a3b8; border-color: rgba(198, 190, 234, 0.22); }

/* ─────────────────────────────────────────
   B13. EMAIL INPUT (newsletter & lead magnet)
   ───────────────────────────────────────── */
.blog-email-input {
    background: rgba(6, 15, 56, 0.55);
    border: 1px solid rgba(198, 190, 234, 0.25);
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    color: #e2e8f0;
    font-size: 0.875rem;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    min-height: 44px;
    width: 100%;
}
.blog-email-input::placeholder { color: #64748b; }
.blog-email-input:hover:not(:focus) {
    border-color: rgba(198, 190, 234, 0.38);
    background: rgba(6, 15, 56, 0.65);
}
.blog-email-input:focus {
    border-color: rgba(198, 190, 234, 0.60);
    background: rgba(6, 15, 56, 0.75);
    box-shadow: 0 0 0 3px rgba(198, 190, 234, 0.12), 0 0 16px rgba(198, 190, 234, 0.08);
}

/* ─────────────────────────────────────────
   B14. REDUCED MOTION — blog overrides
   ───────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    .blog-card:hover { transform: none; }
    .blog-card-image img { transition: none; }
    #reading-progress { transition: none; }
}
