*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
}

:root {
  --teal:        #007885;
  --teal-dark:   #005e69;
  --teal-light:  #e0f2f4;
  --teal-mid:    #b3dde2;
  --navy:        #003552;
  --navy-light:  #004a72;
  --navy-mid:    #ccdae4;
  --red:         #E24352;
  --red-light:   #ea6070;
  --red-bg:      #fdedef;
  --sky:         #B4D3E4;
  --sky-bg:      #eef5fa;
  --coral:       #E45660;
  --text:        #424242;
  --text-light:  #6b7280;
  --text-xlight: #9aa3ae;
  --bg:          #f5f7f9;
  --white:       #ffffff;
  --border:      #e2e8ee;
  --radius:      12px;
  --radius-sm:   7px;
  --radius-pill: 30px;
  --shadow-sm:   0 1px 4px rgba(0,53,82,0.08);
  --shadow:      0 3px 14px rgba(0,53,82,0.10);
  /* --blog-header-bg, --brand-red-accent, --blog-header-sticky-h: ver header-style.css (carga global) */
}

/* Logo Astra en cabecera (.navbar): más tamaño y alineación (plantillas que cargan este CSS) */
header.navbar .blog-navbar-branding .site-branding,
header.navbar .blog-navbar-branding .ast-site-identity {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 12px;
}

header.navbar .navbar-inner {
  min-height: 80px;
  height: auto;
  padding-top: 10px;
  padding-bottom: 10px;
}

header.navbar .blog-navbar-branding .custom-logo-link img,
header.navbar .blog-navbar-branding .site-logo-img img {
  max-height: 65px;
  width: auto;
  max-width: none;
  height: auto;
}

header.navbar .blog-navbar-branding .ast-logo-svg-icon svg {
  max-height: 60px;
  width: auto;
}

@media (max-width: 768px) {
  header.navbar .blog-navbar-branding .custom-logo-link img,
  header.navbar .blog-navbar-branding .site-logo-img img {
    max-height: 52px;
  }

  header.navbar .blog-navbar-branding .ast-logo-svg-icon svg {
    max-height: 48px;
  }
}

body {
  font-family: 'Nunito Sans', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.6;
}

a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }

/* ─── SCROLLBAR ─── */
::-webkit-scrollbar { height: 3px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--teal-mid); border-radius: 10px; }

/* ══════════════════════════════════════════
   TOPBAR
══════════════════════════════════════════ */
.topbar {
  background: var(--navy);
  padding: 7px 20px;
  display: flex; align-items: center; justify-content: flex-end;
  gap: 20px;
}
.topbar-item {
  font-size: 12px; color: rgba(255,255,255,0.55);
  display: flex; align-items: center; gap: 5px;
}
.topbar-item span { color: rgba(255,255,255,0.35); font-size: 10px; }

/* Navbar: assets/css/header-style.css (global, shortcode + blog) */

/* ══════════════════════════════════════════
   CATEGORY STRIP (componente sticky-category-bar)
══════════════════════════════════════════ */
.sticky-category-bar {
  position: sticky;
  top: var(--blog-header-sticky-h);
  z-index: 100;
  background-color: var(--white);
  border-bottom: 2px solid var(--teal-light);
  box-shadow: 0 4px 12px rgba(0, 53, 82, 0.06);
  padding: 0 20px;
}
.sticky-category-bar-container.container {
  max-width: 1220px;
  margin: 0 auto;
}
.cat-strip-inner {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  padding: 10px 0;
  scrollbar-width: none;
}
.cat-strip-inner::-webkit-scrollbar { display: none; }
.cat-tag {
  white-space: nowrap; font-size: 13px; font-weight: 600;
  padding: 6px 16px; border-radius: var(--radius-pill);
  border: 1.5px solid var(--border);
  cursor: pointer; transition: all 0.2s;
  color: var(--text-light); background: var(--bg);
}
.cat-tag:hover { border-color: var(--teal); color: var(--teal); background: var(--teal-light); }
.cat-tag.active { background: var(--teal); color: var(--white); border-color: var(--teal); }

/* ══════════════════════════════════════════
   BREADCRUMB
══════════════════════════════════════════ */
.breadcrumb {
  max-width: 1220px; margin: 0 auto;
  padding: 14px 20px 0;
  display: flex; align-items: center; gap: 6px;
  font-size: 12px; color: var(--text-xlight);
}
.breadcrumb a { color: var(--teal); font-weight: 600; }
.breadcrumb-sep { color: var(--border); }

/* ══════════════════════════════════════════
   HERO SECTION
══════════════════════════════════════════ */
.hero-wrap { max-width: 1220px; margin: 0 auto; padding: 20px 20px 0; }
.hero-grid { display: grid; grid-template-columns: 1fr 380px; gap: 20px; }

/* MAIN HERO CARD */
.hero-main {
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 420px;
  position: relative;
  display: flex; flex-direction: column; justify-content: flex-end;
}
.hero-main-bg {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--navy) 0%, #00506e 45%, var(--teal-dark) 100%);
}
/* decorative teal shape */
.hero-main-shape {
  position: absolute; top: -40px; right: -40px;
  width: 280px; height: 280px; border-radius: 50%;
  background: rgba(0,120,133,0.18);
}
.hero-main-shape2 {
  position: absolute; bottom: 60px; right: 40px;
  width: 120px; height: 120px; border-radius: 50%;
  background: rgba(178,211,228,0.10);
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,29,50,0.96) 0%, rgba(0,29,50,0.55) 55%, transparent 100%);
}
.hero-main-content { position: relative; z-index: 2; padding: 32px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--teal); color: var(--white);
  font-size: 11px; font-weight: 700;
  padding: 4px 14px; border-radius: var(--radius-pill);
  margin-bottom: 14px; letter-spacing: 0.05em; text-transform: uppercase;
}
.hero-badge-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--white); opacity: 0.6; }
.hero-title {
  font-family: 'Nunito', sans-serif;
  font-size: 26px; font-weight: 800; color: var(--white);
  line-height: 1.3; margin-bottom: 12px;
}
.hero-title em { color: var(--sky); font-style: normal; }
.hero-excerpt { font-size: 14px; color: rgba(255,255,255,0.62); line-height: 1.65; margin-bottom: 20px; max-width: 500px; }
.hero-meta-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.hero-author { display: flex; align-items: center; gap: 10px; }
.hero-avatar {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--teal); border: 2px solid rgba(255,255,255,0.25);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; color: white;
}
.hero-author-info strong { display: block; font-size: 13px; font-weight: 700; color: rgba(255,255,255,0.9); }
.hero-author-info span { font-size: 12px; color: rgba(255,255,255,0.45); }
.hero-read-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--red); color: var(--white);
  font-size: 13px; font-weight: 700;
  padding: 10px 22px; border-radius: var(--radius-pill);
  border: none; cursor: pointer; transition: all 0.2s;
}
.hero-read-btn:hover { background: var(--red-light); gap: 12px; }
.hero-read-btn svg { width: 14px; height: 14px; }

/* HERO SIDEBAR — stacked recent articles */
.hero-side { display: flex; flex-direction: column; gap: 12px; }
.side-card {
  background: var(--white); border-radius: var(--radius);
  border: 1px solid var(--border);
  display: flex; gap: 14px; padding: 14px;
  transition: border-color 0.2s, box-shadow 0.2s;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}
.side-card:hover { border-color: var(--teal); box-shadow: var(--shadow-sm); }
.side-thumb {
  width: 70px; height: 70px; border-radius: 8px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 28px;
  overflow: hidden;
}
.side-thumb .side-thumb-img {
  display: block;
  width: 70px;
  height: 70px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
}
.side-body { flex: 1; min-width: 0; }
.side-cat {
  font-size: 10px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.05em; color: var(--teal); margin-bottom: 5px;
}
.side-title { font-size: 13px; font-weight: 700; color: var(--navy); line-height: 1.4; margin-bottom: 5px; }
.side-meta { font-size: 11px; color: var(--text-xlight); }

/* ══════════════════════════════════════════
   MAIN BODY (articles + sidebar)
══════════════════════════════════════════ */
.body-wrap { max-width: 1220px; margin: 0 auto; padding: 28px 20px 48px; }
.body-grid { display: grid; grid-template-columns: 1fr 310px; gap: 32px; }

/* ─── SECTION LABELS ─── */
.section-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 20px;
}
.section-label {
  font-size: 11px; font-weight: 800; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--text-xlight);
  display: flex; align-items: center; gap: 8px;
}
.section-label::before {
  content: ''; width: 3px; height: 14px; border-radius: 2px;
  background: var(--teal);
}
.section-see-all {
  font-size: 12px; font-weight: 700; color: var(--teal);
  display: flex; align-items: center; gap: 4px;
}
.section-see-all:hover { color: var(--teal-dark); }

/* ─── ARTICLES GRID ─── */
.articles-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-bottom: 22px; }
.article-card {
  background: var(--white); border-radius: var(--radius);
  border: 1px solid var(--border); overflow: hidden;
  cursor: pointer; transition: border-color 0.2s, transform 0.18s, box-shadow 0.18s;
  display: block;
}
.article-card:hover { border-color: var(--teal); transform: translateY(-3px); box-shadow: var(--shadow); }
.ac-thumb {
  height: 148px; display: flex; align-items: center; justify-content: center;
  font-size: 38px; position: relative; overflow: hidden;
}
.ac-thumb-stripe {
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 3px;
}
.ac-body { padding: 16px; }
.ac-tag {
  font-size: 10px; font-weight: 800; padding: 3px 10px;
  border-radius: var(--radius-pill); margin-bottom: 10px;
  display: inline-block; text-transform: uppercase; letter-spacing: 0.04em;
}
/* Tag colors per category */
.t-contable   { background:#e0f2f4; color:#005e69; }
.t-crm        { background:#ddeef7; color:#003552; }
.t-estrategia { background:#e0f2f4; color:#007885; }
.t-pos        { background:#fdedef; color:#b8293a; }
.t-comercio   { background:#fff0e0; color:#a05000; }
.t-cap        { background:#eeedf9; color:#3c3a8e; }
.t-web        { background:#e0f4ec; color:#1a6b42; }
.t-pub        { background:#fdedef; color:#c0392b; }
.t-datos      { background:#ddeef7; color:#003552; }

.ac-title { font-size: 14px; font-weight: 700; line-height: 1.45; color: var(--navy); margin-bottom: 12px; }
.ac-footer { display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--border); padding-top: 10px; margin-top: 2px; }
.ac-date { font-size: 11px; color: var(--text-xlight); }
.ac-time {
  font-size: 11px; color: var(--teal); font-weight: 700;
  background: var(--teal-light); padding: 2px 8px; border-radius: var(--radius-pill);
}

/* ─── LOAD MORE ─── */
.load-more-btn {
  width: 100%; padding: 13px;
  border-radius: var(--radius);
  border: 2px solid var(--border);
  background: var(--white);
  font-family: 'Nunito Sans', sans-serif;
  font-size: 14px; font-weight: 700; color: var(--navy);
  cursor: pointer; transition: all 0.2s;
}
.load-more-btn:hover { background: var(--navy); color: var(--white); border-color: var(--navy); }

/* ══════════════════════════════════════════
   SIDEBAR
══════════════════════════════════════════ */
.sb-widget {
  background: var(--white); border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 20px; margin-bottom: 18px;
}
.sb-title {
  font-size: 11px; font-weight: 800; text-transform: uppercase;
  letter-spacing: 0.09em; color: var(--text-xlight);
  margin-bottom: 16px; padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 7px;
}
.sb-title::before { content: ''; width: 3px; height: 12px; border-radius: 2px; background: var(--teal); }

/* CTA WIDGET */
.cta-widget {
  background: var(--navy); border-radius: var(--radius);
  padding: 24px 20px; margin-bottom: 18px; text-align: center;
  position: relative; overflow: hidden;
}
.cta-deco1 {
  position: absolute; top: -30px; right: -30px;
  width: 110px; height: 110px; border-radius: 50%;
  background: rgba(0,120,133,0.20);
}
.cta-deco2 {
  position: absolute; bottom: -20px; left: -20px;
  width: 80px; height: 80px; border-radius: 50%;
  background: rgba(180,211,228,0.12);
}
.cta-icon-wrap {
  width: 48px; height: 48px; border-radius: 12px;
  background: var(--teal); margin: 0 auto 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; position: relative; z-index: 2;
}
.cta-heading { color: var(--white); font-family: 'Nunito', sans-serif; font-size: 17px; font-weight: 800; margin-bottom: 8px; position: relative; z-index: 2; line-height: 1.3; }
.cta-sub { color: rgba(255,255,255,0.55); font-size: 13px; line-height: 1.6; margin-bottom: 18px; position: relative; z-index: 2; }
.cta-btn {
  width: 100%; padding: 12px;
  background: var(--red); color: var(--white);
  border: none; border-radius: var(--radius-pill);
  font-family: 'Nunito Sans', sans-serif;
  font-size: 13px; font-weight: 800; cursor: pointer;
  transition: background 0.2s; position: relative; z-index: 2;
  letter-spacing: 0.01em;
}
.cta-btn:hover { background: var(--red-light); }
.cta-note { font-size: 11px; color: rgba(255,255,255,0.35); margin-top: 8px; position: relative; z-index: 2; }

/* MOST READ */
.mr-item {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 10px 0; border-bottom: 1px solid var(--border); cursor: pointer;
}
.mr-item:last-child { border-bottom: none; padding-bottom: 0; }
.mr-item:hover .mr-title { color: var(--teal); }
a.mr-item {
  text-decoration: none;
  color: inherit;
}
a.mr-item:hover .mr-num { color: var(--teal-mid); }
.mr-num {
  font-family: 'Nunito', sans-serif; font-size: 22px; font-weight: 800;
  color: var(--border); min-width: 30px; line-height: 1;
  transition: color 0.2s;
}
.mr-title { font-size: 13px; font-weight: 700; color: var(--navy); line-height: 1.45; margin-bottom: 3px; transition: color 0.2s; }
.mr-cat { font-size: 11px; color: var(--teal); font-weight: 600; }

/* CATEGORIES FILTER */
.cf-item {
  display: flex; justify-content: space-between; align-items: center;
  padding: 9px 0; border-bottom: 1px solid var(--border);
  cursor: pointer; transition: all 0.2s;
}
.cf-item:last-child { border-bottom: none; }
.cf-item:hover .cf-name { color: var(--teal); }
.cf-name { font-size: 13px; font-weight: 600; color: var(--text); transition: color 0.2s; }
.cf-count {
  font-size: 11px; font-weight: 700;
  padding: 2px 9px; border-radius: var(--radius-pill);
  background: var(--teal-light); color: var(--teal);
}

/* NEWSLETTER */
.nl-desc { font-size: 13px; color: var(--text-light); line-height: 1.6; margin-bottom: 14px; }
.nl-input {
  width: 100%; padding: 10px 14px;
  border-radius: var(--radius-sm); border: 1.5px solid var(--border);
  font-family: 'Nunito Sans', sans-serif; font-size: 14px; color: var(--text);
  background: var(--bg); margin-bottom: 10px; transition: border-color 0.2s;
}
.nl-input:focus { outline: none; border-color: var(--teal); background: var(--white); }
.nl-btn {
  width: 100%; padding: 11px;
  background: var(--teal); color: var(--white);
  border: none; border-radius: var(--radius-pill);
  font-family: 'Nunito Sans', sans-serif;
  font-size: 14px; font-weight: 700; cursor: pointer;
  transition: background 0.2s; letter-spacing: 0.01em;
}
.nl-btn:hover { background: var(--teal-dark); }
.nl-btn:disabled { opacity: 0.75; cursor: not-allowed; }
.nl-legal { font-size: 11px; color: var(--text-xlight); text-align: center; margin-top: 8px; line-height: 1.5; }
.ac-newsletter-form { margin: 0; }
.ac-nl-response { margin-top: 10px; font-size: 13px; line-height: 1.45; min-height: 0; }
.ac-nl-response--success { color: #0d8050; font-weight: 600; }
.ac-nl-response--error { color: #c62828; font-weight: 600; }

/* ══════════════════════════════════════════
   FOOTER BLOG (.blog-footer) — alineado diseño referencia #003552
══════════════════════════════════════════ */
.blog-footer {
  background: #003552;
  color: #ffffff;
  padding: 56px 24px 32px;
  margin-top: auto;
}

.blog-footer-inner {
  max-width: 1220px;
  margin: 0 auto;
}

.blog-footer .footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.95fr 1fr 1fr;
  gap: 2.5rem 2rem;
  margin-bottom: 2.75rem;
  align-items: start;
}

.blog-footer .footer-col { min-width: 0; text-align: left; }

/* Fila marca: logo | línea | eslogan */
.blog-footer-brand-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 14px;
  margin-bottom: 1.25rem;
}

.blog-footer-logo {
  flex-shrink: 0;
  margin: 0;
}

.blog-footer .blog-footer-site-branding,
.blog-footer .blog-footer-site-branding .ast-site-identity {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
}

.blog-footer-brand-sep {
  display: inline-block;
  align-self: stretch;
  min-height: 32px;
  width: 0;
  border-left: 1px solid rgba(255, 255, 255, 0.85);
  margin: 0 2px;
  flex-shrink: 0;
}

.blog-footer-brand-tagline {
  margin: 0;
  flex: 1;
  min-width: 160px;
  max-width: 280px;
  font-family: 'Nunito Sans', sans-serif;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  color: #ffffff;
  letter-spacing: 0.01em;
}

.blog-footer .site-logo-img,
.blog-footer .custom-logo-link {
  display: inline-flex;
  align-items: center;
  line-height: 0;
}

.blog-footer .custom-logo-link img,
.blog-footer .site-logo-img img {
  max-height: 44px;
  width: auto;
  height: auto;
}

.blog-footer .site-title a,
.blog-footer-title-link {
  font-family: 'Nunito', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
  text-decoration: none;
}

.blog-footer-title-link:hover { opacity: 0.9; }

.blog-footer .footer-brand-text {
  font-family: 'Nunito Sans', sans-serif;
  font-size: 13px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.88);
  margin: 0 0 14px;
}

.blog-footer .footer-brand-text:last-of-type { margin-bottom: 0; }

.blog-footer .footer-heading {
  font-family: 'Nunito', sans-serif;
  font-size: 16px;
  font-weight: 700;
  text-transform: none;
  letter-spacing: 0;
  color: #ffffff;
  margin: 0 0 18px;
  line-height: 1.25;
}

.blog-footer .footer-link-list,
.blog-footer .footer-contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.blog-footer .footer-link-list li,
.blog-footer .footer-contact-list li {
  margin: 0 0 12px;
}

.blog-footer .footer-link-list li:last-child,
.blog-footer .footer-contact-list li:last-child {
  margin-bottom: 0;
}

.blog-footer .footer-link-list a,
.blog-footer .footer-contact-list a {
  color: #ffffff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  opacity: 0.95;
  transition: opacity 0.2s;
}

.blog-footer .footer-link-list a:hover,
.blog-footer .footer-contact-list a:hover {
  opacity: 0.75;
}

.blog-footer .footer-link-book {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.blog-footer .footer-icon-book {
  flex-shrink: 0;
  opacity: 0.9;
}

.blog-footer .footer-contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.blog-footer .footer-contact-icon {
  flex-shrink: 0;
  margin-top: 1px;
  color: #ffffff;
  line-height: 0;
  opacity: 0.95;
}

.blog-footer .footer-contact-address {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.95);
}

.blog-footer .footer-social-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 1.5rem;
}

.blog-footer .footer-social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #ffffff;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
}

.blog-footer .footer-social-btn:hover {
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.35);
}

.blog-footer .partner-logos {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.blog-footer .partner-logo-slot {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 12px 14px;
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.blog-footer .partner-logo-slot img {
  max-width: 100%;
  max-height: 40px;
  width: auto;
  height: auto;
  object-fit: contain;
  opacity: 1;
}

.blog-footer .footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 1.5rem;
}

.blog-footer .footer-copyright {
  text-align: center;
  font-family: 'Nunito Sans', sans-serif;
  font-size: 12px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.5;
}

@media (max-width: 1024px) {
  .blog-footer .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .blog-footer .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .blog-footer {
    padding: 40px 20px 28px;
  }

  .blog-footer-brand-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .blog-footer-brand-sep {
    display: none;
  }

  .blog-footer-brand-tagline {
    max-width: none;
  }
}

/* ══════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════ */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-side { display: grid; grid-template-columns: repeat(2, 1fr); }
  .body-grid { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .hero-side { grid-template-columns: 1fr; }
  .articles-grid { grid-template-columns: 1fr; }
  .topbar { display: none; }
  .hero-title { font-size: 21px; }
  .hero-main-content { padding: 22px; }
}

/* ===== template-article-view.php (adicional) ===== */

.article-hero {
  background: var(--navy);
  position: relative; overflow: hidden;
  padding: 56px 20px 52px;
}
.ah-deco1 { position: absolute; top: -60px; right: -60px; width: 320px; height: 320px; border-radius: 50%; background: rgba(0,120,133,0.15); }
.ah-deco2 { position: absolute; bottom: -40px; left: 10%; width: 200px; height: 200px; border-radius: 50%; background: rgba(180,211,228,0.08); }
.ah-deco3 { position: absolute; top: 30px; left: -40px; width: 140px; height: 140px; border-radius: 50%; background: rgba(0,120,133,0.10); }
.ah-inner { max-width: 820px; margin: 0 auto; position: relative; z-index: 2; }

.ah-breadcrumb { display: flex; align-items: center; gap: 6px; font-size: 12px; color: rgba(255,255,255,0.4); margin-bottom: 18px; }
.ah-breadcrumb a { color: var(--teal); font-weight: 600; }
.ah-breadcrumb a:hover { color: var(--teal-mid); }
.ah-sep { color: rgba(255,255,255,0.2); }

.ah-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--teal); color: white;
  font-size: 11px; font-weight: 700; padding: 4px 14px;
  border-radius: var(--radius-pill); margin-bottom: 18px;
  text-transform: uppercase; letter-spacing: 0.05em;
}
.ah-badge-dot { width: 5px; height: 5px; border-radius: 50%; background: rgba(255,255,255,0.6); }

.ah-title {
  font-family: 'Nunito', sans-serif;
  font-size: 34px; font-weight: 800; color: var(--white);
  line-height: 1.25; margin-bottom: 18px;
  letter-spacing: -0.3px;
}
.ah-title em { color: var(--sky); font-style: normal; }

.ah-meta { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin-bottom: 22px; }
.ah-author { display: flex; align-items: center; gap: 10px; }
.ah-avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--teal); border: 2px solid rgba(255,255,255,0.2); display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 800; color: white; }
.ah-author-info strong { display: block; font-size: 14px; font-weight: 700; color: rgba(255,255,255,0.9); }
.ah-author-info span { font-size: 12px; color: rgba(255,255,255,0.45); }
.ah-stats { display: flex; gap: 16px; }
.ah-stat { font-size: 12px; color: rgba(255,255,255,0.45); display: flex; align-items: center; gap: 5px; }
.ah-stat-icon { font-size: 13px; }

.ah-share {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 12px;
  justify-content: flex-start;
}
.ah-share-label {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
  flex-shrink: 0;
}
.ah-share-buttons {
  display: flex;
  align-items: center;
  gap: 10px;
}
.ah-share-link {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.22);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  transition: all 0.3s ease;
}
.ah-share-link .ah-share-icon {
  display: block;
  flex-shrink: 0;
}
.ah-share-link:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}
.ah-share-link--whatsapp:hover {
  border-color: #25d366;
  color: #25d366;
  background: rgba(37, 211, 102, 0.12);
}
.ah-share-link--linkedin:hover {
  border-color: #0a66c2;
  color: #0a66c2;
  background: rgba(10, 102, 194, 0.12);
}
.ah-share-link--facebook:hover {
  border-color: #1877f2;
  color: #1877f2;
  background: rgba(24, 119, 242, 0.12);
}

/* ══════════════════════════════════
   ARTICLE LAYOUT
══════════════════════════════════ */
.article-layout {
  max-width: 1220px; margin: 0 auto;
  padding: 36px 20px 56px;
  display: grid;
  grid-template-columns: 1fr 310px;
  gap: 40px;
  align-items: start;
}

/* ══════════════════════════════════
   ARTICLE BODY
══════════════════════════════════ */
.article-body { min-width: 0; }

/* LEAD / INTRO */
.article-lead {
  font-family: 'Lora', Georgia, serif;
  font-size: 18px; font-weight: 400; color: var(--navy);
  line-height: 1.75; margin-bottom: 28px;
  padding-bottom: 28px; border-bottom: 2px solid var(--teal-light);
}

/* PROGRESS BAR */
.reading-progress-wrap { position: sticky; top: var(--blog-header-sticky-h); z-index: 100; height: 3px; background: var(--teal-light); margin-bottom: 0; }
.reading-progress-bar { height: 3px; background: var(--teal); width: 35%; transition: width 0.1s; }

/* CONTENT */
.article-content { font-size: 16px; line-height: 1.8; color: var(--text); }
.article-content h2 {
  font-family: 'Nunito', sans-serif;
  font-size: 22px; font-weight: 800; color: var(--navy);
  margin: 36px 0 14px; line-height: 1.3;
  padding-left: 16px;
  border-left: 4px solid var(--teal);
}
.article-content h3 {
  font-family: 'Nunito', sans-serif;
  font-size: 18px; font-weight: 700; color: var(--navy);
  margin: 28px 0 10px;
}
.article-content p { margin-bottom: 18px; }
.article-content strong { color: var(--navy); font-weight: 700; }
.article-content em { color: var(--teal-dark); font-style: italic; }

/* BLOCKQUOTE */
.article-content blockquote {
  border-left: 4px solid var(--teal);
  background: var(--teal-light);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 20px 24px;
  margin: 28px 0;
}
.article-content blockquote p {
  font-family: 'Lora', serif;
  font-size: 17px; font-style: italic;
  color: var(--navy); margin: 0; line-height: 1.7;
}
.article-content blockquote cite {
  display: block; font-size: 13px; font-weight: 700;
  color: var(--teal); margin-top: 10px; font-style: normal;
}

/* CALLOUT BOX */
.callout {
  background: var(--sky-bg);
  border: 1.5px solid var(--sky);
  border-radius: var(--radius);
  padding: 20px 22px; margin: 28px 0;
  display: flex; gap: 14px;
}
.callout-icon { font-size: 22px; flex-shrink: 0; margin-top: 2px; }
.callout-body { flex: 1; }
.callout-title { font-size: 14px; font-weight: 800; color: var(--navy); margin-bottom: 6px; }
.callout-text { font-size: 14px; color: var(--text-light); line-height: 1.65; margin: 0; }

/* CALLOUT RED */
.callout-red {
  background: var(--red-bg);
  border-color: #f5b3ba;
}
.callout-red .callout-title { color: var(--red); }

/* STAT ROW */
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 28px 0; }
.stat-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 16px; text-align: center; }
.stat-card-num { font-family: 'Nunito', sans-serif; font-size: 32px; font-weight: 800; color: var(--teal); line-height: 1; margin-bottom: 6px; }
.stat-card-label { font-size: 12px; color: var(--text-light); line-height: 1.4; }

/* NUMBERED LIST STYLED */
.article-content ol { padding-left: 0; list-style: none; margin: 20px 0 24px; }
.article-content ol li {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 12px 0; border-bottom: 1px solid var(--border); font-size: 15px;
}
.article-content ol li:last-child { border-bottom: none; }
.ol-num {
  width: 28px; height: 28px; border-radius: 8px;
  background: var(--teal); color: white;
  font-size: 13px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; margin-top: 1px;
}

/* BULLET LIST */
.article-content ul { padding-left: 0; list-style: none; margin: 16px 0 20px; }
.article-content ul li { padding: 6px 0 6px 20px; position: relative; font-size: 15px; }
.article-content ul li::before { content: ''; position: absolute; left: 0; top: 14px; width: 8px; height: 8px; border-radius: 50%; background: var(--teal); }

/* IMAGE PLACEHOLDER */
.article-image {
  border-radius: var(--radius); overflow: hidden;
  margin: 28px 0; background: linear-gradient(135deg, var(--teal-light) 0%, var(--sky-bg) 100%);
  height: 280px; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 8px;
  border: 1px solid var(--border);
}
.article-image-label { font-size: 13px; color: var(--text-xlight); }
.article-image-icon { font-size: 40px; opacity: 0.5; }

/* TAGS */
.article-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 36px 0 28px; padding-top: 24px; border-top: 1px solid var(--border); }
.article-tag-item {
  font-size: 12px; font-weight: 700; padding: 5px 14px;
  border-radius: var(--radius-pill); border: 1.5px solid var(--border);
  color: var(--text-light); background: var(--white);
  cursor: pointer; transition: all 0.2s;
}
.article-tag-item:hover { border-color: var(--teal); color: var(--teal); background: var(--teal-light); }

/* AUTHOR BOX */
.author-box {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px;
  display: flex; gap: 18px; margin-bottom: 36px;
}
.author-box-avatar {
  width: 64px; height: 64px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, var(--teal) 0%, var(--navy) 100%);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; font-weight: 800; color: white; font-family: 'Nunito', sans-serif;
}
img.author-box-avatar,
.author-box-avatar.avatar {
  display: block;
  object-fit: cover;
  padding: 0;
  font-size: 0;
  line-height: 0;
}
.author-box-name { font-family: 'Nunito', sans-serif; font-size: 16px; font-weight: 800; color: var(--navy); margin-bottom: 3px; }
.author-box-role { font-size: 12px; font-weight: 700; color: var(--teal); margin-bottom: 8px; }
.author-box-bio { font-size: 13px; color: var(--text-light); line-height: 1.65; }

/* ══════════════════════════════════
   TE PUEDE INTERESAR
══════════════════════════════════ */
.related-section { margin-top: 8px; }
.related-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 22px;
}
.related-title {
  font-family: 'Nunito', sans-serif;
  font-size: 20px; font-weight: 800; color: var(--navy);
  display: flex; align-items: center; gap: 10px;
}
.related-title::before { content: ''; width: 4px; height: 22px; border-radius: 2px; background: var(--teal); }
.related-see-all { font-size: 13px; font-weight: 700; color: var(--teal); }
.related-see-all:hover { color: var(--teal-dark); }

/* Carrusel Swiper: teaser en móvil, 2 tablet, 3 escritorio */
.related-carousel.related-swiper.swiper {
  overflow: hidden;
  margin: 0 -4px;
  padding: 4px 4px 12px;
  -webkit-overflow-scrolling: touch;
}
.related-swiper .swiper-wrapper {
  align-items: stretch;
}
.related-swiper .swiper-slide {
  height: auto;
  display: flex;
  box-sizing: border-box;
}
.related-swiper .swiper-slide > .related-card {
  width: 100%;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}
.related-swiper .related-body {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.related-swiper .related-article-title {
  flex: 1;
  min-height: 2.9em;
}

.related-card {
  background: var(--white); border-radius: var(--radius);
  border: 1px solid var(--border); overflow: hidden;
  cursor: pointer; transition: border-color 0.2s, transform 0.18s, box-shadow 0.18s;
  display: block;
}
.related-card:hover { border-color: var(--teal); transform: translateY(-3px); box-shadow: var(--shadow); }
.related-thumb { height: 130px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 34px; position: relative; overflow: hidden; }
.related-thumb > img.related-thumb-img,
.related-thumb > img { width: 100%; height: 100%; object-fit: cover; display: block; position: absolute; left: 0; top: 0; }
.related-thumb-bar { position: absolute; bottom: 0; left: 0; right: 0; height: 3px; z-index: 1; }
.related-body { padding: 16px; }
.related-cat { font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em; color: var(--teal); margin-bottom: 8px; }
.related-article-title { font-size: 14px; font-weight: 700; color: var(--navy); line-height: 1.45; margin-bottom: 12px; }
.related-footer { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--border); padding-top: 10px; margin-top: auto; }
.related-date { font-size: 11px; color: var(--text-xlight); }
.related-time { font-size: 11px; font-weight: 700; color: var(--teal); background: var(--teal-light); padding: 2px 8px; border-radius: var(--radius-pill); }

/* ══════════════════════════════════
   SIDEBAR (sticky)
══════════════════════════════════ */
.article-sidebar { position: sticky; top: 86px; }

/* TABLE OF CONTENTS (dinámico, single.php) */
.widget-toc {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 18px;
}
.widget-toc[hidden] {
  display: none !important;
}
.widget-toc-title {
  font-family: 'Nunito Sans', sans-serif;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-xlight);
  margin: 0 0 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 8px;
}
.widget-toc-title::before {
  content: '';
  width: 3px;
  height: 12px;
  border-radius: 2px;
  background: var(--teal);
  flex-shrink: 0;
}
.dynamic-toc-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.dynamic-toc-item {
  border-bottom: 1px solid var(--border);
}
.dynamic-toc-item:last-child {
  border-bottom: none;
}
.dynamic-toc-link {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 0;
  text-decoration: none;
  color: inherit;
  transition: color 0.2s, font-weight 0.2s;
}
.dynamic-toc-item:last-child .dynamic-toc-link {
  padding-bottom: 0;
}
.dynamic-toc-num {
  font-family: 'Nunito', sans-serif;
  font-size: 11px;
  font-weight: 800;
  color: var(--text-xlight);
  min-width: 22px;
  margin-top: 2px;
  flex-shrink: 0;
  opacity: 0.85;
}
.dynamic-toc-text {
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  line-height: 1.45;
}
.dynamic-toc-link:hover .dynamic-toc-text {
  color: #007580;
  font-weight: 600;
}
.dynamic-toc-link:hover .dynamic-toc-num {
  color: #007580;
}
.dynamic-toc-link.active .dynamic-toc-text,
.dynamic-toc-item.active .dynamic-toc-text {
  color: #007580;
  font-weight: 700;
}
.dynamic-toc-link.active .dynamic-toc-num,
.dynamic-toc-item.active .dynamic-toc-num {
  color: #007580;
}

/* Anclas H2: compensar header sticky al hacer clic en el índice */
.article-content h2[id],
.entry-content h2[id] {
  scroll-margin-top: 88px;
}

/* CTA WIDGET */
.cta-widget { background: var(--navy); border-radius: var(--radius); padding: 22px 18px; margin-bottom: 18px; text-align: center; position: relative; overflow: hidden; }
.cta-deco { position: absolute; top: -30px; right: -30px; width: 100px; height: 100px; border-radius: 50%; background: rgba(0,120,133,0.20); }
.cta-deco2 { position: absolute; bottom: -20px; left: -20px; width: 70px; height: 70px; border-radius: 50%; background: rgba(180,211,228,0.10); }
.cta-icon-wrap { width: 44px; height: 44px; border-radius: 11px; background: var(--teal); margin: 0 auto 12px; display: flex; align-items: center; justify-content: center; font-size: 20px; position: relative; z-index: 2; }
.cta-heading { color: white; font-family: 'Nunito', sans-serif; font-size: 16px; font-weight: 800; margin-bottom: 8px; position: relative; z-index: 2; line-height: 1.3; }
.cta-sub { color: rgba(255,255,255,0.5); font-size: 12px; line-height: 1.6; margin-bottom: 16px; position: relative; z-index: 2; }
.cta-btn { width: 100%; padding: 11px; background: var(--red); color: white; border: none; border-radius: var(--radius-pill); font-family: 'Nunito Sans', sans-serif; font-size: 13px; font-weight: 800; cursor: pointer; transition: background 0.2s; position: relative; z-index: 2; }
.cta-btn:hover { background: var(--red-light); }
.cta-note { font-size: 11px; color: rgba(255,255,255,0.3); margin-top: 8px; position: relative; z-index: 2; }

/* MOST READ SIDEBAR */
.sb-widget { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; margin-bottom: 18px; }
.sb-title { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.09em; color: var(--text-xlight); margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 7px; }
.sb-title::before { content: ''; width: 3px; height: 12px; border-radius: 2px; background: var(--teal); }
.mr-item { display: flex; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--border); cursor: pointer; }
.mr-item:last-child { border-bottom: none; padding-bottom: 0; }
.mr-item:hover .mr-title { color: var(--teal); }
a.mr-item { text-decoration: none; color: inherit; }
a.mr-item:hover .mr-num { color: var(--teal-mid); }
.mr-num { font-family: 'Nunito', sans-serif; font-size: 20px; font-weight: 800; color: var(--border); min-width: 28px; line-height: 1; }
.mr-title { font-size: 13px; font-weight: 700; color: var(--navy); line-height: 1.4; transition: color 0.2s; margin-bottom: 3px; }
.mr-cat { font-size: 11px; color: var(--teal); font-weight: 600; }

/* SHARE STICKY (sidebar single) */
.share-widget { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; }
.share-title { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.09em; color: var(--text-xlight); margin-bottom: 12px; }
.share-btns-sidebar {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.share-btn-sidebar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 40px;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  background: var(--white);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--text);
  text-decoration: none;
  transition: border-color 0.25s ease, color 0.25s ease, background 0.25s ease;
}
.share-btn-sidebar-icon {
  flex-shrink: 0;
  display: block;
  opacity: 0.85;
}
.share-btn-sidebar-label {
  line-height: 1.2;
}
.share-btn-sidebar:hover {
  border-color: var(--teal);
  color: var(--teal);
  background: var(--teal-light);
}
.share-btn-sidebar:hover .share-btn-sidebar-icon {
  opacity: 1;
}
.share-btn-sidebar--linkedin:hover {
  border-color: #0a66c2;
  color: #0a66c2;
  background: rgba(10, 102, 194, 0.08);
}
.share-btn-sidebar--whatsapp:hover {
  border-color: #25d366;
  color: #128c7e;
  background: rgba(37, 211, 102, 0.1);
}
.share-btn-sidebar--facebook:hover {
  border-color: #1877f2;
  color: #1877f2;
  background: rgba(24, 119, 242, 0.08);
}

.back-to-blog {
  display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700;
  color: var(--teal); background: rgba(0,120,133,0.12); padding: 8px 16px;
  border-radius: var(--radius-pill); margin-bottom: 28px; transition: background 0.2s;
}
.back-to-blog:hover { background: rgba(0,120,133,0.2); }

/* RESPONSIVE */
@media (max-width: 1024px) {
  .article-layout { grid-template-columns: 1fr; }
  .article-sidebar { position: static; }
}
@media (max-width: 680px) {
  .ah-title { font-size: 24px; }
  .topbar { display: none; }
  .stat-row { grid-template-columns: repeat(2, 1fr); }
  .article-layout { padding: 24px 16px 40px; }
  .article-hero { padding: 36px 16px 36px; }
}

/* ===== template-category-view.php (adicional) ===== */

/* ══════════════════════════════════
   CATEGORY HERO HEADER
══════════════════════════════════ */
.category-hero-section {
  background: #023e58;
  color: #fff;
  position: relative;
  overflow: hidden;
  padding: 48px 20px 40px;
}
.category-hero-columns {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  padding-bottom: 0;
}
.category-hero-section h1 {
  font-family: 'Nunito', sans-serif;
  font-size: 32px;
  font-weight: 800;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 14px;
  letter-spacing: -0.3px;
}
.category-hero-section h1 em {
  color: var(--sky);
  font-style: normal;
}
.category-hero-section .cat-desc {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.7;
  max-width: 560px;
  margin-bottom: 24px;
}
.category-hero-section .cat-desc:empty {
  display: none;
}
/* decorative shapes */
.ch-deco1 { position: absolute; top: -50px; right: -50px; width: 280px; height: 280px; border-radius: 50%; background: rgba(0,120,133,0.18); }
.ch-deco2 { position: absolute; bottom: 30px; left: 8%; width: 160px; height: 160px; border-radius: 50%; background: rgba(180,211,228,0.07); }
.ch-deco3 { position: absolute; top: 20px; left: -30px; width: 110px; height: 110px; border-radius: 50%; background: rgba(0,120,133,0.10); }

.ch-inner { max-width: 1220px; margin: 0 auto; position: relative; z-index: 2; }
.ch-breadcrumb { display: flex; align-items: center; gap: 6px; font-size: 12px; color: rgba(255,255,255,0.4); margin-bottom: 20px; }
.ch-breadcrumb a { color: var(--teal); font-weight: 600; }
.ch-breadcrumb a:hover { color: var(--teal-mid); }
.ch-sep { color: rgba(255,255,255,0.2); }

.ch-top:not(.category-hero-columns) {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  padding-bottom: 0;
}
.category-hero-section .ch-left { flex: 1; min-width: 0; }

.ch-icon-wrap {
  width: 56px; height: 56px; border-radius: 14px;
  background: var(--teal); display: flex; align-items: center;
  justify-content: center; font-size: 26px; margin-bottom: 16px;
}
.ch-category-label {
  font-size: 11px; font-weight: 800; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--teal-mid); margin-bottom: 8px;
  display: flex; align-items: center; gap: 8px;
}
.ch-category-label::before { content: ''; width: 20px; height: 2px; background: var(--teal); border-radius: 2px; }

.ch-title {
  font-family: 'Nunito', sans-serif;
  font-size: 32px; font-weight: 800; color: var(--white);
  line-height: 1.2; margin-bottom: 14px; letter-spacing: -0.3px;
}
.ch-title em { color: var(--sky); font-style: normal; }
.ch-desc { font-size: 15px; color: rgba(255,255,255,0.55); line-height: 1.7; max-width: 560px; margin-bottom: 24px; }

/* STATS ROW */
.ch-stats { display: flex; gap: 0; margin-bottom: 0; }
.ch-stat {
  padding: 14px 24px 18px;
  border-right: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.04);
}
.ch-stat:first-child { border-radius: 12px 0 0 0; }
.ch-stat:last-child { border-right: none; border-radius: 0 12px 0 0; }
.ch-stat-num { font-family: 'Nunito', sans-serif; font-size: 26px; font-weight: 800; color: var(--white); line-height: 1; margin-bottom: 4px; }
.ch-stat-num span { color: var(--teal-mid); }
.ch-stat-label { font-size: 11px; color: rgba(255,255,255,0.4); font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; }

/* SERVICE CTA CARD on the right */
.ch-service-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: var(--radius);
  padding: 22px; min-width: 260px; max-width: 300px;
  flex-shrink: 0; margin-bottom: 0; align-self: center;
}
.ch-service-title { font-size: 14px; font-weight: 700; color: rgba(255,255,255,0.85); margin-bottom: 6px; }
.ch-service-desc { font-size: 13px; color: rgba(255,255,255,0.45); line-height: 1.6; margin-bottom: 14px; }
.ch-service-btn {
  width: 100%; padding: 10px; background: var(--teal); color: white;
  border: none; border-radius: var(--radius-pill); font-size: 13px; font-weight: 700;
  cursor: pointer; transition: background 0.2s; margin-bottom: 8px;
}
.ch-service-btn:hover { background: var(--teal-dark); }
.ch-service-btn2 {
  width: 100%; padding: 10px; background: transparent; color: rgba(255,255,255,0.55);
  border: 1px solid rgba(255,255,255,0.15); border-radius: var(--radius-pill);
  font-size: 13px; font-weight: 600; cursor: pointer; transition: all 0.2s;
}
.ch-service-btn2:hover { background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.85); }

/* ══════════════════════════════════
   FILTER / SORT BAR
══════════════════════════════════ */
.filter-bar {
  background-color: #ffffff;
  border-bottom: 1px solid var(--border);
  padding: 0 20px;
  position: sticky;
  top: var(--blog-header-sticky-h);
  z-index: 99;
}
/* Debajo de la tira de categorías sticky en archivo de categoría */
body.category .filter-bar {
  top: calc(var(--blog-header-sticky-h) + 52px);
}
.filter-bar-inner {
  max-width: 1220px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 0; gap: 16px; flex-wrap: wrap;
}
.filter-left { display: flex; align-items: center; gap: 8px; }
.filter-label { font-size: 12px; font-weight: 700; color: var(--text-xlight); text-transform: uppercase; letter-spacing: 0.07em; }
.filter-pill {
  font-size: 13px; font-weight: 600; padding: 5px 14px;
  border-radius: var(--radius-pill); border: 1.5px solid var(--border);
  cursor: pointer; color: var(--text-light); background: var(--bg);
  transition: all 0.2s;
}
.filter-pill:hover { border-color: var(--teal); color: var(--teal); }
.filter-pill.active { background: var(--navy); color: var(--white); border-color: var(--navy); }
a.filter-pill { text-decoration: none; color: inherit; }
.filter-right { display: flex; align-items: center; gap: 10px; }
.filter-sort-label { font-size: 13px; color: var(--text-xlight); }
.filter-select {
  font-size: 13px; font-weight: 600; color: var(--navy);
  border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  padding: 6px 12px; background: var(--white); cursor: pointer;
  font-family: 'Nunito Sans', sans-serif;
}
.filter-results { font-size: 13px; color: var(--text-xlight); margin-left: 4px; }
.filter-results strong { color: var(--navy); }

/* ══════════════════════════════════
   MAIN LAYOUT
══════════════════════════════════ */
.page-wrap { max-width: 1220px; margin: 0 auto; padding: 32px 20px 56px; }
.page-grid { display: grid; grid-template-columns: 1fr 310px; gap: 36px; align-items: start; }

/* ══════════════════════════════════
   FEATURED ARTICLE (top of category)
══════════════════════════════════ */
.featured-article {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden; margin-bottom: 28px;
  display: grid; grid-template-columns: 1fr 1fr;
  transition: border-color 0.2s, box-shadow 0.2s; cursor: pointer;
}
.featured-article:hover { border-color: var(--teal); box-shadow: var(--shadow); }
/* Listado categoría: bloque destacado ancho completo, más presencia que las tarjetas del grid */
.category-featured-post.featured-article {
  border-width: 2px;
  border-color: rgba(2, 62, 88, 0.12);
  box-shadow: 0 6px 28px rgba(2, 62, 88, 0.1);
}
.category-featured-post .fa-thumb { min-height: 260px; }
.no-posts-msg {
  font-size: 15px;
  color: var(--text-light);
  line-height: 1.6;
  margin: 8px 0 24px;
}
.fa-thumb {
  min-height: 240px; display: flex; align-items: center;
  justify-content: center; font-size: 60px;
  background: linear-gradient(135deg, var(--teal-light) 0%, var(--sky-bg) 100%);
  position: relative; overflow: hidden;
}
.fa-thumb > .fa-thumb-img { z-index: 0; }
.fa-thumb-badge {
  position: absolute; top: 14px; left: 14px; z-index: 1;
  background: var(--teal); color: white; font-size: 10px; font-weight: 800;
  padding: 4px 12px; border-radius: var(--radius-pill);
  text-transform: uppercase; letter-spacing: 0.05em;
}
.fa-body { padding: 28px; display: flex; flex-direction: column; justify-content: center; }
.fa-cat { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; color: var(--teal); margin-bottom: 10px; }
.fa-title {
  font-family: 'Nunito', sans-serif; font-size: 20px; font-weight: 800;
  color: var(--navy); line-height: 1.35; margin-bottom: 12px;
}
.fa-excerpt { font-size: 14px; color: var(--text-light); line-height: 1.65; margin-bottom: 18px; }
.fa-footer { display: flex; align-items: center; gap: 14px; }
.fa-author { display: flex; align-items: center; gap: 8px; }
.fa-avatar { width: 28px; height: 28px; border-radius: 50%; background: var(--teal); display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 800; color: white; }
.fa-author-name { font-size: 13px; font-weight: 700; color: var(--navy); }
.fa-meta { font-size: 12px; color: var(--text-xlight); }
.fa-read-btn {
  margin-left: auto; display: inline-flex; align-items: center; gap: 6px;
  background: var(--navy); color: white; font-size: 13px; font-weight: 700;
  padding: 9px 18px; border-radius: var(--radius-pill); border: none; cursor: pointer;
  transition: all 0.2s;
}
.fa-read-btn:hover { background: var(--teal); gap: 10px; }

/* ══════════════════════════════════
   ARTICLES GRID
══════════════════════════════════ */
.section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.section-label { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-xlight); display: flex; align-items: center; gap: 8px; }
.section-label::before { content: ''; width: 3px; height: 14px; border-radius: 2px; background: var(--teal); }

.articles-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-bottom: 24px; }
.article-card {
  background: var(--white); border-radius: var(--radius);
  border: 1px solid var(--border); overflow: hidden;
  cursor: pointer; transition: border-color 0.2s, transform 0.18s, box-shadow 0.18s; display: block;
}
.article-card:hover { border-color: var(--teal); transform: translateY(-3px); box-shadow: var(--shadow); }
.ac-thumb { height: 148px; display: flex; align-items: center; justify-content: center; font-size: 38px; position: relative; overflow: hidden; }
.ac-stripe { position: absolute; bottom: 0; left: 0; right: 0; height: 3px; }
.ac-body { padding: 16px; }
.ac-tag { font-size: 10px; font-weight: 800; padding: 3px 10px; border-radius: var(--radius-pill); margin-bottom: 10px; display: inline-block; text-transform: uppercase; letter-spacing: 0.04em; background: var(--teal-light); color: var(--teal-dark); }
.ac-title { font-size: 14px; font-weight: 700; line-height: 1.45; color: var(--navy); margin-bottom: 10px; }
.ac-excerpt { font-size: 13px; color: var(--text-light); line-height: 1.6; margin-bottom: 12px; }
.ac-footer { display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--border); padding-top: 10px; }
.ac-date { font-size: 11px; color: var(--text-xlight); }
.ac-time { font-size: 11px; font-weight: 700; color: var(--teal); background: var(--teal-light); padding: 2px 8px; border-radius: var(--radius-pill); }

/* PAGINATION */
.pagination { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 8px; }
.page-btn {
  width: 38px; height: 38px; border-radius: var(--radius-sm);
  border: 1.5px solid var(--border); background: var(--white);
  font-size: 14px; font-weight: 700; color: var(--text-light);
  cursor: pointer; transition: all 0.2s; display: flex; align-items: center; justify-content: center;
}
.page-btn:hover { border-color: var(--teal); color: var(--teal); background: var(--teal-light); }
.page-btn.active { background: var(--navy); color: var(--white); border-color: var(--navy); }
.page-btn.arrow { font-size: 16px; }
.page-dots { color: var(--text-xlight); font-size: 14px; font-weight: 700; padding: 0 4px; }

/* ══════════════════════════════════
   SIDEBAR
══════════════════════════════════ */
.sb-sticky { position: sticky; top: 86px; }
.sb-widget { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; margin-bottom: 18px; }
.sb-title { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.09em; color: var(--text-xlight); margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 7px; }
.sb-title::before { content: ''; width: 3px; height: 12px; border-radius: 2px; background: var(--teal); }

/* CTA WIDGET */
.cta-widget { background: var(--navy); border-radius: var(--radius); padding: 22px 18px; margin-bottom: 18px; text-align: center; position: relative; overflow: hidden; }
.cta-deco { position: absolute; top: -30px; right: -30px; width: 100px; height: 100px; border-radius: 50%; background: rgba(0,120,133,0.2); }
.cta-deco2 { position: absolute; bottom: -20px; left: -20px; width: 70px; height: 70px; border-radius: 50%; background: rgba(180,211,228,0.10); }
.cta-icon-wrap { width: 44px; height: 44px; border-radius: 11px; background: var(--teal); margin: 0 auto 12px; display: flex; align-items: center; justify-content: center; font-size: 20px; position: relative; z-index: 2; }
.cta-heading { color: white; font-family: 'Nunito', sans-serif; font-size: 16px; font-weight: 800; margin-bottom: 8px; position: relative; z-index: 2; line-height: 1.3; }
.cta-sub { color: rgba(255,255,255,0.5); font-size: 12px; line-height: 1.6; margin-bottom: 16px; position: relative; z-index: 2; }
.cta-btn { width: 100%; padding: 11px; background: var(--red); color: white; border: none; border-radius: var(--radius-pill); font-family: 'Nunito Sans', sans-serif; font-size: 13px; font-weight: 800; cursor: pointer; transition: background 0.2s; position: relative; z-index: 2; }
.cta-btn:hover { background: var(--red-light); }
.cta-note { font-size: 11px; color: rgba(255,255,255,0.3); margin-top: 8px; position: relative; z-index: 2; }

/* OTHER CATEGORIES */
.other-cats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.oc-card {
  border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  padding: 10px 10px; cursor: pointer; transition: all 0.2s; text-align: center;
  background: var(--bg);
}
.oc-card:hover { border-color: var(--teal); background: var(--teal-light); }
a.oc-card { text-decoration: none; color: inherit; display: block; }
.oc-icon { font-size: 20px; margin-bottom: 4px; }
.oc-name { font-size: 11px; font-weight: 700; color: var(--navy); line-height: 1.3; }

/* MOST READ */
.mr-item { display: flex; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--border); cursor: pointer; }
.mr-item:last-child { border-bottom: none; padding-bottom: 0; }
.mr-item:hover .mr-title { color: var(--teal); }
a.mr-item { text-decoration: none; color: inherit; }
a.mr-item:hover .mr-num { color: var(--teal-mid); }
.mr-num { font-family: 'Nunito', sans-serif; font-size: 20px; font-weight: 800; color: var(--border); min-width: 28px; line-height: 1; }
.mr-title { font-size: 13px; font-weight: 700; color: var(--navy); line-height: 1.4; transition: color 0.2s; margin-bottom: 3px; }
.mr-cat { font-size: 11px; color: var(--teal); font-weight: 600; }

/* NEWSLETTER */
.nl-desc { font-size: 13px; color: var(--text-light); line-height: 1.6; margin-bottom: 14px; }
.nl-input { width: 100%; padding: 10px 14px; border-radius: var(--radius-sm); border: 1.5px solid var(--border); font-family: 'Nunito Sans', sans-serif; font-size: 14px; color: var(--text); background: var(--bg); margin-bottom: 10px; transition: border-color 0.2s; }
.nl-input:focus { outline: none; border-color: var(--teal); background: var(--white); }
.nl-btn { width: 100%; padding: 11px; background: var(--teal); color: var(--white); border: none; border-radius: var(--radius-pill); font-family: 'Nunito Sans', sans-serif; font-size: 14px; font-weight: 700; cursor: pointer; transition: background 0.2s; }
.nl-btn:hover { background: var(--teal-dark); }
.nl-btn:disabled { opacity: 0.75; cursor: not-allowed; }
.nl-legal { font-size: 11px; color: var(--text-xlight); text-align: center; margin-top: 8px; line-height: 1.5; }
.ac-newsletter-form { margin: 0; }
.ac-nl-response { margin-top: 10px; font-size: 13px; line-height: 1.45; min-height: 0; }
.ac-nl-response--success { color: #0d8050; font-weight: 600; }
.ac-nl-response--error { color: #c62828; font-weight: 600; }

/* RESPONSIVE */
@media (max-width: 980px) {
  .page-grid { grid-template-columns: 1fr; }
  .sb-sticky { position: static; }
  .featured-article { grid-template-columns: 1fr; }
  .fa-thumb { min-height: 180px; }
}
@media (max-width: 680px) {
  .topbar { display: none; }
  .category-hero-section h1 { font-size: 24px; }
  .articles-grid { grid-template-columns: 1fr; }
  .ch-service-card { display: none; }
  .ch-stats { flex-wrap: wrap; }
  .filter-bar-inner { gap: 10px; }
  .other-cats-grid { grid-template-columns: repeat(3, 1fr); }
}