/* NexApp Blog — hoja de estilos compartida.
   Reutiliza la paleta y tipografía de la landing (index.html) para mantener
   la identidad visual; no duplica las secciones de marketing (hero, pricing,
   etc.) que no aplican al blog. */

:root {
    --blue: #1A56DB;
    --blue-dark: #0F3A9E;
    --blue-light: #EEF4FF;
    --violet: #6C2FD4;
    --accent: #00C896;
    --accent-warm: #FF6B35;
    --dark: #0D1117;
    --text: #2D3748;
    --muted: #64748B;
    --light: #F7F9FC;
    --white: #FFFFFF;
    --border: #E2E8F0;
    --wa: #25D366;
    --grad: linear-gradient(135deg, var(--blue) 0%, var(--violet) 100%);
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
    --shadow: 0 8px 32px rgba(0,0,0,0.1);
    --shadow-lg: 0 20px 60px rgba(0,0,0,0.15);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'DM Sans', sans-serif; color: var(--text); background: var(--white); overflow-x: hidden; }
h1, h2, h3, h4 { font-family: 'Syne', sans-serif; color: var(--dark); text-wrap: balance; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul, ol { list-style: none; }

.container { max-width: 760px; margin: 0 auto; padding: 0 24px; }
.container-wide { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

.tag {
    display: inline-flex; align-items: center; gap: 6px;
    background: var(--blue-light); color: var(--blue);
    font-size: 0.78rem; font-weight: 600; padding: 5px 12px;
    border-radius: 100px; letter-spacing: 0.04em; text-transform: uppercase;
}

.btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 14px 28px; border-radius: 100px; font-weight: 600;
    font-size: 0.95rem; cursor: pointer; border: none; transition: all 0.25s;
    font-family: 'DM Sans', sans-serif;
}
.btn-primary { background: var(--grad); color: white; box-shadow: 0 4px 20px rgba(26,86,219,0.3); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(26,86,219,0.4); }
.btn-outline { border: 2px solid var(--border); color: var(--text); background: transparent; }
.btn-outline:hover { border-color: var(--blue); color: var(--blue); }

/* NAVBAR (versión blog: sin anclas de una sola página, sin selector de idioma) */
.navbar {
    position: sticky; top: 0;
    background: rgba(255,255,255,0.96);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    z-index: 900;
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; }
.logo img { height: 32px; }
.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a {
    font-size: 0.9rem; font-weight: 500; color: var(--muted);
    padding: 6px 12px; border-radius: 8px; transition: all 0.2s;
}
.nav-links a:hover { color: var(--blue); background: var(--blue-light); }
.nav-cta a {
    padding: 9px 20px; font-size: 0.88rem;
}

/* LANG SWITCHER (idéntico al de la landing, index.html) */
.lang-switcher { display: flex; gap: 4px; align-items: center; }
.lang-btn {
    background: none; border: 1px solid transparent;
    color: var(--muted); font-size: 0.78rem; font-weight: 700;
    padding: 4px 8px; border-radius: 6px; cursor: pointer;
    font-family: 'DM Sans', sans-serif; transition: all 0.2s;
    letter-spacing: 0.04em;
}
.lang-btn:hover { color: var(--blue); border-color: var(--blue-light); background: var(--blue-light); }
.lang-btn.active { color: var(--blue); border-color: var(--blue); background: var(--blue-light); }

/* BREADCRUMBS */
.breadcrumbs {
    font-size: 0.85rem; color: var(--muted);
    padding: 20px 0 0;
}
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--blue); }
.breadcrumbs .sep { margin: 0 6px; color: var(--border); }
.breadcrumbs .current { color: var(--text); font-weight: 500; }

/* ARTICLE HEADER */
.article-header { padding: 28px 0 32px; }
.article-header h1 {
    font-size: clamp(1.9rem, 4vw, 2.6rem);
    line-height: 1.18; font-weight: 800; letter-spacing: -1px;
    margin: 14px 0 16px;
}
.article-lede { font-size: 1.1rem; color: var(--muted); line-height: 1.65; }

.article-hero-img {
    border-radius: 20px; overflow: hidden; box-shadow: var(--shadow);
    margin: 8px 0 40px;
}
.article-hero-img img { width: 100%; height: auto; }
.article-hero-img figcaption {
    font-size: 0.78rem; color: var(--muted); text-align: right;
    padding: 8px 4px 0;
}

/* ARTICLE BODY */
.article-body { padding-bottom: 20px; }
.article-body h2 {
    font-size: clamp(1.35rem, 2.6vw, 1.7rem);
    font-weight: 700; letter-spacing: -0.4px;
    margin: 48px 0 16px;
}
.article-body h3 {
    font-size: 1.15rem; font-weight: 700;
    margin: 28px 0 12px;
}
.article-body p {
    font-size: 1.03rem; line-height: 1.75; color: var(--text);
    margin-bottom: 18px;
}
.article-body ul, .article-body ol {
    margin: 0 0 20px 0; display: flex; flex-direction: column; gap: 10px;
}
.article-body ul li, .article-body ol li {
    font-size: 1.03rem; line-height: 1.6; color: var(--text);
    padding-left: 28px; position: relative;
}
.article-body ul li::before {
    content: '✓'; position: absolute; left: 0; top: 1px;
    color: var(--accent); font-weight: 700; font-size: 0.9rem;
}
.article-body ol { counter-reset: step; }
.article-body ol li { counter-increment: step; }
.article-body ol li::before {
    content: counter(step); position: absolute; left: 0; top: -1px;
    width: 20px; height: 20px; border-radius: 50%;
    background: var(--blue-light); color: var(--blue);
    font-size: 0.72rem; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
}
.article-body a:not(.btn) {
    color: var(--blue); font-weight: 500;
    text-decoration: underline; text-decoration-color: var(--blue-light);
    text-underline-offset: 3px;
}
.article-body a:not(.btn):hover { text-decoration-color: var(--blue); }
.article-body strong { color: var(--dark); font-weight: 700; }
.article-body table {
    width: 100%; border-collapse: collapse; margin: 0 0 24px;
    font-size: 0.95rem;
}
.article-body th, .article-body td {
    text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--border);
}
.article-body th { color: var(--muted); font-weight: 700; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.03em; }

/* NEXAPP CALLOUT (dentro del artículo) */
.nexapp-callout {
    background: var(--blue-light);
    border: 1px solid #D6E4FF;
    border-radius: 16px;
    padding: 24px 28px;
    margin: 8px 0 32px;
}
.nexapp-callout p { margin-bottom: 12px; color: var(--text); }
.nexapp-callout p:last-of-type { margin-bottom: 0; }
.nexapp-callout .cta-link {
    display: inline-flex; align-items: center; gap: 6px;
    color: var(--blue); font-weight: 700; font-size: 0.95rem;
    margin-top: 4px;
}
.nexapp-callout .cta-link:hover { text-decoration: underline; }

/* RELATED / INTERNAL LINKS */
.article-links {
    margin: 44px 0; padding: 28px 0; border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.article-links h4 {
    font-size: 0.8rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.05em; color: var(--muted); margin-bottom: 14px;
}
.article-links ul { display: flex; flex-direction: column; gap: 10px; }
.article-links li { padding-left: 0; }
.article-links li::before { display: none; }
.article-links a {
    display: flex; align-items: center; gap: 8px;
    font-weight: 600; color: var(--blue); font-size: 1rem;
}
.article-links a i { font-size: 0.85rem; }

/* END CTA */
.article-end-cta {
    background: var(--grad); color: white; border-radius: 20px;
    padding: 36px 32px; text-align: center; margin: 12px 0 60px;
}
.article-end-cta h3 { color: white; font-size: 1.4rem; margin-bottom: 10px; }
.article-end-cta p { color: rgba(255,255,255,0.85); margin-bottom: 22px; font-size: 1rem; }
.article-end-cta .btn { background: white; color: var(--blue); box-shadow: var(--shadow); }
.article-end-cta .btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }

/* BLOG INDEX */
.blog-hero { padding: 44px 0 8px; text-align: center; }
.blog-hero h1 {
    font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 800;
    letter-spacing: -1px; margin: 16px 0 14px;
}
.blog-hero p { font-size: 1.08rem; color: var(--muted); max-width: 560px; margin: 0 auto; }
.blog-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px;
    padding: 50px 0 80px;
}
.blog-card {
    border-radius: 20px; overflow: hidden; border: 1px solid var(--border);
    background: white; transition: all 0.3s; display: flex; flex-direction: column;
}
.blog-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-6px); }
.blog-card-img { height: 190px; overflow: hidden; }
.blog-card-img img { width: 100%; height: 100%; object-fit: cover; }
.blog-card-body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.blog-card-body .tag { margin-bottom: 12px; align-self: flex-start; }
.blog-card-body h2 { font-size: 1.15rem; font-weight: 700; line-height: 1.35; margin-bottom: 10px; }
.blog-card-body p { font-size: 0.9rem; color: var(--muted); line-height: 1.55; margin-bottom: 16px; flex: 1; }
.blog-card-body .read-more { font-size: 0.88rem; font-weight: 700; color: var(--blue); display: flex; align-items: center; gap: 6px; }

/* FOOTER (idéntico a la landing, versión reducida) */
footer { background: #0D1117; color: #94A3B8; padding: 50px 0 26px; margin-top: 20px; }
.footer-grid { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 24px; margin-bottom: 30px; }
.footer-brand { display: flex; align-items: center; gap: 10px; }
.footer-brand img { height: 28px; }
.footer-links { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-links a { font-size: 0.88rem; color: #94A3B8; }
.footer-links a:hover { color: white; }
.footer-bottom { border-top: 1px solid #1E293B; padding-top: 22px; font-size: 0.82rem; color: #475569; text-align: center; }

.wa-btn {
    position: fixed; bottom: 28px; right: 28px; width: 60px; height: 60px;
    background: var(--wa); color: white; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.8rem; box-shadow: 0 4px 20px rgba(37,211,102,0.4);
    z-index: 800; transition: all 0.3s;
}
.wa-btn:hover { transform: scale(1.1); background: #20BA5A; }

/* RESPONSIVE */
@media (max-width: 700px) {
    .nav-links { display: none; }
    .blog-grid { grid-template-columns: 1fr; padding: 36px 0 60px; }
    .footer-grid { flex-direction: column; align-items: flex-start; }
    .article-end-cta { padding: 28px 20px; }
}
