/* Blog regulatorio 3PP: usa las variables y componentes de /styles.css */
.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 200; background: var(--accent-teal); color: #070f1e; padding: 8px 14px; border-radius: 6px; font-weight: 700; }
.skip-link:focus { left: 8px; }
.blog-page main { padding-top: calc(var(--header-height) + 24px); }
.breadcrumb { font-size: 13px; color: var(--text-muted); margin-bottom: 18px; display: flex; flex-wrap: wrap; gap: 6px; }
.breadcrumb a { color: var(--text-secondary); text-decoration: underline; text-underline-offset: 3px; }
.breadcrumb a:hover { color: var(--accent-teal); }

/* Listado */
.blog-hero { padding: 40px 0 20px; }
.blog-hero h1 { font-family: var(--font-title); font-size: clamp(30px, 4.5vw, 46px); line-height: 1.15; margin: 10px 0 16px; max-width: 900px; }
.blog-hero-desc { color: var(--text-secondary); font-size: 17px; max-width: 760px; }
.blog-filters { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.filter-btn { padding: 9px 18px; border-radius: 50px; border: 1px solid var(--border-color); background: var(--bg-card); color: var(--text-secondary); font-weight: 600; font-size: 14px; transition: all var(--transition-fast); }
.filter-btn:hover { border-color: var(--accent-teal); color: var(--text-primary); }
.filter-btn.active { background: var(--accent-teal); border-color: var(--accent-teal); color: #070f1e; }
body.light-theme .filter-btn.active { color: #fff; }
.filter-btn:focus-visible, .post-card-link:focus-visible { outline: 2px solid var(--accent-teal); outline-offset: 3px; }
.blog-list { padding: 20px 0 80px; }
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 26px; }
.post-card { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--border-radius-md); overflow: hidden; transition: transform var(--transition-normal), border-color var(--transition-normal), box-shadow var(--transition-normal); }
.post-card:hover { transform: translateY(-5px); border-color: var(--border-hover); box-shadow: var(--shadow-lg), var(--glow-card); }
.post-card[hidden] { display: none; }
.post-card-link { display: flex; flex-direction: column; height: 100%; }
.post-card-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 16px 22px; font-size: 13px; color: var(--text-secondary); border-bottom: 1px solid var(--border-color); }
.post-cat { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 5px 12px; border-radius: 50px; }
.post-cat svg { width: 14px; height: 14px; }
.cat-ctpat .post-cat, .post-cat.cat-ctpat { background: rgba(0, 210, 196, .14); color: var(--accent-teal); }
.cat-oea .post-cat, .post-cat.cat-oea { background: rgba(229, 169, 59, .16); color: var(--accent-gold); }
.cat-iso .post-cat, .post-cat.cat-iso { background: rgba(96, 165, 250, .16); color: #60a5fa; }
body.light-theme .cat-iso .post-cat, body.light-theme .post-cat.cat-iso { color: #1d4ed8; }
.post-card-body { padding: 22px; display: flex; flex-direction: column; flex-grow: 1; }
.post-card-body h2 { font-family: var(--font-title); font-size: 19px; line-height: 1.35; margin-bottom: 12px; transition: color var(--transition-fast); }
.post-card:hover h2 { color: var(--accent-teal); }
.post-card-body p { color: var(--text-secondary); font-size: 14.5px; flex-grow: 1; margin-bottom: 18px; }
.post-more { color: var(--accent-teal); font-weight: 700; font-size: 14px; display: inline-flex; align-items: center; gap: 6px; }
.post-more svg { width: 16px; height: 16px; }
.blog-note { margin-top: 36px; font-size: 13px; color: var(--text-muted); max-width: 900px; }

/* CTA */
.blog-cta { margin-top: 28px; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 28px 32px; border-radius: var(--border-radius-md); background: linear-gradient(135deg, rgba(0, 210, 196, .14), rgba(13, 27, 42, .6)); border: 1px solid var(--border-hover); }
body.light-theme .blog-cta { background: linear-gradient(135deg, rgba(0, 128, 128, .10), #fff); }
.blog-cta h2 { font-family: var(--font-title); font-size: 22px; margin-bottom: 6px; }
.blog-cta p { color: var(--text-secondary); }
.blog-cta .btn { white-space: nowrap; }
.blog-cta .btn svg { width: 18px; height: 18px; }

/* Artículo */
.post { padding: 20px 0 80px; }
.post-container { max-width: 820px; }
.post-header h1 { font-family: var(--font-title); font-size: clamp(28px, 4vw, 40px); line-height: 1.2; margin: 14px 0 14px; }
.post-meta { color: var(--text-muted); font-size: 14px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.post-meta svg { width: 16px; height: 16px; }
.post-lead { font-size: 18px; color: var(--text-primary); margin: 22px 0 8px; line-height: 1.7; }
.post-section { margin-top: 36px; }
.post-section h2, .callout h2, .post-related h2 { font-family: var(--font-title); font-size: 24px; margin-bottom: 14px; color: var(--text-primary); display: flex; align-items: center; gap: 10px; }
.post-section p, .post-section li { color: var(--text-secondary); font-size: 16.5px; line-height: 1.75; }
.post-section p + p, .post-section p + ul, .post-section ul + p { margin-top: 14px; }
.post-section ul { list-style: disc; padding-left: 22px; }
.post-section li { margin-bottom: 8px; }
.post-section li::marker { color: var(--accent-teal); }
.post-section strong { color: var(--text-primary); }
.post-section a, .callout a { color: var(--accent-teal); text-decoration: underline; text-underline-offset: 3px; }
.check-list { list-style: none !important; padding-left: 0 !important; }
.check-list li { padding: 14px 16px; background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 10px; margin-bottom: 10px; }
.tag { display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; padding: 3px 9px; border-radius: 50px; margin-right: 6px; vertical-align: 1px; }
.tag-ob { background: rgba(0, 210, 196, .16); color: var(--accent-teal); }
.tag-rec { background: rgba(229, 169, 59, .18); color: var(--accent-gold); }
.tag-int { background: rgba(148, 163, 184, .18); color: var(--text-primary); }
.tag-legend { font-size: 13px !important; color: var(--text-muted) !important; }
.callout { margin-top: 32px; padding: 20px 22px; border-radius: 12px; border: 1px solid var(--border-color); border-left: 4px solid var(--accent-gold); background: var(--bg-card); }
.callout h2 { font-size: 19px; }
.callout h2 svg { width: 20px; height: 20px; color: var(--accent-gold); }
.callout p { color: var(--text-secondary); }
.fuentes ul { list-style: none; padding-left: 0; }
.fuentes li { margin-bottom: 10px; }
.fuentes a svg { width: 14px; height: 14px; vertical-align: -2px; }
.fuentes a { word-break: break-word; }
.small { font-size: 13px !important; color: var(--text-muted) !important; }
.post-related { margin-top: 44px; padding-top: 28px; border-top: 1px solid var(--border-color); }
.post-related h2 { font-size: 20px; }
.post-related li { margin-bottom: 12px; }
.post-related li a { color: var(--text-primary); font-weight: 600; }
.post-related li a:hover { color: var(--accent-teal); }
.rel-cat { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--accent-teal); margin-right: 6px; }
.back-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; color: var(--accent-teal); font-weight: 700; }
.back-link svg { width: 16px; height: 16px; }

@media (max-width: 1024px) { .blog-page .footer-top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 768px) {
  .post-grid { grid-template-columns: 1fr; }
  .blog-cta { flex-direction: column; align-items: flex-start; padding: 22px; }
  .blog-cta .btn { width: 100%; white-space: normal; }
  .post-lead { font-size: 17px; }
  .post-section p, .post-section li { font-size: 16px; }
}
@media (max-width: 600px) { .blog-page .footer-top { grid-template-columns: 1fr; } }

/* Nota destacada */
.post-card-featured { grid-column: 1 / -1; border-color: rgba(229, 169, 59, .55); box-shadow: 0 0 0 1px rgba(229, 169, 59, .25); }
.post-card-featured .post-card-body h2 { font-size: 24px; }
.post-card-featured .post-card-body p { font-size: 15.5px; max-width: 860px; }
.post-card-tags { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.badge-featured { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 5px 12px; border-radius: 50px; background: var(--accent-gold); color: #0d1b2a; }
.badge-featured svg { width: 14px; height: 14px; }
@media (max-width: 600px) { .post-card-featured .post-card-body h2 { font-size: 20px; } }

/* Tablas dentro de notas */
.table-wrap { overflow-x: auto; margin: 16px 0; border: 1px solid var(--border-color); border-radius: var(--border-radius-md); }
.post-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.post-table caption { text-align: left; padding: 12px 16px; font-weight: 700; color: var(--text-primary); }
.post-table th, .post-table td { padding: 10px 16px; text-align: left; vertical-align: top; border-top: 1px solid var(--border-color); color: var(--text-secondary); }
.post-table th { color: var(--text-primary); font-size: 13px; text-transform: uppercase; letter-spacing: .05em; }
.post-table td:first-child { font-weight: 700; color: var(--text-primary); }
.post-table .row-key td { background: rgba(229, 169, 59, .12); }
@media (max-width: 600px) { .post-table th, .post-table td { padding: 9px 10px; font-size: 14px; } }
