/* ═══════════════════════════════════════════
   CLINICQ BLOG — Shared Styles
   Paleta sincronizada con el landing principal
   ═══════════════════════════════════════════ */

/* ── Variables & Reset ── */
:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #eff6ff;
    --primary-deep: #1e40af;
    --accent: #0891b2;
    --accent-light: #06b6d4;
    --success: #10b981;
    --whatsapp: #25d366;
    --bg: #f8fafc;
    --card: #fff;
    --border: #e2e8f0;
    --text: #0f172a;
    --text-muted: #64748b;
    --navy: #0f172a;
    --radius: 16px;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.08);
    --shadow-lg: 0 20px 50px rgba(0,0,0,0.1);
}
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: 'DM Sans', -apple-system, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { font-family: 'Outfit', sans-serif; letter-spacing: -0.02em; }
img { max-width: 100%; height: auto; }
a { text-decoration: none; color: var(--primary); }
a:hover { color: var(--primary-dark); }

/* ── Navbar ── */
.blog-navbar {
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--border);
}
.blog-navbar .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.blog-navbar .logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text);
}
.blog-navbar .logo img { height: 36px; }
.blog-navbar .logo span {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 1.4em;
    color: var(--primary);
}
.blog-navbar .logo-divider {
    width: 1px;
    height: 24px;
    background: var(--border);
    margin: 0 8px;
}
.blog-navbar .logo-blog-label {
    font-size: 0.85em;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 0.5px;
}
.nav-actions {
    display: flex;
    gap: 16px;
    align-items: center;
}
.nav-actions a {
    font-weight: 600;
    font-size: 0.92em;
    color: var(--text-muted);
    transition: color 0.2s;
}
.nav-actions a:hover { color: var(--primary); }
.btn-small {
    padding: 10px 24px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.9em;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'DM Sans', sans-serif;
    transition: all 0.3s;
    background: var(--primary);
    color: #fff;
}
.btn-small:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37,99,235,0.3);
}

/* ── Article Hero ── */
.article-hero {
    background: linear-gradient(160deg, #f8fafc 0%, #eff6ff 40%, #e0f2fe 80%, #f0f9ff 100%);
    padding: 80px 0 60px;
    position: relative;
    overflow: hidden;
}
.article-hero::before {
    content: '';
    position: absolute;
    top: -30%; right: -15%;
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(37,99,235,0.06) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}
.article-hero .container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 2;
}
.article-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85em;
    color: var(--text-muted);
    margin-bottom: 24px;
}
.article-breadcrumb a { color: var(--primary); font-weight: 600; }
.article-breadcrumb span { color: var(--text-muted); }
.article-meta-top {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.article-tag {
    display: inline-block;
    background: var(--primary);
    color: #fff;
    padding: 5px 16px;
    border-radius: 50px;
    font-size: 0.78em;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}
.article-tag.tag-tech { background: var(--accent); }
.article-tag.tag-marketing { background: var(--success); }
.article-read-time {
    font-size: 0.85em;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
}
.article-read-time i { color: var(--primary); font-size: 0.9em; }
.article-hero h1 {
    font-size: 2.8em;
    line-height: 1.12;
    font-weight: 900;
    letter-spacing: -0.03em;
    color: var(--navy);
    margin-bottom: 20px;
}
.article-hero-excerpt {
    font-size: 1.15em;
    color: var(--text-muted);
    line-height: 1.7;
    max-width: 680px;
    margin-bottom: 28px;
}
.article-author-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-top: 24px;
    border-top: 1px solid rgba(0,0,0,0.08);
}
.author-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 800;
    font-size: 0.95em;
}
.author-info strong { display: block; font-size: 0.92em; color: var(--text); }
.author-info span { font-size: 0.82em; color: var(--text-muted); }

/* ── Article Content ── */
.article-layout {
    max-width: 800px;
    margin: 0 auto;
    padding: 60px 24px 80px;
}
.article-body {
    font-size: 1.08em;
    line-height: 1.85;
    color: #1e293b;
}
.article-body h2 {
    font-size: 1.7em;
    font-weight: 800;
    margin: 48px 0 18px;
    color: var(--navy);
    letter-spacing: -0.02em;
}
.article-body h3 {
    font-size: 1.3em;
    font-weight: 700;
    margin: 36px 0 14px;
    color: var(--navy);
}
.article-body p { margin-bottom: 20px; }
.article-body ul, .article-body ol { margin: 16px 0 24px 24px; }
.article-body li { margin-bottom: 10px; line-height: 1.75; }
.article-body strong { color: var(--navy); font-weight: 700; }
.article-body a {
    color: var(--primary);
    font-weight: 600;
    border-bottom: 1px solid rgba(37,99,235,0.3);
    transition: border-color 0.2s;
}
.article-body a:hover { border-bottom-color: var(--primary); }
.article-body blockquote {
    border-left: 4px solid var(--primary);
    background: var(--primary-light);
    padding: 24px 28px;
    margin: 32px 0;
    border-radius: 0 12px 12px 0;
    font-style: italic;
    color: var(--text);
    font-size: 1.05em;
    line-height: 1.7;
}
.article-body img {
    border-radius: 16px;
    margin: 32px 0;
    box-shadow: var(--shadow-md);
}

/* Callout box */
.callout {
    background: linear-gradient(135deg, var(--primary-light), #e0f2fe);
    border: 1px solid rgba(37,99,235,0.12);
    border-radius: 16px;
    padding: 28px 32px;
    margin: 36px 0;
}
.callout-title {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 1.1em;
    color: var(--primary-dark);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.callout p:last-child { margin-bottom: 0; }

/* ── Signal Cards (artículo 1) ── */
.signal-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 28px;
    margin: 24px 0;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}
.signal-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 4px; height: 100%;
    background: var(--primary);
    border-radius: 4px 0 0 4px;
}
.signal-card:hover {
    border-color: rgba(37,99,235,0.2);
    box-shadow: 0 8px 30px rgba(37,99,235,0.06);
    transform: translateY(-2px);
}
.signal-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px; height: 36px;
    background: var(--primary);
    color: #fff;
    border-radius: 10px;
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 0.95em;
    margin-bottom: 12px;
}
.signal-card h3 { margin: 0 0 10px !important; font-size: 1.15em !important; }
.signal-card p:last-child { margin-bottom: 0; }

/* ── Feature Grid (artículo 2) ── */
.feature-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 28px 0 36px;
}
.feature-item {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 22px;
    display: flex;
    gap: 16px;
    transition: all 0.3s;
}
.feature-item:hover {
    border-color: rgba(37,99,235,0.2);
    box-shadow: 0 6px 20px rgba(37,99,235,0.06);
    transform: translateY(-2px);
}
.feature-item-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    background: var(--primary-light);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.1em;
}
.feature-item strong {
    display: block;
    font-size: 0.95em;
    margin-bottom: 4px;
}
.feature-item p {
    font-size: 0.85em;
    color: var(--text-muted);
    line-height: 1.5;
    margin: 0;
}

/* ── Stat Grid (artículo 3) ── */
.stat-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 28px 0 36px;
}
.stat-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 28px 20px;
    text-align: center;
    transition: all 0.3s;
}
.stat-card:hover {
    border-color: rgba(37,99,235,0.2);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37,99,235,0.06);
}
.stat-card-number {
    font-family: 'Outfit', sans-serif;
    font-size: 2.4em;
    font-weight: 900;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 8px;
}
.stat-card-label {
    font-size: 0.82em;
    color: var(--text-muted);
    line-height: 1.4;
}

/* ── Step Cards (artículo 3) ── */
.step-card {
    display: flex;
    gap: 20px;
    margin: 28px 0;
    padding: 28px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 16px;
    transition: all 0.3s;
}
.step-card:hover {
    border-color: rgba(37,99,235,0.2);
    box-shadow: 0 6px 20px rgba(37,99,235,0.06);
}
.step-number {
    width: 44px;
    height: 44px;
    min-width: 44px;
    background: var(--primary);
    color: #fff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 1.2em;
}
.step-content h3 {
    margin: 0 0 8px !important;
    font-size: 1.1em !important;
}
.step-content p { font-size: 0.95em; margin-bottom: 16px; }

/* Message Preview (WhatsApp mockup) */
.message-preview {
    background: #e7f8e9;
    border-radius: 12px;
    padding: 16px 20px;
    margin-top: 12px;
    border: 1px solid rgba(37,211,102,0.2);
    font-size: 0.88em;
    line-height: 1.6;
}
.message-preview-header {
    font-weight: 700;
    color: #128c7e;
    margin-bottom: 8px;
    font-size: 0.85em;
    display: flex;
    align-items: center;
    gap: 6px;
}
.message-preview p { margin: 0; color: #1e293b; }

/* ── Comparison Table (artículo 3) ── */
.comparison-table {
    margin: 28px 0 36px;
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
}
.comparison-header {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 0;
    background: var(--navy);
    color: #fff;
    padding: 14px 20px;
    font-size: 0.9em;
}
.comparison-row {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 0;
    padding: 14px 20px;
    font-size: 0.88em;
    border-bottom: 1px solid var(--border);
    align-items: center;
}
.comparison-row:last-child { border-bottom: none; }
.comparison-row:hover { background: var(--primary-light); }
.comparison-row div:first-child { font-weight: 700; color: var(--navy); }
.comparison-row i { margin-right: 6px; }

/* ── CTA Section ── */
.article-cta {
    background: linear-gradient(135deg, var(--navy) 0%, var(--primary-deep) 50%, var(--primary-dark) 100%);
    border-radius: 24px;
    padding: 56px 48px;
    text-align: center;
    margin: 56px 0 0;
    position: relative;
    overflow: hidden;
}
.article-cta::before {
    content: '';
    position: absolute;
    top: -50%; right: -20%;
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(255,255,255,0.06) 0%, transparent 70%);
    border-radius: 50%;
}
.article-cta h2 {
    color: #fff;
    font-size: 2em;
    margin-bottom: 14px;
    position: relative;
    z-index: 2;
}
.article-cta p {
    color: rgba(255,255,255,0.8);
    font-size: 1.1em;
    margin-bottom: 28px;
    position: relative;
    z-index: 2;
}
.article-cta .btn-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 36px;
    border-radius: 12px;
    font-weight: 800;
    font-size: 1.05em;
    border: none;
    cursor: pointer;
    font-family: 'DM Sans', sans-serif;
    transition: all 0.3s;
    background: #fff;
    color: var(--primary-dark);
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    position: relative;
    z-index: 2;
}
.article-cta .btn-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 35px rgba(0,0,0,0.3);
    color: var(--primary-dark);
}

/* ── Related Articles ── */
.related-section {
    padding: 80px 0;
    background: var(--bg);
    border-top: 1px solid var(--border);
}
.related-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}
.related-section h2 {
    font-size: 1.8em;
    font-weight: 800;
    margin-bottom: 36px;
    text-align: center;
}
.related-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    max-width: 800px;
    margin: 0 auto;
}
.related-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 28px;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    color: var(--text);
}
.related-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: rgba(37,99,235,0.2);
    color: var(--text);
}
.related-tag {
    display: inline-block;
    background: var(--primary-light);
    color: var(--primary);
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.75em;
    font-weight: 700;
    margin-bottom: 12px;
    width: fit-content;
}
.related-card h3 {
    font-size: 1.1em;
    font-weight: 800;
    line-height: 1.4;
    margin-bottom: 10px;
    color: var(--text);
}
.related-card p {
    font-size: 0.88em;
    color: var(--text-muted);
    line-height: 1.6;
    flex: 1;
    margin-bottom: 14px;
}
.related-link {
    color: var(--primary);
    font-weight: 700;
    font-size: 0.88em;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: gap 0.3s;
}
.related-card:hover .related-link { gap: 10px; }

/* ── Footer ── */
.blog-footer {
    background: var(--navy);
    color: rgba(255,255,255,0.7);
    padding: 48px 0;
    text-align: center;
    font-size: 0.9em;
}
.blog-footer .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}
.blog-footer a {
    color: rgba(255,255,255,0.9);
    font-weight: 600;
}
.blog-footer a:hover { color: #fff; }
.footer-links {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

/* ═══════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════ */
@media (max-width: 768px) {
    .article-hero h1 { font-size: 2em; }
    .article-hero-excerpt { font-size: 1.02em; }
    .article-layout { padding: 40px 20px 60px; }
    .article-body { font-size: 1em; }
    .article-body h2 { font-size: 1.4em; margin-top: 36px; }
    .article-cta { padding: 40px 28px; }
    .article-cta h2 { font-size: 1.5em; }
    .related-grid { grid-template-columns: 1fr; }
    .signal-card { padding: 22px; }
    .nav-actions .nav-link-back { display: none; }
    .feature-grid { grid-template-columns: 1fr; }
    .stat-grid { grid-template-columns: 1fr; gap: 12px; }
    .step-card { flex-direction: column; gap: 14px; }
    .comparison-table { font-size: 0.82em; }
    .comparison-header,
    .comparison-row { grid-template-columns: 1.4fr 1fr 1fr; padding: 10px 12px; }
}

@media (max-width: 480px) {
    .article-hero { padding: 60px 0 40px; }
    .article-hero h1 { font-size: 1.7em; }
    .article-cta { padding: 32px 20px; }
    .article-cta h2 { font-size: 1.3em; }
    .article-cta .btn-cta { padding: 14px 28px; font-size: 0.95em; }
}
