/* Estilos del blog GOEKUA. Antes vivían inline dentro de blog/build.js (un <style>
   por plantilla) — se extrajeron a este archivo real para poder reusarlos también
   en la preview del panel /publish (ver blog/publish/preview-settings.js), que
   necesita cargar el mismo CSS que el sitio real para que la vista previa sea fiel. */

.blog-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,0.95); backdrop-filter: blur(10px); border-bottom: 1px solid #e8edf5; }
.blog-nav { max-width: 1200px; margin: 0 auto; padding: 14px 24px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.blog-nav-brand { display: flex; align-items: center; }
.blog-nav-links { display: flex; align-items: center; gap: 22px; flex: 1; justify-content: center; }
.blog-nav-link { font-family: 'satoshi-Regular', sans-serif; font-size: 14px; font-weight: 700; color: #334155; text-decoration: none; transition: color 0.2s; white-space: nowrap; }
.blog-nav-link:hover { color: #0747b4; }
.blog-nav-link-active { color: #0747b4; }
.blog-nav-ctas { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.blog-nav-ctas .btn { font-family: 'satoshi-Regular', sans-serif; font-weight: 700; white-space: nowrap; }
@media (max-width: 900px) { .blog-nav-links { display: none; } }

.blog-footer { background: #0747b4; color: white; padding: 44px 0 28px; }
.blog-footer-inner { max-width: 1200px; margin: 0 auto; padding: 0 24px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 28px; }
.blog-footer-brand { display: flex; flex-direction: column; gap: 10px; max-width: 340px; }
.blog-footer-brand p { font-size: 13px; opacity: 0.8; line-height: 1.6; margin: 0; }
.blog-footer-links { display: flex; align-items: center; }
.blog-footer-links a { color: white; opacity: 0.85; font-size: 13px; text-decoration: none; }
.blog-footer-links a:hover { opacity: 1; text-decoration: underline; }
.blog-footer-social { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.blog-footer-social-icons { display: flex; gap: 10px; }
.blog-footer-social-icons a { width: 32px; height: 32px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.3); display: flex; align-items: center; justify-content: center; color: white; text-decoration: none; font-size: 13px; transition: background 0.2s; }
.blog-footer-social-icons a:hover { background: rgba(255,255,255,0.15); }
.blog-footer-social p { font-size: 12px; opacity: 0.75; margin: 0; }
@media (max-width: 700px) { .blog-footer-inner { flex-direction: column; } .blog-footer-social { align-items: flex-start; } }

/* padding reducido de 110px a 60px: el header viejo (header-global/navbar-main del
   sitio principal, con position:fixed) flotaba encima del hero. El nuevo .blog-header
   es sticky (ocupa su propio espacio en el flujo), así que ya no hace falta compensar
   una superposición. */
.blog-hero { background: linear-gradient(135deg, #0747b4 0%, #1a6cf0 100%); color: white; padding: 60px 0 50px; }
.blog-hero-badge { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: #90b8ff; margin-bottom: 14px; }
.blog-hero h1 { font-family: 'satoshi-Regular', sans-serif; font-size: 2.2rem; font-weight: 700; margin-bottom: 12px; }
.blog-hero p { font-size: 1.1rem; opacity: 0.88; max-width: 560px; }

.blog-card-badge { position: absolute; top: 16px; left: 16px; background: rgba(255,255,255,0.95); color: #0747b4; font-size: 11px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; padding: 5px 12px; border-radius: 999px; z-index: 1; }
.blog-card-media, .blog-featured-media { position: relative; overflow: hidden; }
.blog-card-media img, .blog-featured-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.blog-card-media-gradient { background: linear-gradient(135deg, #0747b4 0%, #1a6cf0 100%); }
.blog-card-dot { width: 4px; height: 4px; border-radius: 50%; background: #c3c6d5; display: inline-block; }

.blog-featured { display: flex; flex-direction: column; background: #fff; border-radius: 16px; overflow: hidden; box-shadow: 0 4px 24px rgba(7,71,180,0.1); text-decoration: none; color: inherit; margin: 40px 0; }
.blog-featured-media { min-height: 220px; }
.blog-featured-body { padding: 32px; display: flex; flex-direction: column; }
.blog-featured-title { font-family: 'satoshi-Regular', sans-serif; font-size: 1.6rem; font-weight: 700; color: #0f172a; line-height: 1.3; margin-bottom: 12px; }
.blog-featured-excerpt { color: #4a5568; font-size: 15px; line-height: 1.6; margin-bottom: 8px; }
@media (min-width: 768px) { .blog-featured { flex-direction: row; min-height: 340px; } .blog-featured-media { width: 55%; min-height: unset; } .blog-featured-body { width: 45%; justify-content: center; } }

.blog-toolbar { display: flex; flex-direction: column; gap: 16px; padding: 40px 0 24px; border-bottom: 1px solid #e8edf5; margin-bottom: 32px; }
.blog-filters { display: flex; flex-wrap: wrap; gap: 10px; }
.blog-filter-pill { font-family: 'satoshi-Regular', sans-serif; font-size: 13px; font-weight: 600; color: #4a5568; background: #f3f4f5; border: none; padding: 8px 18px; border-radius: 999px; cursor: pointer; transition: background 0.2s, color 0.2s; }
.blog-filter-pill:hover { background: #e1e3e4; }
.blog-filter-pill.active { background: #0747b4; color: #fff; }
.blog-search { position: relative; max-width: 320px; }
.blog-search i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: #9aa3b0; font-size: 14px; }
.blog-search input { width: 100%; padding: 10px 14px 10px 38px; border: 1px solid #c3c6d5; border-radius: 8px; font-size: 14px; font-family: 'nunitoSans', sans-serif; }
.blog-search input:focus { outline: none; border-color: #0747b4; }

.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 28px; padding-bottom: 80px; }
.blog-card { background: #fff; border-radius: 12px; box-shadow: 0 2px 12px rgba(7,71,180,0.08); overflow: hidden; display: flex; flex-direction: column; transition: transform 0.2s, box-shadow 0.2s; text-decoration: none; color: inherit; }
.blog-card:hover { transform: translateY(-4px); box-shadow: 0 8px 28px rgba(7,71,180,0.14); }
.blog-card-media { height: 160px; }
.blog-card-title { font-family: 'satoshi-Regular', sans-serif; font-size: 1.1rem; font-weight: 700; color: #0f172a; line-height: 1.35; margin-bottom: 8px; }
.blog-card-body { padding: 20px 24px 24px; flex: 1; display: flex; flex-direction: column; }
.blog-card-excerpt { color: #4a5568; font-size: 14px; line-height: 1.6; flex: 1; margin-bottom: 12px; }
.blog-card-meta { font-size: 12px; color: #9aa3b0; display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.blog-card-cta { font-size: 13px; font-weight: 700; color: #0747b4; display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; }
.blog-empty-state { text-align: center; color: #9aa3b0; font-size: 14px; padding: 40px 0; }

.blog-reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease; }
.blog-reveal-visible { opacity: 1; transform: translateY(0); }

.article-hero { background: linear-gradient(135deg, #0747b4 0%, #1a6cf0 100%); color: white; padding: 56px 0 44px; }
.article-category { font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: #90b8ff; margin-bottom: 14px; }
.article-hero h1 { font-family: 'satoshi-Regular', sans-serif; font-size: 2rem; font-weight: 700; line-height: 1.25; max-width: 680px; margin-bottom: 16px; }
.article-meta { font-size: 13px; opacity: 0.75; display: flex; gap: 12px; flex-wrap: wrap; }
.breadcrumb-art { font-size: 13px; color: rgba(255,255,255,0.7); margin-bottom: 18px; }
.breadcrumb-art a { color: rgba(255,255,255,0.9); text-decoration: none; }
.breadcrumb-art a:hover { text-decoration: underline; }
.article-layout { display: grid; grid-template-columns: 1fr 300px; gap: 48px; padding: 48px 0 80px; align-items: start; }
@media (max-width: 900px) { .article-layout { grid-template-columns: 1fr; } .article-sidebar { display: none; } }
.article-body h2 { font-family: 'satoshi-Regular', sans-serif; font-size: 1.4rem; font-weight: 700; color: #0f172a; margin: 36px 0 14px; padding-top: 8px; border-top: 2px solid #e8f0fe; }
.article-body h3 { font-family: 'satoshi-Regular', sans-serif; font-size: 1.1rem; font-weight: 700; color: #1e3a5f; margin: 24px 0 10px; }
.article-body p { color: #334155; font-size: 15.5px; line-height: 1.75; margin-bottom: 16px; }
.article-body ul, .article-body ol { color: #334155; font-size: 15.5px; line-height: 1.75; padding-left: 22px; margin-bottom: 20px; }
.article-body li { margin-bottom: 6px; }
.article-body strong { color: #0f172a; }
.article-body a { color: #0747b4; }
.article-body a:hover { text-decoration: underline; }
.info-box { background: #f0f5ff; border-left: 4px solid #0747b4; padding: 16px 20px; border-radius: 0 8px 8px 0; margin: 24px 0; }
.info-box p { margin: 0; font-size: 14.5px; color: #1e3a5f; }
.info-box strong { color: #0747b4; }
.step-list { counter-reset: step; list-style: none; padding: 0; }
.step-list li { counter-increment: step; display: flex; gap: 16px; align-items: flex-start; margin-bottom: 20px; }
.step-list li::before { content: counter(step); background: #0747b4; color: white; font-size: 13px; font-weight: 700; width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 2px; }
.dte-table { width: 100%; border-collapse: collapse; font-size: 14px; margin: 20px 0 28px; }
.dte-table th { background: #0747b4; color: white; padding: 10px 14px; text-align: left; font-size: 12px; letter-spacing: 0.05em; text-transform: uppercase; }
.dte-table td { padding: 11px 14px; border-bottom: 1px solid #e8edf5; vertical-align: top; color: #334155; }
.dte-table tr:last-child td { border-bottom: none; }
.dte-table tbody tr:hover { background: #f8faff; }
.article-sidebar { position: sticky; top: 80px; }
.sidebar-cta { background: linear-gradient(135deg, #0747b4, #1a6cf0); color: white; border-radius: 12px; padding: 28px 24px; margin-bottom: 24px; }
.sidebar-cta h3 { font-family: 'satoshi-Regular', sans-serif; font-size: 1.1rem; font-weight: 700; margin-bottom: 10px; }
.sidebar-cta p { font-size: 13.5px; opacity: 0.88; line-height: 1.55; margin-bottom: 18px; }
.sidebar-cta .btn { display: block; background: white; color: #0747b4; font-weight: 700; font-size: 14px; padding: 12px; border-radius: 8px; text-align: center; text-decoration: none; transition: opacity 0.2s; }
.sidebar-cta .btn:hover { opacity: 0.92; }
.toc { background: #f8faff; border: 1px solid #dce8f8; border-radius: 10px; padding: 20px 22px; }
.toc h4 { font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: #5a7aaa; margin-bottom: 14px; }
.toc ol { padding-left: 18px; margin: 0; }
.toc li { font-size: 13px; line-height: 1.5; margin-bottom: 8px; }
.toc a { color: #0747b4; text-decoration: none; }
.toc a:hover { text-decoration: underline; }
