/* =============================================================
   Zerimar Blog — Main Stylesheet
   Convención: BEM con prefijo zb-
   ============================================================= */

/* ─── CUSTOM PROPERTIES ─── */
:root {
  --zb-white:       #FFFFFF;
  --zb-black:       #000000;
  --zb-text-body:   #666666;
  --zb-text-head:   #333333;
  --zb-text-dark:   #212121;
  --zb-text-muted:  #767676; /* WCAG AA mínimo 4.5:1 sobre blanco */
  --zb-border:      #DDDDDD;
  --zb-accent-blue: #0672AF; /* WCAG AA 4.65:1 sobre blanco y blanco sobre él */
  --zb-leather:     #6B3A2A;
  --zb-leather-lt:  #C49A6C;
  --zb-bg:          #FAFAFA;

  --zb-font-main:   var(--wp--preset--font-family--poppins, 'Poppins', sans-serif);
  --zb-font-serif:  var(--wp--preset--font-family--editorial, Georgia, 'Times New Roman', serif);

  --zb-container:   1440px;
  --zb-content:     780px;
  --zb-gap:         30px;
}

/* ─── SVG ICONS ─── */
.zb-icon {
  display: inline-block;
  width: 1em;
  height: 1em;
  fill: currentColor;
  vertical-align: -0.125em;
  flex-shrink: 0;
}

/* ─── RESET & BASE ─── */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-padding-top: 80px; }

body {
  font-family: var(--zb-font-main);
  font-size: 13px;
  color: var(--zb-text-body);
  background: var(--zb-white);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; margin: 0; padding: 0; }

/* ─── CONTAINER ─── */
.zb-container {
  max-width: var(--zb-container);
  margin-inline: auto;
  padding-inline: var(--zb-gap);
}

/* ─── BUTTONS ─── */
.zb-btn {
  display: inline-block;
  padding: 12px 40px;
  font-family: var(--zb-font-main);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  border: 1px solid;
  cursor: pointer;
  transition: background .25s, color .25s;
}
.zb-btn--white  { background: #fff; color: #000; border-color: #fff; }
.zb-btn--white:hover  { background: transparent; color: #fff; }
.zb-btn--black  { background: #000; color: #fff; border-color: #000; }
.zb-btn--black:hover  { background: #fff; color: #000; }
.zb-btn--outline { background: transparent; color: #000; border-color: #000; }
.zb-btn--outline:hover { background: #000; color: #fff; }

/* =============================================================
   HEADER
   ============================================================= */
header.wp-block-template-part:has(.zb-header) {
  position: sticky;
  top: 0;
  z-index: 100;
}
.admin-bar header.wp-block-template-part:has(.zb-header) {
  top: 32px;
}

.zb-header {
  height: 80px;
  background: var(--zb-white);
  border-bottom: 1px solid var(--zb-border);
  position: relative;
  display: flex;
  align-items: center;
}

.zb-header__inner {
  width: 100%;
  max-width: var(--zb-container);
  margin-inline: auto;
  padding-inline: var(--zb-gap);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
}

.zb-header__nav .wp-block-navigation__container {
  display: flex;
  gap: 28px;
  align-items: center;
  flex-wrap: nowrap;
}
.zb-header__nav .wp-block-navigation-item__content {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--zb-black);
  letter-spacing: .5px;
  position: relative;
  padding: 0;
}
.zb-header__nav .wp-block-navigation-item__content::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--zb-black);
  transition: width .25s;
}
.zb-header__nav .wp-block-navigation-item:hover .wp-block-navigation-item__content::after,
.zb-header__nav .current-menu-item .wp-block-navigation-item__content::after { width: 100%; }
.zb-header__nav .current-menu-item .wp-block-navigation-item__content { font-weight: 700; }

.zb-header__logo { text-align: center; }
.zb-header__logo-link { display: inline-block; }
.zb-header__logo-img { width: 220px; max-width: 220px; height: auto; display: block; }

.zb-header__right {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: flex-end;
}
.zb-header__search {
  display: flex;
  align-items: center;
  border: 1px solid var(--zb-border);
  height: auto;
  transition: border-color .2s;
}
.zb-header__search:focus-within { border-color: var(--zb-black); }
.zb-header__search-input {
  border: none;
  outline: none;
  background: none;
  padding: 0 12px;
  font-size: 12px;
  font-family: inherit;
  color: var(--zb-text-head);
  width: 200px;
}
.zb-header__search-input::placeholder { color: var(--zb-text-muted); }
.zb-header__search-btn {
  width: 36px;
  height: 34px;
  flex-shrink: 0;
  border: none;
  border-left: 1px solid var(--zb-border);
  background: none;
  cursor: pointer;
  color: var(--zb-text-muted);
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color .2s;
}
.zb-header__search-btn:hover { color: var(--zb-black); }
.zb-header__store-link {
  font-size: 11px;
  font-weight: 600;
  color: var(--zb-black);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  border: 1px solid var(--zb-black);
  padding: 6px 14px;
  transition: background .2s, color .2s;
}
.zb-header__store-link:hover { background: var(--zb-black); color: var(--zb-white); }

/* ── HAMBURGER ── */
.zb-header__left { display: flex; align-items: center; gap: 20px; }
.zb-burger {
  display: flex; flex-direction: column; justify-content: center;
  gap: 5px; width: 40px; height: 40px;
  cursor: pointer; flex-shrink: 0;
  border: none; background: none; padding: 8px 6px;
}
.zb-burger span { display: block; height: 1.5px; background: var(--zb-black); transition: all .25s; }
.zb-burger span:nth-child(2) { width: 75%; }
.zb-burger:hover { opacity: .6; }
.zb-burger.is-open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.zb-burger.is-open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.zb-burger.is-open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ── CATEGORY DROPDOWN ── */
.zb-cat-dropdown {
  position: fixed !important; top: 80px; left: 0 !important; right: 0 !important;
  width: 100% !important; max-width: none !important; margin: 0 !important;
  background: var(--zb-white);
  border-top: 2px solid var(--zb-black);
  border-bottom: 1px solid var(--zb-border);
  box-shadow: 0 8px 32px rgba(0,0,0,.08);
  z-index: 150;
  max-height: 0; overflow: hidden;
  transition: max-height .35s cubic-bezier(.4,0,.2,1);
}
.admin-bar .zb-cat-dropdown { top: 112px; }
.zb-cat-dropdown.is-open { max-height: 300px; }
.zb-cat-dropdown__inner {
  max-width: var(--zb-container); margin-inline: auto;
  padding: 28px var(--zb-gap) 32px;
  display: flex; flex-direction: column;
}
.zb-cat-item {
  display: block; padding: 10px 0;
  border-bottom: 1px solid var(--zb-border);
  font-size: 13px; font-weight: 600;
  color: var(--zb-text-head); text-transform: uppercase; letter-spacing: 1.5px;
  transition: color .2s;
}
.zb-cat-item:first-child { border-top: 1px solid var(--zb-border); }
.zb-cat-item:hover { color: var(--zb-accent-blue); }

/* ── OVERLAY ── */
.zb-overlay {
  position: fixed !important;
  top: 0 !important; left: 0 !important; right: 0 !important; bottom: 0 !important;
  width: 100% !important; height: 100% !important;
  max-width: none !important; margin: 0 !important;
  z-index: 140;
  background: rgba(0,0,0,.35);
  opacity: 0; pointer-events: none;
  transition: opacity .3s;
}
.zb-overlay.is-visible { opacity: 1; pointer-events: all; }

/* ── DRAWER ── */
.zb-drawer {
  position: fixed !important; top: 0 !important; left: 0 !important; bottom: 0 !important;
  right: auto !important; margin: 0 !important;
  width: 320px; max-width: 90vw;
  background: var(--zb-white); z-index: 160;
  transform: translateX(-100%);
  transition: transform .35s cubic-bezier(.4,0,.2,1);
  display: flex; flex-direction: column;
  overflow-y: auto;
}
.zb-drawer.is-open { transform: translateX(0); }
.zb-drawer__header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 20px; height: 64px;
  border-bottom: 1px solid var(--zb-border); flex-shrink: 0;
}
.zb-drawer__title {
  font-size: 11px; font-weight: 700; letter-spacing: 3px;
  text-transform: uppercase; color: var(--zb-text-head);
}
.zb-drawer__close {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 16px; color: var(--zb-text-muted);
  border: 1px solid var(--zb-border); background: none;
  transition: color .2s, border-color .2s;
}
.zb-drawer__close:hover { color: var(--zb-black); border-color: var(--zb-black); }
.zb-drawer__section { padding: 24px 20px 16px; }
.zb-drawer__section-label {
  font-size: 10px; font-weight: 700; letter-spacing: 3px;
  text-transform: uppercase; color: var(--zb-text-muted);
  margin-bottom: 16px; padding-bottom: 10px;
  border-bottom: 1px solid var(--zb-border);
}
.zb-drawer__nav-link,
.zb-drawer__cat-link {
  display: flex; align-items: center; justify-content: space-between;
  padding: 11px 0; font-size: 14px; font-weight: 500;
  color: var(--zb-text-head); border-bottom: 1px solid #f0f0f0;
  transition: color .2s;
}
.zb-drawer__nav-link:last-child,
.zb-drawer__cat-link:last-child { border-bottom: none; }
.zb-drawer__nav-link:hover { color: var(--zb-black); }
.zb-drawer__cat-link:hover { color: var(--zb-accent-blue); }
.zb-drawer__nav-link i,
.zb-drawer__cat-link i { font-size: 11px; color: var(--zb-text-muted); }
.zb-drawer__footer {
  margin-top: auto; padding: 20px;
  border-top: 1px solid var(--zb-border); flex-shrink: 0;
}
.zb-drawer__store-btn {
  display: block; text-align: center;
  background: var(--zb-black); color: var(--zb-white);
  font-size: 11px; font-weight: 600; letter-spacing: 2px;
  text-transform: uppercase; padding: 13px; transition: opacity .2s;
}
.zb-drawer__store-btn:hover { opacity: .8; }

/* =============================================================
   FOOTER
   ============================================================= */
.zb-footer { border-top: 1px solid var(--zb-border); padding-inline: var(--zb-gap); }

.zb-footer__grid {
  display: grid !important;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr 1fr !important;
  gap: 40px;
  padding-block: 60px 48px;
  align-items: start;
}
.zb-footer__brand { padding-right: 40px; }

.zb-footer__logo-text { font-family: var(--zb-font-serif); text-align: left; line-height: 1; margin-bottom: 16px; }
.zb-footer__wordmark { font-size: 20px; font-weight: 700; letter-spacing: 5px; text-transform: uppercase; color: var(--zb-black); display: block; }
.zb-footer__sub { font-size: 10px; font-style: italic; color: var(--zb-black); letter-spacing: 4px; display: block; margin-top: 2px; }
.zb-footer__claim { font-size: 12px; color: var(--zb-text-body); line-height: 1.7; margin-bottom: 20px; }

.zb-footer__social { display: flex; gap: 16px; }
.zb-footer__social a { font-size: 16px; color: var(--zb-text-body); transition: color .2s; }
.zb-footer__social a:hover { color: var(--zb-black); }

.zb-footer__col .wp-block-navigation__container { display: flex; flex-direction: column; gap: 0; }
.zb-footer__nav .wp-block-navigation-item__content { font-size: 13px; color: var(--zb-text-body); padding: 0 0 10px; display: block; transition: color .2s; }
.zb-footer__nav .wp-block-navigation-item__content:hover { color: var(--zb-black); }
.zb-footer__nav .wp-block-navigation-item:first-child .wp-block-navigation-item__content { font-size: 13px; font-weight: 500; color: var(--zb-text-head); padding-bottom: 10px; margin-bottom: 8px; border-bottom: 1px solid var(--zb-border); }

.zb-footer__bottom { border-top: 1px solid var(--zb-border); padding-block: 20px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.zb-footer__contact { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; }
.zb-footer__contact span { font-size: 12px; color: var(--zb-text-muted); }
.zb-footer__contact i { margin-right: 6px; }
.zb-footer__contact a { color: var(--zb-text-muted); transition: color .2s; }
.zb-footer__contact a:hover { color: var(--zb-black); }
.zb-footer__copy { font-size: 12px; color: var(--zb-text-muted); }

/* =============================================================
   UTILITIES
   ============================================================= */
.zb-section { padding-block: 60px; }
.zb-section-header { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 36px; padding-bottom: 16px; border-bottom: 1px solid var(--zb-border); }
.zb-section-title { font-size: 12px; font-weight: 600; color: var(--zb-text-head); text-transform: uppercase; letter-spacing: 3px; }
.zb-section-link { font-size: 12px; color: var(--zb-text-muted); text-transform: uppercase; letter-spacing: 1px; border-bottom: 1px solid var(--zb-border); padding-bottom: 2px; transition: color .2s, border-color .2s; }
.zb-section-link:hover { color: var(--zb-black); border-color: var(--zb-black); }

/* =============================================================
   ARTICLE CARD
   ============================================================= */
.zb-card { cursor: pointer; }
.zb-card:hover .zb-card__img img { transform: scale(1.04); }
.zb-card:hover .zb-card__title { color: var(--zb-text-muted); }
.zb-card__img { overflow: hidden; margin-bottom: 18px; aspect-ratio: 4/3; position: relative; }
.zb-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.25,.46,.45,.94); }
.zb-card__badge { position: absolute; top: 0; left: 14px; z-index: 1; background: var(--zb-accent-blue); color: #fff; font-size: 10px; font-weight: 700; padding: 3px 8px; text-transform: uppercase; letter-spacing: 1px;  }
.zb-card__badge--black { background: var(--zb-black); }
.zb-card__badge--green { background: #1a7a4a; }
.zb-card__body { padding: 0 2px; }
.zb-card__category { font-size: 11px; font-weight: 600; color: var(--zb-accent-blue); text-transform: uppercase; letter-spacing: 2px; margin-bottom: 8px; display: block; }
.zb-card__category a[rel="tag"],
.zb-card__badge a[rel="tag"] { display: inline-block; padding-block: 5px; }
.zb-card__title { font-size: 15px; font-weight: 500; color: var(--zb-text-head); line-height: 1.4; margin-bottom: 10px; transition: color .2s; }
.zb-card__excerpt { font-size: 13px; color: var(--zb-text-body); line-height: 1.55; margin-bottom: 14px; }
.zb-card__meta { font-size: 12px; color: var(--zb-text-muted); display: flex; gap: 12px; align-items: center; }
.zb-card__meta-sep { color: var(--zb-border); }
.zb-card__author, .zb-card__author a { color: var(--zb-text-muted); transition: color .2s; }
.zb-card__author:hover, .zb-card__author a:hover { color: var(--zb-text-head); }
.zb-card--featured .zb-card__img { aspect-ratio: 16/10; }
.zb-card--featured .zb-card__title { font-size: 18px; }

.zb-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--zb-gap); }
.zb-featured-grid { display: grid !important; grid-template-columns: 7fr 5fr !important; gap: 30px; align-items: start; margin-bottom: 30px; }
.zb-featured-main { grid-column: 1; min-width: 0; }
.zb-featured-side { grid-column: 2; display: flex !important; flex-direction: column; gap: 24px; min-width: 0; }
.zb-featured-main .zb-card__img { aspect-ratio: 16/10; }
.zb-featured-side .zb-card__img { aspect-ratio: 16/9; }
.zb-featured-side .zb-card__title { font-size: 14px; }

/* =============================================================
   CATEGORY TABS
   ============================================================= */
.zb-cat-tabs { display: flex; gap: 0; margin-bottom: 32px; border-bottom: 1px solid var(--zb-border); overflow-x: auto; scrollbar-width: none; }
.zb-cat-tabs::-webkit-scrollbar { display: none; }
.zb-cat-tab { font-size: 12px; font-weight: 400; color: #767676; text-transform: uppercase; letter-spacing: 1.5px; padding: 8px 16px; cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; transition: color .2s, border-color .2s; white-space: nowrap; }
.zb-cat-tab.is-active, .zb-cat-tab:hover { color: var(--zb-black); }
.zb-cat-tab.is-active { border-bottom-color: var(--zb-black); font-weight: 600; }

/* =============================================================
   NEWSLETTER STRIP
   ============================================================= */
.zb-newsletter { background: var(--zb-text-head); padding-block: 50px; }
.zb-newsletter__inner { display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.zb-newsletter__copy h3 { font-size: 20px; font-weight: 600; color: #fff; margin-bottom: 6px; font-family: var(--zb-font-serif); }
.zb-newsletter__copy p { font-size: 13px; color: rgba(255,255,255,.6); }
.zb-newsletter__form { display: flex; gap: 0; min-width: 380px; }
.zb-newsletter__input { flex: 1; padding: 12px 20px; font-family: var(--zb-font-main); font-size: 13px; border: 1px solid rgba(255,255,255,.25); border-right: none; background: rgba(255,255,255,.08); color: #fff; outline: none; }
.zb-newsletter__input::placeholder { color: rgba(255,255,255,.4); }
.zb-newsletter__submit { padding: 12px 28px; background: #fff; color: #000; border: 1px solid #fff; font-family: var(--zb-font-main); font-size: 11px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; cursor: pointer; transition: background .2s, color .2s; }
.zb-newsletter__submit:hover { background: transparent; color: #fff; }

/* =============================================================
   HERO BANNER
   ============================================================= */
/* Anular el margin-block-start: 24px que aplica el core
   con :where(.wp-site-blocks) > * al hero de la home */
.zb-home-hero { margin-block-start: 0 !important; }

.zb-hero { position: relative; width: 100%; height: 75vh; min-height: 520px; overflow: hidden; }
.zb-hero__img { width: 100%; height: 100%; object-fit: cover; }
.zb-hero__overlay { position: absolute; inset: 0; background: linear-gradient(to right, rgba(0,0,0,.65) 0%, rgba(0,0,0,.2) 60%, rgba(0,0,0,0) 100%); }

/* Neutralizar el inner-container del wp:cover para que .zb-hero__content
   se posicione absolute relativo al cover wrapper (.zb-hero) */
.zb-hero.wp-block-cover .wp-block-cover__inner-container {
  position: static;
  padding: 0;
  max-width: none;
  width: 100%;
  height: 100%;
}

.zb-hero__content { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; justify-content: flex-end; padding: 0 80px 60px; max-width: 720px; }
.zb-hero__tag { font-size: 12px; font-weight: 600; color: rgba(255,255,255,.75); text-transform: uppercase; letter-spacing: 4px; margin-bottom: 18px; display: flex; align-items: center; gap: 12px; }
.zb-hero__tag::before { content: ''; width: 30px; height: 1px; background: rgba(255,255,255,.5); }
.zb-hero__title { font-size: clamp(32px, 4vw, 55px); font-weight: 700; color: #fff; line-height: 1.1; margin-bottom: 16px; max-width: 560px; }
.zb-hero__excerpt { font-size: 14px; color: rgba(255,255,255,.75); line-height: 1.6; margin-bottom: 32px; max-width: 480px; display: block; }
.zb-hero__dots { position: absolute; bottom: 28px; right: 80px; z-index: 2; display: flex; gap: 8px; }
.zb-hero__dot { width: 24px; height: 2px; background: rgba(255,255,255,.4); transition: all .3s; }
.zb-hero__dot.is-active { background: #fff; width: 40px; }

/* =============================================================
   BREADCRUMB
   ============================================================= */
.zb-breadcrumb { padding-block: 18px; border-bottom: 1px solid var(--zb-border); }
.zb-breadcrumb ol { display: flex; gap: 8px; align-items: center; font-size: 12px; color: var(--zb-text-muted); list-style: none; margin: 0; padding: 0; }
.zb-breadcrumb ol li + li::before { content: ' > '; color: var(--zb-border); }
.zb-breadcrumb a:hover { color: var(--zb-black); }

/* =============================================================
   PAGINATION
   ============================================================= */
.zb-pagination { display: flex; align-items: center; justify-content: center; gap: 6px; padding-top: 48px; }
.zb-pagination__num { width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; font-size: 13px; color: var(--zb-text-body); border: 1px solid transparent; transition: border-color .2s, color .2s; }
.zb-pagination__num:hover { border-color: var(--zb-border); color: var(--zb-black); }
.zb-pagination__num.is-active { border-color: var(--zb-black); color: var(--zb-black); font-weight: 600; }

/* =============================================================
   SINGLE ARTICLE
   ============================================================= */
.zb-article-hero { width: 100%; height: 55vh; min-height: 380px; object-fit: cover; }
.zb-article-wrap { max-width: var(--zb-content); margin-inline: auto; padding-inline: var(--zb-gap); }
.zb-article-header { padding-block: 36px 12px; }
.zb-article-header h1 { font-size: clamp(24px, 3vw, 32px); font-weight: 500; color: var(--zb-text-head); line-height: 1.3; margin-bottom: 20px; }
.zb-article-meta { display: flex; gap: 20px; align-items: center; font-size: 12px; color: var(--zb-text-muted); padding-bottom: 28px; border-bottom: 1px solid var(--zb-border); flex-wrap: wrap; }
.zb-article-author { display: flex; align-items: center; gap: 8px; }
.zb-author-avatar { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }
.zb-article-body { padding-block: 36px; }
.zb-article-body p { font-size: 14px; color: var(--zb-text-body); line-height: 1.8; margin-bottom: 24px; }
.zb-article-body h2 { font-size: 22px; font-weight: 600; color: var(--zb-text-head); margin: 40px 0 18px; line-height: 1.3; }
.zb-lead { font-size: 16px; font-weight: 400; color: var(--zb-text-head); line-height: 1.7; margin-bottom: 32px; border-left: 3px solid var(--zb-leather-lt); padding-left: 24px; }

/* =============================================================
   AUTHOR PAGE
   ============================================================= */
.zb-author-hero { background: #F7F4F0; border-bottom: 1px solid var(--zb-border); padding-top: 60px; }

/* Grid: 220px (foto+stats) | 1fr (texto) */
.zb-author-hero__inner {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 56px;
  align-items: start;
  max-width: 960px;
  margin-inline: auto;
  padding-inline: var(--zb-gap);
}

/* ── Columna izquierda ── */
.zb-author-hero__left { display: flex; flex-direction: column; }

/* Foto + badge absoluto al borde inferior */
.zb-author-hero__photo {
  position: relative;
  width: 180px; height: 180px;
  flex-shrink: 0;
}
.zb-author-photo { width: 180px; height: 180px; object-fit: cover; display: block; }
.zb-author-photo--fallback {
  width: 180px; height: 180px;
  background: var(--zb-leather); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 64px; font-weight: 600; line-height: 1;
}
/* Badge pegado al borde inferior de la foto */
.zb-author-hero__role {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: var(--zb-black); color: #fff;
  font-size: 9px; font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase; text-align: center; padding: 6px 4px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* Stats bajo la foto */
.zb-author-stats {
  display: flex;
  gap: 0;
  justify-content: space-between;
  border-top: 1px solid var(--zb-border);
  padding-top: 16px; margin-top: 16px;
  width: 180px;
}
.zb-author-stat { text-align: center; flex: 1; }
.zb-author-stat__num { font-size: 20px; font-weight: 700; color: var(--zb-text-head); display: block; line-height: 1; }
.zb-author-stat__label { font-size: 9px; color: var(--zb-text-muted); text-transform: uppercase; letter-spacing: 1px; margin-top: 4px; display: block; }

/* Socials bajo stats */
.zb-author-socials { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 16px; }
.zb-author-socials a { width: 34px; height: 34px; border: 1px solid var(--zb-border); display: flex; align-items: center; justify-content: center; color: var(--zb-text-body); font-size: 14px; transition: border-color .2s, color .2s, background .2s; }
.zb-author-socials a:hover { border-color: var(--zb-black); color: var(--zb-black); background: #f5f5f5; }

/* ── Columna derecha ── */
.zb-author-hero__right { padding-bottom: 40px; padding-top: 6px; }
.zb-author-hero__name { font-size: 32px; font-weight: 600; color: var(--zb-text-head); line-height: 1.1; margin-bottom: 8px; }
.zb-author-hero__title { font-size: 13px; color: var(--zb-text-muted); font-style: italic; margin-bottom: 20px; }
.zb-author-bio-text { font-size: 14px; color: var(--zb-text-body); line-height: 1.7; margin-bottom: 0; }

/* ── Clase legacy (usada en shortcode de bio de artículo) ── */
.zb-author-role-badge { display: inline-block; background: var(--zb-black); color: #fff; font-size: 10px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; padding: 5px 14px; }

/* =============================================================
   SCROLL ANIMATION
   ============================================================= */
.zb-fade-up { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.zb-fade-up.is-visible { opacity: 1; transform: translateY(0); }

/* =============================================================
   RESPONSIVE
   ============================================================= */
@media (max-width: 1200px) {
  .zb-footer__grid { grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr 1fr !important; }
  .zb-footer__brand { padding-right: 24px; }
}

@media (max-width: 1024px) {
  .zb-grid-3 { grid-template-columns: repeat(2, 1fr); }
  .zb-featured-grid { grid-template-columns: 1fr !important; }
  /* Resetear grid-column explícito para que los hijos se apilen correctamente */
  .zb-featured-main { grid-column: auto; }
  .zb-featured-side { grid-column: auto; flex-direction: row; }
  .zb-footer__grid { grid-template-columns: 1fr 1fr !important; gap: 32px; }
  .zb-footer__brand { grid-column: 1 / -1; padding-right: 0; border-bottom: 1px solid var(--zb-border); padding-bottom: 32px; }
  .zb-newsletter__inner { flex-direction: column; gap: 24px; }
  .zb-newsletter__form { min-width: 0; width: 100%; flex-direction: column; }
  .zb-newsletter__input { border-right: 1px solid rgba(255,255,255,.25); border-bottom: none; }
  .zb-newsletter__submit { width: 100%; }
  .zb-hero__content { padding: 0 48px 48px; }
}

@media (max-width: 768px) {
  /* Header */
  .zb-header__nav { display: none !important; }
  .zb-header__nav .wp-block-navigation__container { display: none !important; }
  .zb-header__store-link { display: none; }
  .zb-header__logo-img { width: 140px; max-width: 140px; }
  .zb-header__search-input { display: none; }
  .zb-header__search { border: none; background: transparent; padding: 0; gap: 0; }
  .zb-header__search-btn { border-left: none; color: var(--zb-black); }
  .zb-header__search.is-open { position: absolute !important; top: 100% !important; left: 0 !important; right: 0 !important; width: 100% !important; max-width: none !important; margin: 0 !important; background: var(--zb-white); border-bottom: 1px solid var(--zb-border); padding: 12px var(--zb-gap) 16px; display: flex !important; gap: 0; align-items: stretch; z-index: 200; box-sizing: border-box; }
  .zb-header__search.is-open .zb-header__search-input { display: block; flex: 1; border: 1px solid var(--zb-border); border-right: none; padding: 6px 14px 6px 14px; font-size: 13px; line-height: 1; }
  .zb-header__search.is-open .zb-header__search-btn { display: flex; align-items: center; justify-content: center; border: 1px solid var(--zb-border); border-left: none; width: 42px; padding: 0; line-height: 1; }
  .zb-header__left { gap: 0; }

  /* Grids */
  .zb-grid-3 { grid-template-columns: 1fr; }
  .zb-featured-side { flex-direction: column; }

  /* Hero banner */
  .zb-hero { min-height: 400px; }
  .zb-hero__content { padding: 24px 20px 36px; }
  .zb-hero__excerpt { display: none; }

  /* Article hero image */
  .zb-article-hero { min-height: 260px; height: 40vh; }

  /* Section padding */
  .zb-section { padding-block: 40px; }

  /* Author hero */
  .zb-author-hero { padding-top: 36px; }
  .zb-author-hero__inner { grid-template-columns: 1fr; }
  .zb-author-hero__name { font-size: 26px; }

  /* Content areas */
  .zb-search-content .zb-container,
  .zb-cat-content .zb-container { padding-block: 36px 56px; }

  /* Search */
  .zb-search-header__inner { padding-block: 32px 28px; }
  .zb-search-header__query { font-size: 26px; }
  .zb-search-refine { max-width: 100%; }
  .zb-search-refine button span { display: none; }

  /* Category */
  .zb-cat-hero__title { font-size: 30px; }

  /* 404 */
  .zb-404__number { font-size: 100px; }
  .zb-404 { padding-block: 56px 72px; }
}

@media (max-width: 600px) {
  .zb-footer__grid { grid-template-columns: 1fr !important; }
  .zb-footer__brand { grid-column: auto; }
}

/* =============================================================
   SEARCH TEMPLATE
   ============================================================= */
.zb-search-content .zb-container,
.zb-cat-content .zb-container { padding-block: 48px 80px; }

.zb-search-header {
  background: var(--zb-bg);
  border-bottom: 1px solid var(--zb-border);
  padding-block: 48px 40px;
}
.zb-search-header__inner {
  max-width: var(--zb-container); margin-inline: auto;
  padding-inline: var(--zb-gap);
  display: flex; flex-direction: column; gap: 20px;
}
.zb-search-header__label {
  font-size: 11px; font-weight: 600; letter-spacing: 3px;
  text-transform: uppercase; color: var(--zb-text-muted);
}
.zb-search-header__query {
  font-family: var(--zb-font-serif); font-size: 36px;
  font-weight: 400; color: var(--zb-text-head); line-height: 1.2;
}
.zb-search-header__count { font-size: 13px; font-weight: 600; color: var(--zb-text-head); }
.zb-search-header__count--none { font-weight: 400; color: var(--zb-text-muted); }

.zb-search-refine {
  display: flex; align-items: center;
  border: 1px solid var(--zb-border); height: 44px;
  max-width: 480px; background: var(--zb-white);
  transition: border-color .2s;
}
.zb-search-refine:focus-within { border-color: var(--zb-black); }
.zb-search-refine input {
  flex: 1; border: none; outline: none; background: none;
  padding: 0 16px; font-size: 13px; font-family: inherit; color: var(--zb-text-head);
}
.zb-search-refine input::placeholder { color: var(--zb-text-muted); }
.zb-search-refine button {
  padding: 0 20px; height: 42px; border: none; border-left: 1px solid var(--zb-border);
  background: none; cursor: pointer; color: var(--zb-text-muted);
  font-family: inherit; font-size: 11px; font-weight: 600;
  letter-spacing: 1px; text-transform: uppercase;
  display: flex; align-items: center; gap: 8px; transition: color .2s;
}
.zb-search-refine button:hover { color: var(--zb-black); }

.zb-no-results { text-align: center; padding-block: 80px 60px; }
.zb-no-results__icon { font-size: 48px; color: var(--zb-border); margin-bottom: 24px; }
.zb-no-results__title {
  font-family: var(--zb-font-serif); font-size: 22px; font-weight: 400;
  color: var(--zb-text-head); margin-bottom: 12px;
}
.zb-no-results__text { font-size: 14px; color: var(--zb-text-muted); margin-bottom: 36px; }
.zb-no-results__search {
  display: flex; align-items: center; border: 1px solid var(--zb-border);
  height: 48px; max-width: 420px; margin-inline: auto; transition: border-color .2s;
}
.zb-no-results__search:focus-within { border-color: var(--zb-black); }
.zb-no-results__search input { flex: 1; border: none; outline: none; padding: 0 16px; font-size: 13px; font-family: inherit; color: var(--zb-text-head); }
.zb-no-results__search input::placeholder { color: var(--zb-text-muted); }
.zb-no-results__search button {
  width: 48px; height: 46px; border: none; border-left: 1px solid var(--zb-border);
  background: none; cursor: pointer; color: var(--zb-text-muted); font-size: 14px;
  display: flex; align-items: center; justify-content: center; transition: color .2s;
}
.zb-no-results__search button:hover { color: var(--zb-black); }
.zb-no-results__cats { margin-top: 56px; }
.zb-no-results__cats-label {
  font-size: 11px; font-weight: 600; letter-spacing: 3px;
  text-transform: uppercase; color: var(--zb-text-muted); margin-bottom: 16px;
}
.zb-no-results__cat-list { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.zb-no-results__cat {
  padding: 8px 20px; border: 1px solid var(--zb-border);
  font-size: 12px; font-weight: 600; text-transform: uppercase;
  letter-spacing: 1.5px; color: var(--zb-text-head); transition: border-color .2s;
}
.zb-no-results__cat:hover { border-color: var(--zb-black); }

/* =============================================================
   CATEGORY TEMPLATE
   ============================================================= */
.zb-cat-hero { border-bottom: 1px solid var(--zb-border); padding-block: 48px 0; }
.zb-cat-hero__inner {
  max-width: var(--zb-container); margin-inline: auto; padding-inline: var(--zb-gap);
}
.zb-cat-hero__badge {
  display: inline-block; background: var(--zb-accent-blue); color: #fff;
  font-size: 10px; font-weight: 700; letter-spacing: 1px;
  text-transform: uppercase; padding: 3px 10px; margin-bottom: 16px;
}
.zb-cat-hero__badge--black { background: var(--zb-black); }
.zb-cat-hero__title {
  font-family: var(--zb-font-serif); font-size: 42px; font-weight: 400;
  color: var(--zb-text-head); line-height: 1.15; margin-bottom: 14px;
}
.zb-cat-hero__desc {
  font-size: 14px; color: var(--zb-text-muted); line-height: 1.65;
  max-width: 560px; margin-bottom: 28px;
}
.zb-cat-hero__meta {
  font-size: 12px; color: var(--zb-text-muted);
  padding-bottom: 24px; border-bottom: 1px solid var(--zb-border);
}
.zb-cat-hero__meta strong { font-size: 20px; font-weight: 600; color: var(--zb-text-head); margin-right: 4px; }

/* =============================================================
   404 TEMPLATE
   ============================================================= */
.zb-404-wrap { max-width: var(--zb-container); margin-inline: auto; padding-inline: var(--zb-gap); }
.zb-404 { text-align: center; padding-block: 80px 100px; }
.zb-404__number {
  font-family: var(--zb-font-serif); font-size: 160px; font-weight: 400;
  color: #ebebeb; line-height: 1; letter-spacing: -4px; user-select: none;
}
.zb-404__title {
  font-family: var(--zb-font-serif); font-size: 28px; font-weight: 400;
  color: var(--zb-text-head); margin-bottom: 14px; margin-top: -20px;
}
.zb-404__text {
  font-size: 14px; color: var(--zb-text-muted); line-height: 1.65;
  max-width: 420px; margin-inline: auto; margin-bottom: 40px;
}
.zb-404__search {
  display: flex; align-items: center; border: 1px solid var(--zb-border);
  height: 48px; max-width: 420px; margin-inline: auto; transition: border-color .2s;
}
.zb-404__search:focus-within { border-color: var(--zb-black); }
.zb-404__search input { flex: 1; border: none; outline: none; padding: 0 16px; font-size: 13px; font-family: inherit; color: var(--zb-text-head); }
.zb-404__search input::placeholder { color: var(--zb-text-muted); }
.zb-404__search button {
  width: 48px; height: 46px; border: none; border-left: 1px solid var(--zb-border);
  background: none; cursor: pointer; color: var(--zb-text-muted); font-size: 14px;
  display: flex; align-items: center; justify-content: center; transition: color .2s;
}
.zb-404__search button:hover { color: var(--zb-black); }
.zb-404__divider {
  display: flex; align-items: center; gap: 16px;
  max-width: 420px; margin: 32px auto;
}
.zb-404__divider::before,
.zb-404__divider::after { content: ''; flex: 1; height: 1px; background: var(--zb-border); }
.zb-404__divider span { font-size: 11px; color: var(--zb-text-muted); letter-spacing: 2px; text-transform: uppercase; white-space: nowrap; }
.zb-404__cats { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; max-width: 560px; margin-inline: auto; }
.zb-404__cat {
  padding: 9px 20px; border: 1px solid var(--zb-border);
  font-size: 12px; font-weight: 600; text-transform: uppercase;
  letter-spacing: 1.5px; color: var(--zb-text-head); transition: border-color .2s;
}
.zb-404__cat:hover { border-color: var(--zb-black); }
.zb-404__back {
  display: inline-block; margin-top: 40px; font-size: 12px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 2px; color: var(--zb-text-muted);
  border-bottom: 1px solid var(--zb-border); padding-bottom: 2px;
  transition: color .2s, border-color .2s;
}
.zb-404__back:hover { color: var(--zb-black); border-color: var(--zb-black); }

/* =============================================================
   IMAGE FALLBACKS — sin imagen destacada
   ============================================================= */

/* Fondo cuero en cards normales (aspect-ratio 4:3) */
.zb-card__img {
  background: linear-gradient(135deg, #C49A6C 0%, #6B3A2A 100%);
}

/* Fondo cuero oscuro en cards featured (aspect-ratio 16:10) */
.zb-card--featured .zb-card__img,
.zb-featured-main .zb-card__img {
  background: linear-gradient(135deg, #2C1810 0%, #5C3521 40%, #8B5E3C 100%);
}

/* Fondo cuero en featured-side (aspect-ratio 16:9) */
.zb-featured-side .zb-card__img {
  background: linear-gradient(135deg, #8B6348 0%, #C49A6C 100%);
}

/* La imagen, si existe, ocupa toda la celda */
.zb-card__img .wp-block-post-featured-image,
.zb-card__img .wp-block-post-featured-image a {
  display: block;
  width: 100%;
  height: 100%;
}
.zb-card__img .wp-block-post-featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Hero: fallback cuando no hay imagen destacada */
.zb-hero.wp-block-cover {
  background: linear-gradient(135deg, #2C1810 0%, #5C3521 30%, #8B5E3C 60%, #C49A6C 100%);
}

/* Hero de artículo individual */
.zb-single-hero .wp-block-post-featured-image {
  width: 100%;
  height: 55vh;
  min-height: 380px;
  display: block;
  overflow: hidden;
}
.zb-single-hero .wp-block-post-featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* Fallback sin imagen en single */
.zb-single-hero .wp-block-post-featured-image:not(:has(img)) {
  background: linear-gradient(145deg, #3D1F0F 0%, #7A4A28 40%, #B5845A 80%, #D4A574 100%);
}

/* =============================================================
   SINGLE ARTICLE — estilos específicos
   ============================================================= */
.zb-article-container {
  max-width: 780px;
  margin-inline: auto;
  padding-inline: 30px;
}

.zb-article-header { padding-block: 48px 36px; }

.zb-article-header .zb-article-category {
  font-size: 11px;
  font-weight: 600;
  color: var(--zb-accent-blue);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 16px;
  display: block;
}
.zb-article-header .zb-article-category a {
  color: inherit;
}

.zb-article-header .wp-block-post-title {
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 500;
  color: var(--zb-text-head);
  line-height: 1.3;
  margin-bottom: 20px;
}

.zb-article-meta {
  display: flex;
  gap: 16px;
  align-items: center;
  font-size: 12px;
  color: var(--zb-text-muted);
  padding-bottom: 28px;
  border-bottom: 1px solid var(--zb-border);
  flex-wrap: wrap;
}
.zb-article-meta .zb-meta-author {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  color: var(--zb-text-head);
}
.zb-article-meta .wp-block-avatar img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}
.zb-meta-sep { color: var(--zb-border); }

/* Cuerpo del artículo */
.zb-article-body { padding-block: 36px 0; }
.zb-article-body p {
  font-size: 14px;
  color: var(--zb-text-body);
  line-height: 1.8;
  margin-bottom: 24px;
}
.zb-article-body h2 {
  font-size: 22px;
  font-weight: 600;
  color: var(--zb-text-head);
  margin: 40px 0 18px;
  line-height: 1.3;
}
.zb-article-body h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--zb-text-head);
  margin: 32px 0 14px;
}
.zb-article-body blockquote {
  border-left: 3px solid var(--zb-leather-lt);
  padding-left: 24px;
  margin-left: 0;
  font-size: 16px;
  color: var(--zb-text-head);
  line-height: 1.7;
}
.zb-article-body img { max-width: 100%; height: auto; margin-block: 24px; }

/* Related articles section */
.zb-related-section {
  border-top: 1px solid var(--zb-border);
  padding-block: 60px;
}
.zb-related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 36px;
}
@media (max-width: 900px) {
  .zb-related-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .zb-related-grid { grid-template-columns: 1fr; }
}

/* Author bio al final del artículo */
.zb-author-bio {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  border-top: 1px solid var(--zb-border);
  padding: 28px 0;
  margin-top: 40px;
}
.zb-author-bio__avatar {
  width: 72px;
  height: 72px;
  flex-shrink: 0;
  border-radius: 0;
  object-fit: cover;
}
.zb-author-bio__body { flex: 1; }
.zb-author-bio__name {
  font-size: 15px;
  font-weight: 600;
  color: var(--zb-text-head);
  margin-bottom: 2px;
}
.zb-author-bio__name a { color: inherit; transition: color .2s; }
.zb-author-bio__name a:hover { color: var(--zb-black); }
.zb-author-bio__title {
  font-size: 12px;
  color: var(--zb-text-muted);
  font-style: italic;
  margin-bottom: 8px;
}
.zb-author-bio__text {
  font-size: 13px;
  color: var(--zb-text-body);
  line-height: 1.6;
  margin-bottom: 12px;
}
.zb-author-bio__socials { display: flex; gap: 10px; }
.zb-author-bio__socials a {
  width: 30px;
  height: 30px;
  border: 1px solid var(--zb-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: var(--zb-text-body);
  transition: border-color .2s, color .2s;
}
.zb-author-bio__socials a:hover { border-color: var(--zb-black); color: var(--zb-black); }

/* Breadcrumb — wrapper FSE constrained */
.zb-breadcrumb-bar { margin: 0; padding: 0; }

/* Nav de migas (clase inyectada por shortcode) */
.zb-breadcrumb {
  padding: 0;
  border-bottom: none;
  margin: 0;
  background: var(--zb-white);
}
.zb-breadcrumb ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 4px;
  align-items: center;
  font-size: 12px;
  color: var(--zb-text-muted);
  flex-wrap: wrap;
}
.zb-breadcrumb li + li::before {
  content: '›';
  margin-right: 4px;
  color: #CCCCCC;
  font-size: 13px;
  line-height: 1;
}
.zb-breadcrumb a { color: var(--zb-text-muted); transition: color .2s; }
.zb-breadcrumb a:hover { color: var(--zb-black); }
.zb-breadcrumb li:last-child { color: var(--zb-text-head); }

/* =============================================================
   PRODUCT CTA — grid 2 columnas (mockup)
   ============================================================= */
.zb-product-cta {
  display: grid;
  grid-template-columns: 2fr 3fr;
  border: 1px solid var(--zb-border);
  margin: 40px 0;
}
.zb-product-cta__img {
  background: linear-gradient(135deg, #F5EDE3 0%, #DCC0A0 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1/1;
  font-size: 48px;
  color: var(--zb-leather-lt);
  opacity: .6;
}
.zb-product-cta__body {
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0;
}
.zb-product-cta__label {
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--zb-text-muted);
  margin-bottom: 12px;
}
.zb-product-cta__name {
  font-size: 17px;
  font-weight: 500;
  color: var(--zb-text-head);
  margin-bottom: 8px;
  line-height: 1.3;
}
.zb-product-cta__price {
  font-size: 20px;
  font-weight: 600;
  color: var(--zb-text-dark);
  margin-bottom: 20px;
  display: block;
}
.zb-product-cta .zb-btn--black { align-self: flex-start; }

@media (max-width: 768px) {
  .zb-product-cta {
    grid-template-columns: 1fr;
  }
  .zb-product-cta__img {
    aspect-ratio: 16/7;
  }
}

/* Reading time badge */
.zb-reading-time {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: var(--zb-text-muted);
}

/* Single hero image */
.zb-single__hero-img {
  display: block;
  width: 100%;
  max-height: 60vh;
  overflow: hidden;
}
.zb-single__hero-img img {
  width: 100%;
  height: 60vh;
  object-fit: cover;
}
.zb-single__hero-img.wp-block-post-featured-image:not(:has(img)) {
  height: 40vh;
  min-height: 280px;
  background: linear-gradient(145deg, #3D1F0F 0%, #7A4A28 40%, #B5845A 80%, #D4A574 100%);
}

/* Related wrap padding */
.zb-related-wrap { padding-inline: 30px; }

/* =============================================================
   AUTHOR PAGE — extended styles
   ============================================================= */

/* Tabs bar below hero */
.zb-author-tabs-bar {

  border-top: 1px solid var(--zb-border);
  border-bottom: 1px solid var(--zb-border);
  margin-top: 40px;
}
.zb-author-tabs {
  display: flex; gap: 0;
  max-width: 960px;
  margin-inline: auto;
  padding-inline: var(--zb-gap);
  overflow-x: auto;
  scrollbar-width: none;
  border: none;
}
.zb-author-tabs::-webkit-scrollbar { display: none; }
.zb-author-tabs .zb-cat-tab {
  border-bottom: 2px solid transparent;
  border-radius: 0;
  padding: 16px 20px;
  font-size: 12px; font-weight: 600; letter-spacing: 1.5px;
  white-space: nowrap;
  margin-bottom: -1px;
}
.zb-author-tabs .zb-cat-tab.is-active {
  color: var(--zb-black);
  border-bottom-color: var(--zb-black);
}

/* Author content wrap */
.zb-author-content-wrap {
  max-width: 900px; margin-inline: auto;
  padding-inline: var(--zb-gap); padding-block: 60px;
}

/* Expertise / specialties */
.zb-expertise-section { margin-bottom: 40px; }
.zb-expertise-label {
  font-size: 11px; font-weight: 600; letter-spacing: 3px;
  text-transform: uppercase; color: var(--zb-text-muted);
  margin-bottom: 16px;
}
/* Grid 2 columnas con icono, igual que el mockup */
.zb-expertise-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.zb-expertise-tag {
  display: flex; align-items: center; gap: 10px;
  border: 1px solid var(--zb-border);
  padding: 12px 16px; font-size: 11px; font-weight: 600;
  color: var(--zb-text-body); letter-spacing: 1.5px;
  text-transform: uppercase; background: var(--zb-white);
  transition: border-color .2s, color .2s;
}
.zb-expertise-tag i { color: var(--zb-leather-lt); font-size: 14px; flex-shrink: 0; }
.zb-expertise-tag:hover { border-color: var(--zb-black); color: var(--zb-text-head); }

/* Author articles section title */
.zb-author-articles-header {
  display: flex; justify-content: space-between; align-items: baseline;
  padding-bottom: 20px; border-bottom: 1px solid var(--zb-border);
  margin-bottom: 32px;
}
.zb-author-articles-header h2 {
  font-size: 12px; font-weight: 600; text-transform: uppercase;
  letter-spacing: 3px; color: var(--zb-text-head); margin: 0;
}

/* Author articles grid (3 col inside the constrained wrap) */
.zb-author-query .wp-block-post-template {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 30px !important;
  list-style: none; padding: 0; margin: 0;
}

/* Team section */
.zb-team-section {
  background: #F7F4F0; border-top: 1px solid var(--zb-border);
  padding-block: 60px;
}
.zb-team-section__inner {
  max-width: 900px; margin-inline: auto; padding-inline: var(--zb-gap);
}
.zb-team-section__title {
  font-size: 12px; font-weight: 600; letter-spacing: 3px;
  text-transform: uppercase; color: var(--zb-text-muted);
  margin-bottom: 32px;
}
.zb-team-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
}
.zb-team-card { text-align: center; }
.zb-team-card__photo {
  width: 80px; height: 80px; border-radius: 50%;
  object-fit: cover; margin: 0 auto 12px; display: block;
}
.zb-team-card__photo--fallback {
  width: 80px; height: 80px; border-radius: 50%;
  background: var(--zb-leather-lt); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; font-weight: 600; margin: 0 auto 12px;
}
.zb-team-card__name {
  font-size: 13px; font-weight: 600;
  color: var(--zb-text-head); margin-bottom: 4px;
}
.zb-team-card__role {
  font-size: 11px; color: var(--zb-text-muted); font-style: italic;
}

/* Author page responsive */
@media (max-width: 768px) {
  .zb-author-hero__inner { grid-template-columns: 1fr; gap: 28px; }
  .zb-author-hero__left { flex-direction: row; flex-wrap: wrap; gap: 16px; align-items: flex-start; }
  .zb-author-stats { margin-top: 0; border-top: none; padding-top: 0; border-left: 1px solid var(--zb-border); padding-left: 16px; width: auto; }
  .zb-author-socials { margin-top: 0; width: 100%; }
  .zb-expertise-grid { grid-template-columns: 1fr; }
  .zb-author-query .wp-block-post-template { grid-template-columns: repeat(2, 1fr) !important; }
  .zb-team-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .zb-author-photo, .zb-author-photo--fallback { width: 120px; height: 120px; font-size: 42px; }
  .zb-author-query .wp-block-post-template { grid-template-columns: 1fr !important; }
  .zb-team-grid { grid-template-columns: 1fr; }
  .zb-cat-hero__title { font-size: 26px; }
  .zb-404__number { font-size: 72px; }
  .zb-search-header__query { font-size: 22px; }
  .zb-hero { min-height: 360px; }
}

/* =============================================================
   SINGLE — category label + title (Fixes 4 & 5)
   ============================================================= */
.zb-single__category,
.zb-single__category a {
  font-size: 12px;
  font-weight: 600;
  color: var(--zb-accent-blue);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 16px;
}
.zb-single__title {
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 500;
  color: var(--zb-text-head);
  line-height: 1.3;
  margin-bottom: 20px;
}

/* =============================================================
   SINGLE — lead paragraph (Fix 6)
   ============================================================= */
.zb-lead,
.wp-block-paragraph.zb-lead {
  font-size: 15px !important;
  font-weight: 400;
  color: var(--zb-text-head) !important;
  line-height: 1.75;
  border-left: 3px solid var(--zb-leather-lt) !important;
  padding-left: 24px !important;
  margin-bottom: 32px;
}

/* =============================================================
   AUTHOR AVATAR — meta del artículo individual (Fix 4)
   ============================================================= */
.zb-author-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  vertical-align: middle;
}
.zb-author-avatar--initial {
  background: linear-gradient(135deg, #C49A6C, #6B3A2A);
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  vertical-align: middle;
}
.zb-meta-author {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  color: var(--zb-text-head);
}

/* =============================================================
   TABLE OF CONTENTS — .zb-toc
   ============================================================= */
.zb-toc {
  background: var(--zb-bg-alt, #f8f5f1);
  border-left: 3px solid var(--zb-leather-lt, #C49A6C);
  border-radius: 4px;
  padding: 20px 24px 20px 20px;
  margin: 0 0 36px;
  font-size: 14px;
}
.zb-toc__title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--zb-text-muted, #888);
  margin: 0 0 12px;
}
.zb-toc__list {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: toc-h2;
}
.zb-toc__item--h2 {
  counter-increment: toc-h2;
  counter-reset: toc-h3;
  margin: 6px 0 0;
}
.zb-toc__item--h2::marker { display: none; }
.zb-toc__item--h2 > a::before {
  content: counter(toc-h2) ". ";
  font-weight: 600;
  color: var(--zb-text-head, #1a1a1a);
}
.zb-toc__sub {
  list-style: none;
  margin: 4px 0 4px 16px;
  padding: 0;
  counter-reset: toc-h3;
}
.zb-toc__item--h3 {
  counter-increment: toc-h3;
  margin: 3px 0 0;
}
.zb-toc__item--h3 > a::before {
  content: counter(toc-h2) "." counter(toc-h3) " ";
  color: var(--zb-text-muted, #888);
}
.zb-toc a {
  color: var(--zb-text-body, #333);
  text-decoration: none;
  line-height: 1.5;
  transition: color 0.15s;
}
.zb-toc a:hover {
  color: var(--zb-leather, #6B3A2A);
  text-decoration: underline;
}
@media (max-width: 600px) {
  .zb-toc { padding: 16px; }
}
