/*!
 * ============================================================================
 * Copyright © 2026 Diego Fernando Zapata. Todos los derechos reservados.
 * 
 * Desarrollado por: Diego Fernando Zapata
 * Sitio web: https://diegozapatadz.com
 * WhatsApp: +57 316 371 1641
 * Proyecto: Cea Langelorc - Módulo de Blog y Artículos
 * Identificador: DZ-CEALANGELORC-2026-B8E29A1F
 * Versión: 1.3.0
 * Fecha: 2026-09-22
 * ============================================================================
 */

:root {
  --navy: #071d43;
  --blue: #1a5ea9;
  --mint: #0d8d70;
  --mint-dark: #066352;
  --mint-light: #ecfdf5;
  --ink: #142542;
  --text-main: #334155;
  --text-muted: #64748b;
  --bg-page: #f8fafc;
  --card-bg: #ffffff;
  --card-border: #e2e8f0;
}

* {
  box-sizing: border-box;
}

a {
  color: inherit;
  text-decoration: none;
}

body {
  margin: 0;
  background: var(--bg-page);
  color: var(--ink);
  font-family: Inter, "Segoe UI", system-ui, -apple-system, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ==========================================================================
   Barra de Progreso de Lectura Superior
   ========================================================================== */
.reading-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3.5px;
  background: linear-gradient(90deg, #0d8d70 0%, #1a5ea9 100%);
  width: 0%;
  z-index: 9999;
  transition: width 0.08s linear;
}

/* ==========================================================================
   Header Global del Blog
   ========================================================================== */
.blog-header {
  min-height: 82px;
  padding: 14px max(5vw, 28px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #e2e8f0;
  background: #ffffff;
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(8px);
  background: rgba(255, 255, 255, 0.96);
}

.blog-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--navy);
  font-weight: 800;
  text-decoration: none;
}

.blog-brand img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.blog-brand span {
  display: flex;
  flex-direction: column;
}

.blog-brand small {
  display: block;
  color: #69819d;
  font-size: 11px;
  letter-spacing: 0.4px;
}

.back-site {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--blue);
  font-weight: 700;
  text-decoration: none;
  font-size: 14.5px;
  padding: 8px 14px;
  border-radius: 10px;
  background: #f0f6fc;
  border: 1px solid #d8e5f3;
  transition: all 0.2s ease;
}

.back-site:hover {
  background: #e2effa;
  color: #10427b;
  transform: translateX(-2px);
}

/* ==========================================================================
   Listado del Blog (Página Principal /blog)
   ========================================================================== */
.blog-wrap {
  max-width: 1380px;
  margin: auto;
  padding: 94px 28px 60px;
}

.kicker {
  display: inline-block;
  color: #087c66;
  font-size: 12px;
  letter-spacing: 1.4px;
  font-weight: 800;
}

.blog-wrap h1 {
  font-size: clamp(35px, 5vw, 54px);
  line-height: 1.08;
  letter-spacing: -1.5px;
  margin: 9px 0 14px;
  color: var(--navy);
}

.intro {
  max-width: 620px;
  color: var(--text-muted);
  font-size: 19px;
  margin-bottom: 42px;
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.post-card {
  overflow: hidden;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 4px 14px rgba(13, 49, 80, 0.05);
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s ease;
}

.post-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(13, 49, 80, 0.12);
  border-color: #cbd5e1;
}

.post-card-thumb,
.post-card > a,
.post-card > img {
  display: block;
  width: 100%;
  height: 165px !important;
  min-height: 165px !important;
  max-height: 165px !important;
  overflow: hidden;
  background: #e9f0f7;
  position: relative;
  text-decoration: none;
  flex-shrink: 0;
}

.post-card-thumb img,
.post-card > a > img,
.post-card > img,
.post-card img:not(.fallback-logo) {
  width: 100% !important;
  height: 165px !important;
  min-height: 165px !important;
  max-height: 165px !important;
  object-fit: cover !important;
  display: block;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.post-card:hover .post-card-thumb img:not(.fallback-logo),
.post-card:hover > a > img:not(.fallback-logo),
.post-card:hover > img {
  transform: scale(1.05);
}

.post-card-thumb.is-fallback,
.post-card > a.is-fallback {
  background: radial-gradient(circle at 50% 40%, #0d2a58 0%, #061530 100%) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 18px 24px !important;
}

.post-card-thumb.is-fallback::before,
.post-card > a.is-fallback::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.06) 0%, transparent 60%);
  pointer-events: none;
}

.post-card-thumb.is-fallback img.fallback-logo,
.post-card > a.is-fallback img.fallback-logo,
.post-card img.fallback-logo {
  max-width: 140px !important;
  max-height: 60px !important;
  width: auto !important;
  height: auto !important;
  min-height: 0 !important;
  object-fit: contain !important;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.45));
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.post-card:hover .post-card-thumb.is-fallback img.fallback-logo,
.post-card:hover > a.is-fallback img.fallback-logo {
  transform: scale(1.06);
}

.post-card-copy {
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.post-card .category {
  display: inline-block;
  align-self: flex-start;
  font-size: 11px !important;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: #087c66 !important;
  background: #ecfdf5;
  border: 1px solid #d1fae5;
  padding: 3px 8px;
  border-radius: 6px;
  line-height: 1.3;
  margin-bottom: 8px;
}

.post-card h2,
.post-card-copy h2 {
  margin: 0 0 8px;
  font-size: 18px !important;
  line-height: 1.32;
  letter-spacing: -0.2px;
  color: var(--navy);
  font-weight: 750;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.65em;
}

.post-card h2 a,
.post-title-link {
  color: var(--navy) !important;
  text-decoration: none !important;
  font-size: 18px !important;
  font-weight: 750;
  transition: color 0.2s ease;
}

.post-card:hover .post-title-link,
.post-card h2 a:hover {
  color: #087c66 !important;
}

.post-excerpt {
  font-size: 17px !important;
  line-height: 1.55;
  color: #475569;
  margin-bottom: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 3.1em;
}

.post-excerpt p {
  margin: 0;
  font-size: 17px !important;
  line-height: 1.55;
  color: inherit;
}

.post-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  color: #64748b;
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid #f1f5f9;
}

.post-meta a,
.post-read-more {
  color: #087c66 !important;
  font-weight: 750;
  font-size: 14px !important;
  text-decoration: none !important;
  transition: transform 0.2s ease, color 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.post-meta a:hover,
.post-read-more:hover {
  color: #056653 !important;
  transform: translateX(3px);
}

.empty-posts {
  grid-column: 1 / -1;
  padding: 50px;
  border: 1px dashed #b5c8dc;
  text-align: center;
  border-radius: 16px;
}

/* ==========================================================================
   DISEÑO PRO EDITORIAL - SINGLE POST (entrada.php)
   ========================================================================== */
.article-page {
  min-height: calc(100vh - 64px);
  background: var(--bg-page);
  padding: 94px 0 80px;
}

.article-shell {
  width: 90%;
  max-width: 1380px;
  margin: 0 auto;
}

/* Migas de pan (Breadcrumbs) */
.article-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  color: #64748b;
  margin-bottom: 22px;
  flex-wrap: wrap;
}

.article-breadcrumbs a {
  color: #64748b;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.article-breadcrumbs a:hover {
  color: var(--mint);
}

.article-breadcrumbs .sep {
  color: #cbd5e1;
}

.article-breadcrumbs .current {
  color: var(--mint);
  font-weight: 600;
}

/* Encabezado Hero Editorial */
.article-hero {
  margin-bottom: 30px;
}

.article-meta-badges {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.category-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
  font-size: 13px;
  font-weight: 700;
  padding: 5px 13px;
  border-radius: 9999px;
  letter-spacing: 0.2px;
}

.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #059669;
  display: inline-block;
  box-shadow: 0 0 0 2px rgba(5, 150, 105, 0.25);
}

.reading-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #e2e8f0;
  font-size: 13px;
  font-weight: 600;
  padding: 5px 13px;
  border-radius: 9999px;
}

.reading-badge svg {
  color: #64748b;
}

.article-title {
  font-size: clamp(30px, 4.5vw, 44px);
  font-weight: 850;
  line-height: 1.18;
  letter-spacing: -0.03em;
  color: #0f172a;
  margin: 0 0 22px 0;
}

.article-author-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 18px;
  border-top: 1px solid #e2e8f0;
}

.author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05);
  flex-shrink: 0;
}

.author-avatar img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.author-info {
  display: flex;
  flex-direction: column;
}

.author-name {
  font-size: 17px;
  font-weight: 700;
  color: #1e293b;
}

.author-sub {
  font-size: 13px;
  color: #64748b;
}

/* Tarjeta Principal de Lectura */
.article-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 46px 50px;
  box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.05), 0 2px 6px -1px rgba(15, 23, 42, 0.02);
}

/* Tipografía y Cuerpo del Contenido */
.article-content {
  font-size: 18.5px;
  line-height: 1.8;
  color: var(--text-main);
}

.article-content p {
  margin: 0 0 22px;
  font-size: 18.5px;
  line-height: 1.8;
  color: #334155;
}

.article-content h1,
.article-content h2,
.article-content h3,
.article-content h4 {
  color: #0b1e3b;
  font-weight: 800;
  line-height: 1.28;
  letter-spacing: -0.02em;
}

.article-content h1 {
  font-size: clamp(26px, 3.6vw, 32px);
  margin: 44px 0 18px;
  border-bottom: 2px solid #e2e8f0;
  padding-bottom: 10px;
}

.article-content h2 {
  font-size: clamp(22px, 3vw, 26px);
  margin: 40px 0 16px;
  border-bottom: 1.5px solid #edf2f7;
  padding-bottom: 8px;
}

.article-content h3 {
  font-size: clamp(19px, 2.5vw, 22px);
  color: #0f2d59;
  margin: 32px 0 14px;
}

.article-content h4 {
  font-size: 18px;
  color: #1e293b;
  margin: 24px 0 10px;
}

.article-content ul,
.article-content ol {
  margin: 0 0 26px;
  padding-left: 28px;
}

.article-content li {
  margin: 9px 0;
  font-size: 18px;
  line-height: 1.75;
  color: #334155;
}

.article-content blockquote {
  margin: 28px 0;
  padding: 18px 26px;
  border-left: 4px solid var(--mint);
  background: #f0fdf9;
  border-radius: 0 12px 12px 0;
  color: #134e4a;
  font-style: italic;
  font-size: 18px;
}

.article-content a {
  color: var(--mint);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.15s ease;
}

.article-content a:hover {
  color: var(--mint-dark);
}

.article-content img {
  max-width: 100%;
  height: auto;
  border-radius: 14px;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
  margin: 22px auto;
  display: block;
}

.article-content a:has(img) {
  text-decoration: none;
  display: inline-block;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), filter 0.2s ease;
}

.article-content a:has(img):hover {
  transform: translateY(-2px);
  filter: drop-shadow(0 8px 18px rgba(15, 23, 42, 0.15));
}

/* Tablas y Contenedores Responsivos */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  margin: 28px 0;
  border-radius: 14px;
  border: 1px solid #cbd5e1;
  box-shadow: 0 3px 12px rgba(15, 23, 42, 0.04);
}

.article-content table {
  width: 100%;
  margin: 0;
  border-collapse: collapse;
  font-size: 15px;
  line-height: 1.6;
}

.article-content th,
.article-content td {
  padding: 14px 18px;
  border: 1px solid #e2e8f0;
  text-align: left;
}

.article-content th {
  background: #0b1e3b;
  color: #ffffff;
  font-weight: 700;
  border: 1px solid #1e3a66;
  letter-spacing: 0.2px;
}

.article-content tr:nth-child(even) {
  background: #f8fafc;
}

.article-content tr:hover {
  background: #f1f5f9;
}

/* ==========================================================================
   Componentes de Documentos Legales y Políticas
   ========================================================================== */
.legal-document-wrapper {
  width: 100%;
  margin: 0 auto;
}

.legal-intro-lead {
  font-size: 17.5px;
  font-weight: 450;
  line-height: 1.8;
  padding: 22px 26px;
  background: linear-gradient(135deg, #f0f7ff 0%, #e0f2fe 100%);
  border-left: 5px solid #0284c7;
  border-radius: 0 14px 14px 0;
  margin-bottom: 32px;
  color: #0c4a6e;
  box-shadow: 0 2px 10px rgba(2, 132, 199, 0.06);
}

.legal-info-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 24px 28px;
  margin: 26px 0;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.03);
}

.legal-info-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-gap: 12px;
}

.legal-info-card li {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
  color: #1e293b;
}

.cookie-cat-box {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 14px;
  padding: 22px 26px;
  margin: 22px 0;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.03);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.cookie-cat-box:hover {
  border-color: #cbd5e1;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
}

/* ==========================================================================
   Estructura Modular y Visual para Políticas Legales (High-End Pro SaaS)
   ========================================================================== */
.article-content .legal-quick-summary,
.legal-quick-summary {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)) !important;
  gap: 16px !important;
  margin: 0 0 32px !important;
  padding: 0 !important;
}

.article-content .legal-summary-card,
.legal-summary-card {
  background: #f8fafc !important;
  border: 1.5px solid #e2e8f0 !important;
  border-radius: 14px !important;
  padding: 18px 20px !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.02) !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease !important;
}

.article-content .legal-summary-card:hover,
.legal-summary-card:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.06) !important;
}

.article-content .legal-summary-icon,
.legal-summary-icon {
  width: 42px !important;
  height: 42px !important;
  min-width: 42px !important;
  border-radius: 10px !important;
  background: #e0f2fe !important;
  color: #0284c7 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 19px !important;
}

.article-content .legal-summary-icon svg,
.legal-summary-icon svg {
  width: 22px !important;
  height: 22px !important;
}

.article-content .legal-summary-title,
.legal-summary-title {
  font-size: 15.5px !important;
  font-weight: 800 !important;
  color: #0f172a !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  line-height: 1.35 !important;
}

.article-content .legal-summary-text,
.legal-summary-text {
  font-size: 13.5px !important;
  line-height: 1.55 !important;
  color: #475569 !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Introducción destacada */
.article-content .legal-intro-lead,
.legal-intro-lead {
  font-size: 17.5px !important;
  line-height: 1.8 !important;
  color: #1e293b !important;
  margin: 0 0 28px !important;
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  border-left: 4.5px solid #0284c7 !important;
  border-radius: 12px !important;
  padding: 18px 22px !important;
}

/* Tabla de Contenidos Rápida (TOC) */
.article-content .legal-toc,
.legal-toc {
  background: #f0f7ff !important;
  border: 1.5px solid #bfdbfe !important;
  border-radius: 16px !important;
  padding: 24px 28px !important;
  margin: 0 0 36px !important;
  box-shadow: 0 2px 10px rgba(2, 132, 199, 0.04) !important;
}

.article-content .legal-toc-title,
.legal-toc-title {
  font-size: 17px !important;
  font-weight: 800 !important;
  color: #0c4a6e !important;
  margin: 0 0 16px !important;
  padding: 0 !important;
  border: none !important;
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
}

.article-content .legal-toc-grid,
.legal-toc-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)) !important;
  gap: 10px 20px !important;
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

.article-content .legal-toc-grid li,
.legal-toc-grid li {
  margin: 0 !important;
  padding: 0 !important;
  font-size: 14.5px !important;
  line-height: 1.5 !important;
}

.article-content .legal-toc-grid a,
.legal-toc-grid a {
  color: #0369a1 !important;
  text-decoration: none !important;
  font-weight: 600 !important;
  display: inline-flex !important;
  align-items: baseline !important;
  gap: 6px !important;
  transition: color 0.15s ease, transform 0.15s ease !important;
}

.article-content .legal-toc-grid a:hover,
.legal-toc-grid a:hover {
  color: #0284c7 !important;
  text-decoration: underline !important;
  transform: translateX(2px) !important;
}

/* Bloques de Sección Modulares */
.article-content .legal-section-block,
.legal-section-block {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 16px !important;
  padding: 30px 34px !important;
  margin: 0 0 28px !important;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.03) !important;
}

.article-content .section-header-row,
.section-header-row {
  display: flex !important;
  align-items: center !important;
  gap: 14px !important;
  margin-bottom: 20px !important;
  border-bottom: 1.5px solid #f1f5f9 !important;
  padding-bottom: 14px !important;
}

.article-content .section-number-badge,
.section-number-badge {
  background: #0284c7 !important;
  color: #ffffff !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  padding: 4px 10px !important;
  border-radius: 8px !important;
  letter-spacing: 0.3px !important;
  flex-shrink: 0 !important;
}

.article-content .section-header-title,
.section-header-title {
  font-size: clamp(20px, 2.8vw, 24px) !important;
  font-weight: 800 !important;
  color: #0b1e3b !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  line-height: 1.3 !important;
}

/* Callouts / Cuadros de Advertencia e Información */
.article-content .legal-callout-warning,
.legal-callout-warning {
  background: #fffbeb !important;
  border-left: 4.5px solid #f59e0b !important;
  border-radius: 0 12px 12px 0 !important;
  padding: 18px 22px !important;
  margin: 20px 0 !important;
  color: #92400e !important;
  font-size: 15px !important;
  line-height: 1.65 !important;
}

.article-content .legal-callout-warning strong,
.legal-callout-warning strong {
  color: #78350f !important;
}

.article-content .legal-callout-info,
.legal-callout-info {
  background: #f0f7ff !important;
  border-left: 4.5px solid #0284c7 !important;
  border-radius: 0 12px 12px 0 !important;
  padding: 18px 22px !important;
  margin: 20px 0 !important;
  color: #0c4a6e !important;
  font-size: 15px !important;
  line-height: 1.65 !important;
}

.article-content .legal-callout-info strong,
.legal-callout-info strong {
  color: #075985 !important;
}

/* Tarjeta de Clarificación del Uso de Inteligencia Artificial */
.article-content .ai-transparency-card,
.ai-transparency-card {
  background: #f0fdf4 !important;
  border: 1.5px solid #86efac !important;
  border-left: 5px solid #16a34a !important;
  border-radius: 14px !important;
  padding: 22px 26px !important;
  margin: 26px 0 !important;
  color: #14532d !important;
}

.article-content .ai-transparency-header,
.ai-transparency-header {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  margin-bottom: 12px !important;
}

.article-content .ai-transparency-title,
.ai-transparency-title {
  font-size: 17px !important;
  font-weight: 800 !important;
  color: #14532d !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
}

.article-content .ai-transparency-body,
.ai-transparency-body {
  font-size: 15.5px !important;
  line-height: 1.7 !important;
  color: #166534 !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* ==========================================================================
   Tarjeta Destacada de Autoría y Desarrollo Oficial (Alto Contraste Garantizado)
   ========================================================================== */
.article-content .developer-attribution-card,
.developer-attribution-card {
  background: linear-gradient(145deg, #f0f7ff 0%, #ffffff 100%) !important;
  color: #1e293b !important;
  border: 1.5px solid #bae6fd !important;
  border-left: 5px solid #0284c7 !important;
  border-radius: 16px !important;
  padding: 26px 30px !important;
  margin: 34px 0 24px !important;
  box-shadow: 0 8px 24px -4px rgba(2, 132, 199, 0.12) !important;
  position: relative !important;
  overflow: hidden !important;
}

.article-content .developer-attribution-card::before,
.developer-attribution-card::before {
  content: "";
  position: absolute;
  top: -30px;
  right: -30px;
  width: 140px;
  height: 140px;
  background: radial-gradient(circle, rgba(2, 132, 199, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.article-content .developer-attribution-header,
.developer-attribution-header {
  display: flex !important;
  align-items: center !important;
  gap: 14px !important;
  margin-bottom: 14px !important;
}

.article-content .developer-attribution-icon,
.developer-attribution-icon {
  width: 44px !important;
  height: 44px !important;
  min-width: 44px !important;
  border-radius: 12px !important;
  background: #e0f2fe !important;
  border: 1.5px solid #38bdf8 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: #0284c7 !important;
  flex-shrink: 0 !important;
}

.article-content .developer-attribution-icon svg,
.developer-attribution-icon svg {
  width: 22px !important;
  height: 22px !important;
  stroke: #0284c7 !important;
}

.article-content .developer-attribution-title,
.developer-attribution-title {
  font-size: 19px !important;
  font-weight: 800 !important;
  color: #0f172a !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  letter-spacing: -0.01em !important;
  line-height: 1.3 !important;
}

.article-content .developer-attribution-subtitle,
.developer-attribution-subtitle {
  font-size: 13.5px !important;
  font-weight: 600 !important;
  color: #0369a1 !important;
  margin-top: 3px !important;
  display: block !important;
}

.article-content .developer-attribution-body,
.developer-attribution-body {
  font-size: 15.5px !important;
  line-height: 1.75 !important;
  color: #1e293b !important;
  margin: 0 0 16px !important;
  padding: 0 !important;
}

.article-content .developer-attribution-body strong,
.developer-attribution-body strong {
  color: #0369a1 !important;
  font-weight: 700 !important;
}

.article-content .developer-attribution-links,
.developer-attribution-links {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 12px !important;
  padding-top: 14px !important;
  border-top: 1px solid #e0f2fe !important;
  margin-top: 14px !important;
  font-size: 14.5px !important;
}

.article-content .developer-attribution-links a,
.developer-attribution-links a {
  display: inline-flex !important;
  align-items: center !important;
  gap: 7px !important;
  padding: 8px 18px !important;
  background: #0284c7 !important;
  color: #ffffff !important;
  border-radius: 8px !important;
  font-weight: 700 !important;
  text-decoration: none !important;
  font-size: 14px !important;
  box-shadow: 0 2px 6px rgba(2, 132, 199, 0.25) !important;
  transition: all 0.2s ease !important;
}

.article-content .developer-attribution-links a:hover,
.developer-attribution-links a:hover {
  background: #0369a1 !important;
  color: #ffffff !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 10px rgba(2, 132, 199, 0.35) !important;
}

.article-content .developer-attribution-links a.developer-whatsapp,
.developer-attribution-links a.developer-whatsapp {
  background: #16a34a !important;
  color: #ffffff !important;
  box-shadow: 0 2px 6px rgba(22, 163, 74, 0.25) !important;
}

.article-content .developer-attribution-links a.developer-whatsapp:hover,
.developer-attribution-links a.developer-whatsapp:hover {
  background: #15803d !important;
  color: #ffffff !important;
  box-shadow: 0 4px 10px rgba(22, 163, 74, 0.35) !important;
}

/* ==========================================================================
   Sección Compartir
   ========================================================================== */
.article-share {
  margin-top: 42px;
  padding-top: 28px;
  border-top: 1px solid #f1f5f9;
}

.share-header {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #0f172a;
  margin-bottom: 14px;
}

.article-share-title {
  font-size: 15px;
  font-weight: 700;
}

.share-buttons-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.share-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 600;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  color: #334155;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
}

.share-button svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.share-whatsapp:hover {
  background: #25d366;
  border-color: #25d366;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

.share-facebook:hover {
  background: #1877f2;
  border-color: #1877f2;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(24, 119, 242, 0.3);
}

.share-linkedin:hover {
  background: #0a66c2;
  border-color: #0a66c2;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(10, 102, 194, 0.3);
}

.share-copy:hover {
  background: #0f172a;
  border-color: #0f172a;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.3);
}

/* ==========================================================================
   Etiquetas (Tags)
   ========================================================================== */
.tags-section {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px dashed #e2e8f0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.tags-label {
  font-size: 13.5px;
  font-weight: 700;
  color: #64748b;
}

.tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-pill {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--mint);
  background: #f0fdf9;
  border: 1px solid #ccfbf1;
  padding: 4px 10px;
  border-radius: 8px;
  transition: all 0.15s ease;
}

.tag-pill:hover {
  background: #ccfbf1;
  color: #0f766e;
}

/* ==========================================================================
   Navegación Inferior (Bottom Actions)
   ========================================================================== */
.article-bottom-nav {
  margin-top: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
}

.article-bottom-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-nav-bottom {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  border: 1.5px solid #cbd5e1;
  background: #ffffff;
  color: #1e293b;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.btn-nav-bottom svg {
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.btn-back-blog {
  background: var(--mint);
  border-color: var(--mint);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(13, 141, 112, 0.25);
}

.btn-back-blog:hover {
  background: var(--mint-dark);
  border-color: var(--mint-dark);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(13, 141, 112, 0.35);
}

.btn-back-blog:hover svg {
  transform: translateX(-3px);
}

.btn-home:hover {
  background: #f8fafc;
  border-color: var(--mint);
  color: var(--mint);
  transform: translateY(-2px);
}

.btn-scroll-top {
  color: #64748b;
  border-color: #e2e8f0;
}

.btn-scroll-top:hover {
  color: var(--mint);
  border-color: var(--mint);
  background: #f0fdf9;
  transform: translateY(-2px);
}

.btn-scroll-top:hover svg {
  transform: translateY(-3px);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.blog-site-footer {
  text-align: center;
  padding: 34px 20px;
  color: #64748b;
  font-size: 13.5px;
  border-top: 1px solid #e2e8f0;
  background: #ffffff;
  margin-top: 60px;
}

.blog-site-footer p {
  margin: 0;
}

/* ==========================================================================
   Responsive Media Queries
   ========================================================================== */
@media (max-width: 1240px) {
  .post-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
  }
}

@media (max-width: 900px) {
  .post-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
}

@media (max-width: 800px) {
  .blog-wrap {
    padding: 45px 20px;
  }
  .blog-header {
    padding: 12px 20px;
  }
  .blog-brand small {
    display: none;
  }
  .article-card {
    padding: 30px 22px;
    border-radius: 16px;
  }
  .article-title {
    font-size: 26px;
  }
  .article-content,
  .article-content p {
    font-size: 18px;
  }
}

@media (max-width: 640px) {
  .article-page {
    padding: 24px 0 60px;
  }
  .article-bottom-nav {
    flex-direction: column;
    align-items: stretch;
  }
  .article-bottom-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .btn-nav-bottom {
    justify-content: center;
  }
}

@media (max-width: 580px) {
  .post-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .blog-wrap {
    padding: 45px 16px;
  }
}

/* ==========================================================================
   Buscador AJAX y Filtros del Blog (Pro SaaS UI)
   ========================================================================== */
.blog-filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 14px 18px;
  margin-bottom: 14px;
  box-shadow: 0 4px 20px rgba(7, 29, 67, 0.04);
}

.blog-search-box {
  position: relative;
  flex: 1;
  min-width: 280px;
  display: flex;
  align-items: center;
}

.blog-search-icon {
  position: absolute;
  left: 14px;
  color: #64748b;
  pointer-events: none;
  transition: color 0.2s ease;
}

.blog-search-box input[type="search"] {
  width: 100%;
  height: 44px;
  padding: 0 40px 0 44px;
  border-radius: 10px;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  color: #0f172a;
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 500;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.blog-search-box input[type="search"]::placeholder {
  color: #94a3b8;
  font-weight: 400;
}

.blog-search-box input[type="search"]:focus {
  outline: none;
  border-color: #087c66;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(8, 124, 102, 0.14);
}

.blog-search-box input[type="search"]:focus + .blog-search-icon,
.blog-search-box:focus-within .blog-search-icon {
  color: #087c66;
}

/* Ocultar botón nativo de cancelar en WebKit */
.blog-search-box input[type="search"]::-webkit-search-cancel-button {
  display: none;
}

.blog-search-clear {
  position: absolute;
  right: 10px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: none;
  background: #e2e8f0;
  color: #475569;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
  padding: 0;
}

.blog-search-clear:hover {
  background: #cbd5e1;
  color: #0f172a;
}

.blog-filters-group {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.blog-select-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  min-width: 200px;
}

.blog-select-icon {
  position: absolute;
  left: 13px;
  color: #64748b;
  pointer-events: none;
}

.blog-chevron-icon {
  position: absolute;
  right: 12px;
  color: #64748b;
  pointer-events: none;
  transition: transform 0.2s ease;
}

.blog-select-wrapper select {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  height: 44px;
  padding: 0 34px 0 38px;
  border-radius: 10px;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  color: #1e293b;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.blog-select-wrapper select:focus {
  outline: none;
  border-color: #087c66;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(8, 124, 102, 0.14);
}

.blog-select-wrapper:hover .blog-chevron-icon {
  color: #0f172a;
}

.blog-results-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  padding: 0 4px;
  font-size: 13.5px;
  color: #64748b;
}

.blog-count {
  font-weight: 600;
  color: #334155;
  display: flex;
  align-items: center;
  gap: 6px;
}

.blog-reset-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  padding: 5px 10px;
  border-radius: 6px;
  color: #0284c7;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.blog-reset-link:hover {
  background: #f0f9ff;
  color: #0369a1;
}

/* Transición suave durante carga AJAX */
.post-grid {
  transition: opacity 0.2s ease, filter 0.2s ease;
}

.post-grid.is-loading {
  opacity: 0.45;
  filter: blur(0.5px);
  pointer-events: none;
}

.empty-posts-search {
  grid-column: 1 / -1;
  padding: 54px 24px;
  text-align: center;
  background: #ffffff;
  border: 1px dashed #cbd5e1;
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(7, 29, 67, 0.02);
}

.empty-posts-search .empty-icon {
  width: 58px;
  height: 58px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
}

.empty-posts-search h2 {
  font-size: 20px;
  color: var(--navy);
  margin: 0 0 8px;
  font-weight: 750;
}

.empty-posts-search p {
  color: #64748b;
  font-size: 14.5px;
  max-width: 460px;
  margin: 0 auto 20px;
  line-height: 1.55;
}

.btn-reset-empty {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #087c66;
  color: #ffffff;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(8, 124, 102, 0.25);
  transition: background 0.15s ease, transform 0.15s ease;
}

.btn-reset-empty:hover {
  background: #066352;
  transform: translateY(-1px);
}

/* Responsividad para móviles y tabletas */
@media (max-width: 860px) {
  .blog-filter-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .blog-search-box {
    width: 100%;
    min-width: 0;
  }
  .blog-filters-group {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .blog-select-wrapper {
    width: 100%;
    min-width: 0;
  }
}

@media (max-width: 540px) {
  .blog-filters-group {
    grid-template-columns: 1fr;
  }
}

