/* =====================================================================
   TIMES WRITER DYNAMIC — hoja de estilos (Elementor Free + WP_Query)
   Fuente de valores: AUDITORIA-TIMES-WRITER-ELEMENTOR.md (MEDIDO/OBSERVADO)
   Namespace: .tw-   |  Breakpoints: 1024 (laptop) · 840 (tablet) · 600 (móvil)
   ===================================================================== */

/* ---------- 1. VARIABLES (§23 del MD) ---------- */
:root {
  --tw-color-primary: #000000;
  --tw-color-text: #000000;
  --tw-color-text-secondary: #555555;
  --tw-color-muted: #999999;
  --tw-color-nav: #494949;
  --tw-color-tagline: #797979;
  --tw-color-accent: #31609c;
  --tw-color-border: #e0e0e1;
  --tw-color-border-light: #eaeaea;
  --tw-color-bg: #ffffff;
  --tw-color-surface: #f0f0f0;
  --tw-color-surface-footer: #fafafa;
  --tw-color-surface-quote: #eeeeee;
  --tw-color-share: #dddddd;
  --tw-color-icon: #444444;
  --tw-color-overlay: rgba(0,0,0,.5);

  --tw-font-logo: "Bodoni Moda", Georgia, serif;
  --tw-font-heading: "Tinos", "Times New Roman", serif;
  --tw-font-body: "Libre Franklin", "Helvetica Neue", Arial, sans-serif;
  --tw-font-post: "Lora", Georgia, serif;

  --tw-fs-logo: 50px;  --tw-fs-logo-t: 32px;  --tw-fs-logo-m: 20px;
  --tw-fs-nav: 16px;
  --tw-fs-section: 18px;
  --tw-fs-title-xl: 31.5px;   /* A / E */
  --tw-fs-title-l: 26px;      /* G */
  --tw-fs-title-hh: 24.375px; /* B */
  --tw-fs-title-md: 21px;     /* D */
  --tw-fs-title-sm: 19.5px;   /* C / F */
  --tw-fs-title-xs: 16.5px;   /* H */
  --tw-fs-title-rel: 18px;    /* I */
  --tw-fs-body: 15px;
  --tw-fs-meta: 13px;
  --tw-fs-cat: 10px;
  --tw-fs-btn: 10px;
  --tw-fs-widget-title: 10px;
  --tw-fs-post-body: 18px;
  --tw-fs-h1-single: 51px;
  --tw-fs-h1-archive: 44px;
  --tw-lh-tight: 1.1; --tw-lh-snug: 1.3; --tw-lh-body: 1.5; --tw-lh-post: 1.7;

  --tw-container-max: 1170px;
  --tw-sidebar-w: 260px;
  --tw-sidebar-gap: 32px;
  --tw-hero-gap: 40px;
  --tw-grid-gap: 32px;
  --tw-list-gap: 32px;
  --tw-section-gap: 24px;

  --tw-btn-h: 24px; --tw-btn-px: 28px;
  --tw-thumb-f: 120px; --tw-thumb-g: 216px; --tw-thumb-h: 90px;
  --tw-header-nav-h: 40px; --tw-header-mobile-h: 54px;
  --tw-offcanvas-w: 320px;
}
@media (max-width: 1024px) {
  :root { --tw-hero-gap: 36px; --tw-grid-gap: 24px; --tw-section-gap: 20px; --tw-fs-section: 17px; --tw-fs-title-md: 18px; --tw-fs-title-l: 22px; --tw-fs-logo: 40px; }
  .tw-menu > li > a { padding: 0 8px; }
}
@media (max-width: 600px) {
  :root { --tw-grid-gap: 16px; --tw-list-gap: 20px; --tw-section-gap: 16px; --tw-fs-section: 16px; --tw-fs-title-md: 16px; --tw-fs-title-l: 19px; --tw-fs-widget-title: 12px; --tw-fs-h1-single: 32px; --tw-fs-h1-archive: 27px; --tw-fs-post-body: 16px; }
}

/* ---------- 2. BASE (sólo dentro del namespace) ---------- */
.tw, .tw * { box-sizing: border-box; }
.tw { font-family: var(--tw-font-body); font-size: var(--tw-fs-body); line-height: var(--tw-lh-body); color: var(--tw-color-text); }
.tw a { color: inherit; text-decoration: none; }
.tw img { max-width: 100%; height: auto; display: block; }
.tw ul { list-style: none; margin: 0; padding: 0; }
.tw h1, .tw h2, .tw h3, .tw h4, .tw p, .tw figure { margin: 0; }
.tw-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- 3. CONTAINERS ---------- */
.tw-container { width: var(--tw-container-max); max-width: 97%; margin: 0 auto; }
@media (max-width: 600px) { .tw-container { max-width: calc(100% - 20px); } }
.tw-section { margin-top: var(--tw-section-gap); }
.tw-section--latest { padding-bottom: 20px; }

/* ---------- 4. HEADER (escritorio, §6.1) ---------- */
.tw-header { background: var(--tw-color-bg); position: relative; z-index: 100; }
.tw-header__main { display: flex; align-items: center; padding: 14px 0; min-height: 94px; }
.tw-header__left, .tw-header__right { flex: 0 0 25%; min-width: 0; display: flex; align-items: center; }
.tw-header__left { gap: 8px; }
.tw-header__right { justify-content: flex-end; }
.tw-header__center { flex: 0 0 50%; min-width: 0; text-align: center; }
.tw-iconbtn { width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; background: none; border: 0; padding: 0; cursor: pointer; color: var(--tw-color-primary); }
.tw-iconbtn svg { width: 18px; height: 18px; fill: currentColor; }
.tw-iconbtn--search svg { width: 16px; height: 16px; }
.tw-logo { font-family: var(--tw-font-logo); font-weight: 700; font-size: var(--tw-fs-logo); line-height: 1.2; color: var(--tw-color-primary); display: block; white-space: nowrap; max-width: 100%; }
.tw-logo a { display: inline-block; max-width: 100%; }
/* Nombres de sitio largos: times-writer.js reduce el font-size hasta que el texto cabe en la columna (mín. 20 px) */
.tw-logo img { max-height: 55px; width: auto; margin: 0 auto; }
.tw-tagline { font-size: 10px; line-height: 1.1; letter-spacing: 2px; text-transform: uppercase; color: var(--tw-color-tagline); margin-top: 0; }
.tw-tagline--center { text-align: center; margin: 0 0 10px; }
.tw-social { display: flex; flex-wrap: wrap; }
.tw-social a { width: 24px; height: 24px; display: inline-flex; align-items: center; justify-content: center; color: var(--tw-color-primary); }
.tw-social a:hover { color: var(--tw-color-accent); }
.tw-social svg { width: 16px; height: 16px; fill: currentColor; }
.tw-social--circle { gap: 6px; }
.tw-social--circle a { width: 32px; height: 32px; border-radius: 50%; background: var(--tw-color-surface); color: var(--tw-color-icon); }
.tw-social--circle svg { width: 18px; height: 18px; }

/* ---------- 5. NAVIGATION ---------- */
/* La fila de Kadence que contiene el bloque HTML del menú a veces colapsa su alto (grid con tracks a 0) */
.site-header-row.site-header-row-no-center:has(.tw-navwrap),
.site-header-row:has(.tw-navwrap) { grid-template-rows: auto !important; min-height: 42px; }
.header-html:has(.tw-navwrap), .header-html-inner:has(.tw-navwrap) { width: 100%; }
.tw-navwrap { min-height: 42px; width: 100%; }
.tw-nav { border-top: 1px solid var(--tw-color-border); border-bottom: 1px solid var(--tw-color-border); }
.tw-nav.is-sticky { position: fixed; top: 0; left: 0; right: 0; z-index: 999; background: var(--tw-color-bg); border-top: 0; max-width: none; width: 100%; height: 41px; animation: tw-slide-down .6s ease-out; }
@keyframes tw-slide-down { from { transform: translateY(-100%); } to { transform: translateY(0); } }
.tw-menu { display: flex; justify-content: center; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; }
.tw-menu > li { position: relative; }
.tw-menu > li > a { display: block; font-size: var(--tw-fs-nav); line-height: var(--tw-header-nav-h); text-transform: uppercase; letter-spacing: .5px; padding: 0 14px; color: var(--tw-color-nav); position: relative; text-decoration: none !important; }
.tw-menu > li > a::after { content: ""; position: absolute; left: 12px; right: 12px; top: 0; height: 2px; background: var(--tw-color-primary); transform: scaleX(0); transition: transform .2s ease; }
.tw-menu > li:hover > a, .tw-menu > li.current-menu-item > a, .tw-menu > li.current-menu-ancestor > a, .tw-menu > li > a:focus-visible { color: var(--tw-color-primary); }
.tw-menu > li:hover > a::after, .tw-menu > li.current-menu-item > a::after, .tw-menu > li.current-menu-ancestor > a::after { transform: scaleX(1); }
.tw-menu .menu-item-has-children > a::before { content: "+"; position: absolute; right: 2px; top: 0; font-size: 12px; }
.tw-menu .sub-menu { position: absolute; top: 100%; left: 0; min-width: 220px; background: var(--tw-color-bg); border: 1px solid var(--tw-color-border); display: none; z-index: 20; }
.tw-menu > li:hover > .sub-menu, .tw-menu > li:focus-within > .sub-menu { display: block; }
.tw-menu .sub-menu a { display: block; padding: 8px 16px; font-size: 14px; color: var(--tw-color-nav); }

/* Mega-menú (funciona con cualquier <ul> de menú, nativo de Kadence incluido) */
#masthead li { position: relative; }
.tw-megamenu { display: none; position: absolute; top: 100%; left: 50%; transform: translateX(-50%); background: #fff; border: 1px solid #e0e0e1; box-shadow: 0 8px 24px rgba(0,0,0,.08); padding: 20px; z-index: 50; }
#masthead li:hover > .tw-megamenu { display: block; }
.tw-megamenu__inner { display: flex; gap: 20px; }
.tw-megamenu__card { display: block; width: 180px; text-decoration: none !important; color: #222; }
.tw-megamenu__card img { display: block; width: 100%; height: 110px; object-fit: cover; margin-bottom: 8px; }
.tw-megamenu__card span { display: block; font-size: 13px; line-height: 1.35; font-weight: 600; }
.tw-megamenu__card:hover span { color: #0057B8; }
.tw-menu .sub-menu a:hover { background: var(--tw-color-surface); color: #111; }

/* Header móvil (≤840, §6.3) */
.tw-header-mobile { display: none; position: fixed; top: 0; left: 0; right: 0; height: var(--tw-header-mobile-h); background: var(--tw-color-bg); z-index: 999; align-items: center; justify-content: space-between; padding: 0 10px; }
.tw-header-mobile__side { width: 65px; display: flex; align-items: center; }
.tw-header-mobile__side--right { justify-content: flex-end; }
.tw-header-mobile .tw-logo { font-size: var(--tw-fs-logo-t); }
.tw-header-mobile .tw-logo img { max-height: 32px; }
.tw-header-mobile__spacer { display: none; height: var(--tw-header-mobile-h); }
@media (max-width: 840px) {
  .tw-header { display: none; }
  .tw-header-mobile, .tw-header-mobile__spacer { display: flex; }
}
@media (max-width: 600px) {
  .tw-header-mobile .tw-logo { font-size: var(--tw-fs-logo-m); }
  .tw-header-mobile .tw-logo img { max-height: 22px; }
}

/* Off-canvas */
.tw-offcanvas { position: fixed; top: 0; left: 0; bottom: 0; width: var(--tw-offcanvas-w); max-width: 100%; background: var(--tw-color-bg); padding: 16px; z-index: 99999; transform: translateX(-100%); transition: transform .3s ease; overflow-y: auto; visibility: hidden; }
.tw-offcanvas.is-open { transform: translateX(0); visibility: visible; }
.tw-offcanvas__close { position: absolute; top: 8px; right: 8px; }
.tw-offcanvas .tw-searchform { margin: 40px 0 16px; }
.tw-searchform { position: relative; }
.tw-searchform input[type="search"] { width: 100%; height: 40px; border: 0; background: var(--tw-color-surface); padding: 0 40px 0 12px; font: 16px var(--tw-font-body); color: var(--tw-color-text); }
.tw-searchform button { position: absolute; right: 0; top: 0; width: 40px; height: 40px; background: none; border: 0; cursor: pointer; color: var(--tw-color-primary); }
.tw-searchform button svg { width: 16px; height: 16px; fill: currentColor; }
.tw-offcanvas .tw-menu-mobile > li > a { display: block; min-height: 42px; line-height: 42px; font-size: 15px; color: var(--tw-color-nav); border-bottom: 1px solid var(--tw-color-border-light); }
.tw-offcanvas .tw-menu-mobile li.current-menu-item > a { color: var(--tw-color-primary); }
.tw-offcanvas .tw-menu-mobile .sub-menu { display: none; padding-left: 16px; }
.tw-offcanvas .tw-menu-mobile li.is-open > .sub-menu { display: block; }
.tw-offcanvas .tw-menu-mobile .sub-menu a { display: block; min-height: 42px; line-height: 42px; font-size: 14px; color: var(--tw-color-nav); }
.tw-offcanvas .tw-menu-mobile .menu-item-has-children { position: relative; }
.tw-submenu-toggle { position: absolute; right: 0; top: 0; width: 42px; height: 42px; background: none; border: 0; cursor: pointer; font-size: 20px; line-height: 42px; color: var(--tw-color-nav); }
.tw-offcanvas .tw-social { margin-top: 16px; }
.tw-overlay { position: fixed; inset: 0; background: var(--tw-color-overlay); z-index: 99998; opacity: 0; visibility: hidden; transition: opacity .3s ease; }
.tw-overlay.is-open { opacity: 1; visibility: visible; }
body.tw-lock { overflow: hidden; }

/* Modal de búsqueda */
.tw-search-modal { position: fixed; inset: 0; background: var(--tw-color-bg); z-index: 99999; display: none; align-items: center; justify-content: center; padding: 20px; }
.tw-search-modal.is-open { display: flex; }
.tw-search-modal__inner { width: 100%; max-width: 600px; }
.tw-search-modal .tw-searchform input[type="search"] { height: 56px; font-size: 20px; background: transparent; border-bottom: 1px solid var(--tw-color-border); }
.tw-search-modal .tw-searchform button { height: 56px; }
.tw-search-modal__close { position: absolute; top: 16px; right: 16px; }

/* ---------- 6. HERO (§7) ---------- */
.tw-hero { padding-top: 20px; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); column-gap: var(--tw-hero-gap); }
.tw-hero__main { grid-column: span 3; order: 2; }
.tw-hero__half { order: 1; position: relative; }
.tw-hero__small { order: 3; position: relative; display: grid; row-gap: 32px; align-content: start; }
.tw-hero__half::after, .tw-hero__small::before { content: ""; position: absolute; top: 0; bottom: 0; width: 1px; background: var(--tw-color-border); }
.tw-hero__half::after { right: calc(var(--tw-hero-gap) / -2); }
.tw-hero__small::before { left: calc(var(--tw-hero-gap) / -2); }
@media (max-width: 840px) {
  .tw-hero { display: block; }
  .tw-hero__main, .tw-hero__half, .tw-hero__small { margin-top: 5px; padding-top: 5px; }
  .tw-hero__half::after, .tw-hero__small::before { display: none; }
  .tw-hero__small { row-gap: 16px; }
}
@media (max-width: 600px) { .tw-hero__small { row-gap: 10px; } }

/* ---------- 7. SECTION HEADINGS ---------- */
.tw-section__title { display: flex; align-items: center; gap: 16px; font-family: var(--tw-font-body); font-weight: 900; font-size: var(--tw-fs-section); line-height: 1.3; text-transform: uppercase; letter-spacing: 1px; color: var(--tw-color-primary); margin-bottom: 24px; }
.tw-section__title::after { content: ""; flex: 1 1 auto; height: 1px; background: var(--tw-color-border); }
.tw-section__title--center { justify-content: center; }
.tw-section__title--center::after { display: none; }
.tw-section__title a:hover { text-decoration: underline; text-decoration-color: #ccc; }
.tw-widget__title { font-family: var(--tw-font-body); font-weight: 900; font-size: var(--tw-fs-widget-title); line-height: 1.1; text-transform: uppercase; letter-spacing: 1px; color: var(--tw-color-primary); margin-bottom: 8px; }

/* ---------- 8. CARDS (§9) ---------- */
.tw-card { display: flex; flex-direction: column; }
.tw-card__media { display: block; }
.tw-card__media img { width: 100%; object-fit: cover; }
.tw-card__media--3x2 img { aspect-ratio: 3 / 2; }
.tw-card__media--5x4 img { aspect-ratio: 5 / 4; }
.tw-card__media--1x1 img { aspect-ratio: 1 / 1; }
.tw-card__media--2x3 img { aspect-ratio: 2 / 3; }
.tw-card__media--empty { background: var(--tw-color-surface); }
.tw-card__media--empty::before { content: ""; display: block; }
.tw-card__media--3x2.tw-card__media--empty::before { aspect-ratio: 3 / 2; }
.tw-card__media--5x4.tw-card__media--empty::before { aspect-ratio: 5 / 4; }
.tw-card__media--1x1.tw-card__media--empty::before { aspect-ratio: 1 / 1; }
.tw-card__media--2x3.tw-card__media--empty::before { aspect-ratio: 2 / 3; }
.tw-card__body { min-width: 0; }
.tw-card__media + .tw-card__body { margin-top: 10px; }
.tw-card__cat { font-size: var(--tw-fs-cat); line-height: 1.4; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--tw-color-accent); }
.tw-card__cat a { display: inline-block; border-bottom: 1.6px solid transparent; padding: 4px 0; margin: -4px 0; }
.tw-card__cat a:hover { border-bottom-color: currentColor; }
.tw-card__title { font-family: var(--tw-font-heading); font-weight: 700; line-height: var(--tw-lh-tight); color: var(--tw-color-primary); margin-bottom: 10px; overflow-wrap: anywhere; }
.tw-card__cat + .tw-card__title { margin-top: 8px; }
.tw-card__title a:hover { text-decoration: underline; text-decoration-color: #ccc; }
.tw-card__meta { font-size: var(--tw-fs-meta); line-height: 1.4; color: var(--tw-color-muted); margin-top: 8px; }
.tw-card__meta a:hover { color: var(--tw-color-text-secondary); }
.tw-card__excerpt { font-size: var(--tw-fs-body); line-height: var(--tw-lh-body); color: var(--tw-color-text-secondary); margin-top: 8px; }
.tw-card__excerpt--sm { font-size: 13px; line-height: 1.3; }
.tw-card__excerpt--snug { line-height: var(--tw-lh-snug); }
.tw-card__more { margin-top: 18px; }
.tw-btn { display: inline-block; background: var(--tw-color-accent); color: #fff; font-family: var(--tw-font-body); font-weight: 700; font-size: var(--tw-fs-btn); line-height: var(--tw-btn-h); text-transform: uppercase; letter-spacing: 2px; padding: 0 var(--tw-btn-px); border: 0; }
.tw-btn:hover, .tw-btn:focus-visible { color: #fff; }
.tw-btn--plain { display: inline-block; font-family: var(--tw-font-heading); font-size: 15px; line-height: 1.5; text-transform: uppercase; color: var(--tw-color-accent); }
@media (max-width: 320px) { .tw-btn { font-size: 12px; } }

/* Tamaños por variante */
.tw-card--hero-main { text-align: center; }
.tw-card--hero-main .tw-card__body { max-width: 600px; margin-left: auto; margin-right: auto; }
.tw-card--hero-main .tw-card__title, .tw-card--feature .tw-card__title { font-size: var(--tw-fs-title-xl); }
.tw-card--hero-half .tw-card__title { font-size: var(--tw-fs-title-hh); }
.tw-card--hero-small .tw-card__title, .tw-card--list-right .tw-card__title { font-size: var(--tw-fs-title-sm); }
.tw-card--grid .tw-card__title { font-size: var(--tw-fs-title-md); }
.tw-card--latest .tw-card__title, .tw-card--archive .tw-card__title { font-size: var(--tw-fs-title-l); }
.tw-card--widget .tw-card__title { font-size: var(--tw-fs-title-xs); }
.tw-card--related .tw-card__title { font-size: var(--tw-fs-title-rel); margin-bottom: 0; margin-top: 8px; }
.tw-card--related .tw-card__meta { margin-top: 0; }

/* Horizontales */
.tw-card--h { flex-direction: row; align-items: stretch; }
.tw-card--h .tw-card__media { flex: 0 0 auto; }
.tw-card--h .tw-card__media + .tw-card__body { margin-top: 0; }
.tw-card--h .tw-card__body { flex: 1 1 auto; }
.tw-card--list-right { flex-direction: row-reverse; align-items: flex-start; }
.tw-card--list-right .tw-card__media { width: calc(var(--tw-thumb-f) + 10px); padding-left: 10px; }
.tw-card--latest .tw-card__media, .tw-card--archive-list .tw-card__media { width: calc(var(--tw-thumb-g) + 24px); padding-right: 24px; }
.tw-card--widget .tw-card__media { width: calc(var(--tw-thumb-h) + 10px); padding-right: 10px; }
.tw-card--archive { align-items: center; }
.tw-card--archive .tw-card__media { width: 54%; padding-right: 45px; }
@media (max-width: 600px) {
  .tw-card--list-right .tw-card__media { width: 90px; }
  .tw-card--latest .tw-card__media { width: 100px; padding-right: 8px; }
  .tw-card--archive .tw-card__media { width: 111px; padding-right: 10px; }
  .tw-card--archive .tw-card__title { font-size: var(--tw-fs-title-sm); }
}

/* ---------- 9. GRIDS ---------- */
.tw-grid { display: grid; gap: var(--tw-grid-gap); }
.tw-grid--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.tw-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.tw-grid--seps > * { position: relative; }
.tw-grid--seps > *::after { content: ""; position: absolute; top: 0; bottom: 0; right: calc(var(--tw-grid-gap) / -2); width: 1px; background: var(--tw-color-border); }
.tw-grid--5.tw-grid--seps > *:nth-child(5n)::after, .tw-grid--4.tw-grid--seps > *:nth-child(4n)::after { display: none; }
@media (max-width: 840px) {
  .tw-grid--5, .tw-grid--4 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tw-grid--5.tw-grid--seps > *:nth-child(5n)::after, .tw-grid--4.tw-grid--seps > *:nth-child(4n)::after { display: block; }
  .tw-grid--seps > *:nth-child(3n)::after { display: none; }
}
@media (max-width: 600px) {
  .tw-grid--5, .tw-grid--4 { grid-template-columns: minmax(0, 1fr); }
  .tw-grid--seps > *::after { display: none !important; }
}

/* Sección "feature" (Politics): 2/3 + lista */
.tw-feature { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--tw-hero-gap); }
.tw-feature__big { grid-column: span 2; }
.tw-feature__list { position: relative; display: grid; row-gap: 32px; align-content: start; }
.tw-feature__list::before { content: ""; position: absolute; top: 0; bottom: 0; left: calc(var(--tw-hero-gap) / -2); width: 1px; background: var(--tw-color-border); }
@media (max-width: 840px) {
  .tw-feature { display: block; }
  .tw-feature__list { margin-top: 10px; row-gap: 30px; }
  .tw-feature__list::before { display: none; }
}
@media (max-width: 600px) { .tw-feature__list { row-gap: 20px; } }

/* ---------- 10. LATEST + listas con separador horizontal ---------- */
.tw-latest { display: flex; align-items: stretch; }
.tw-latest__primary { flex: 1 1 auto; min-width: 0; padding-right: var(--tw-sidebar-gap); }
.tw-list { display: grid; row-gap: var(--tw-list-gap); }
.tw-list--hseps > * { position: relative; }
.tw-list--hseps > *:not(:last-child)::after { content: ""; position: absolute; left: 0; right: 0; bottom: calc(var(--tw-list-gap) / -2); height: 1px; background: var(--tw-color-border-light); }
.tw-pagination { display: flex; justify-content: center; flex-wrap: wrap; gap: 5px; margin-top: 30px; font-family: var(--tw-font-heading); font-size: 16px; line-height: 1.5; }
.tw-pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 32px; height: 32px; padding: 0 8px; color: var(--tw-color-primary); }
.tw-pagination .page-numbers.current { background: rgba(0,0,0,.1); }
.tw-pagination .next, .tw-pagination .prev { padding: 0 15px; }
@media (max-width: 1024px) { .tw-latest__primary { padding-right: 10px; } }
@media (max-width: 840px) {
  .tw-latest { display: block; }
  .tw-latest__primary { padding-right: 0; }
}
@media (max-width: 600px) { .tw-list--hseps > *::after { display: none; } }

/* ---------- 11. SIDEBAR ---------- */
.tw-sidebar { flex: 0 0 var(--tw-sidebar-w); width: var(--tw-sidebar-w); }
.tw-widget { padding-top: 20px; }
.tw-widget:first-child { padding-top: 0; }
.tw-widget__about img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.tw-widget__about .tw-widget__title { margin-top: 20px; }
.tw-widget__banner img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.tw-widget .tw-list { row-gap: 20px; }
.tw-authors li { display: flex; align-items: center; gap: 10px; padding: 10.5px 0; border-top: 1px solid var(--tw-color-border); }
.tw-authors li:first-child { border-top: 0; padding-top: 0; }
.tw-authors img { width: 72px; height: 72px; flex: 0 0 72px; object-fit: cover; }
.tw-authors__name { font-family: var(--tw-font-heading); font-weight: 700; font-size: 13.5px; line-height: 1.2; }
.tw-authors__post { font-size: 15px; line-height: 1.3; color: var(--tw-color-text-secondary); margin-top: 4px; }
.tw-widget p { margin-top: 8px; }
@media (max-width: 840px) {
  .tw-sidebar { width: 100%; flex-basis: auto; margin-top: 24px; }
  .tw-widget__about img, .tw-widget__banner img { max-width: 260px; } /* MEJORADO: el original estira a 100 % */
  .tw-fiel .tw-widget__about img, .tw-fiel .tw-widget__banner img { max-width: none; }
}

/* ---------- 12. GALERÍA / INSTAGRAM ---------- */
.tw-gallery-section { background: var(--tw-color-surface); padding: 60px 0; margin-top: var(--tw-section-gap); }
.tw-gallery { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 2px; }
.tw-gallery a, .tw-gallery img { display: block; }
.tw-gallery img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; transition: opacity .2s; }
.tw-gallery a:hover img { opacity: .7; }
@media (max-width: 840px) { .tw-gallery-section { padding: 40px 0; } .tw-gallery { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 600px) { .tw-gallery-section { padding: 24px 0; } .tw-gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ---------- 13. FOOTER (§8) ---------- */
.tw-footer { background: var(--tw-color-surface-footer); border-top: 1px solid var(--tw-color-border-light); margin-top: 30px; }
.tw-footer .tw-container { padding: 30px 0; }
.tw-footer__row { display: flex; align-items: stretch; }
.tw-footer__col { flex: 0 0 25%; min-width: 0; padding: 0 20px; }
.tw-footer__col--center { flex: 0 0 50%; text-align: center; border-left: 1px solid var(--tw-color-border); border-right: 1px solid var(--tw-color-border); }
.tw-footer__col--center .tw-social { justify-content: center; }
.tw-footer__logo img { max-width: 260px; margin: 0 auto; }
.tw-footer__logo .tw-logo { font-size: 18px; }
.tw-footer__copy { margin-top: 24px; font-size: 15px; line-height: 1.5; }
.tw-footer__copy p { margin: 0; }
.tw-footer__menu { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 16px; margin-top: 16px; }
.tw-footer__menu a { font-size: 11px; line-height: 1.5; text-transform: uppercase; letter-spacing: 1px; color: var(--tw-color-primary); }
.tw-footer__menu .current-menu-item a { color: #888; }
.tw-footer .tw-social--circle { margin-top: 24px; }
.tw-minigallery { display: grid; grid-template-columns: repeat(3, minmax(0, 77px)); gap: 16px; }
.tw-minigallery img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
@media (max-width: 1024px) { .tw-minigallery { gap: 8px; } }
.tw-footer .tw-widget { padding-top: 0; }
@media (max-width: 840px) {
  .tw-footer .tw-container { padding: 20px 0; }
  .tw-footer__row { display: block; }
  .tw-footer__col { flex-basis: auto; padding: 0; }
  .tw-footer__col + .tw-footer__col { margin-top: 20px; }
  .tw-footer__col--center { border: 0; }
}
@media (max-width: 600px) { .tw-footer .tw-container { padding: 10px 0; } }

/* ---------- 14. SINGLE (§16) ---------- */
.tw-single { padding: 30px 0; }
.tw-single__narrow { width: 660px; max-width: 100%; margin: 0 auto; }
.tw-single__title { font-family: var(--tw-font-heading); font-weight: 400; font-size: var(--tw-fs-h1-single); line-height: 1.1; margin-top: 20px; overflow-wrap: anywhere; }
.tw-single__meta { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 30px; font-size: var(--tw-fs-meta); color: var(--tw-color-muted); min-height: 32px; }
.tw-single__meta img { width: 32px; height: 32px; border-radius: 50%; }
.tw-single__meta .tw-author { display: inline-flex; align-items: center; gap: 8px; color: var(--tw-color-primary); }
.tw-single__featured { margin-top: 30px; }
.tw-single__featured img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.tw-single__featured figcaption { font-size: 14px; line-height: 1.4; color: var(--tw-color-tagline); text-align: center; margin-top: 10px; }
@media (min-width: 841px) { .tw-single__featured { width: calc(100% + 120px); margin-left: -60px; margin-right: -60px; } }
.tw-single__content { margin-top: 30px; font-family: var(--tw-font-post); font-size: var(--tw-fs-post-body); line-height: var(--tw-lh-post); color: var(--tw-color-text); }
.tw-single__content > * { margin: 0 0 24px; }
.tw-single__content a { color: var(--tw-color-accent); text-decoration: underline; }
.tw-single__content h2 { font-family: var(--tw-font-heading); font-weight: 700; font-size: 30px; line-height: 1.2; }
.tw-single__content h3 { font-family: var(--tw-font-heading); font-weight: 700; font-size: 24px; line-height: 1.2; }
.tw-single__content h4 { font-family: var(--tw-font-heading); font-weight: 700; font-size: 20px; line-height: 1.2; }
.tw-single__content ul, .tw-single__content ol { padding-left: 1.5em; }
.tw-single__content li { margin-bottom: 8px; }
.tw-single__content blockquote { background: var(--tw-color-surface-quote); border-left: 1.6px solid var(--tw-color-accent); padding: 28px 22.5px; margin: 22.5px 0; font-family: var(--tw-font-body); font-size: 22.5px; line-height: 1.5; }
.tw-single__content blockquote p:last-child { margin-bottom: 0; }
.tw-single__content figcaption { font-size: 14px; color: var(--tw-color-tagline); text-align: center; margin-top: 10px; }
.tw-single__content img { max-width: 100%; height: auto; }
.tw-single__content .alignwide { width: calc(100% + 120px); max-width: none; margin-left: -60px; }
.tw-single__content .alignleft { float: left; max-width: 200px; margin: 0 24px 16px 0; }
.tw-single__content .alignright { float: right; max-width: 200px; margin: 0 0 16px 24px; }
.tw-single__content::after { content: ""; display: table; clear: both; }
.tw-share { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 30px; }
.tw-share a { width: 32px; height: 32px; border-radius: 50%; background: var(--tw-color-share); color: #fff; display: inline-flex; align-items: center; justify-content: center; }
.tw-share a:hover { background: var(--tw-color-accent); }
.tw-share svg { width: 18px; height: 18px; fill: currentColor; }
.tw-authorbox { display: flex; gap: 24px; border: 1px solid var(--tw-color-share); padding: 30px; margin-top: 30px; }
.tw-authorbox img { width: 90px; height: 90px; border-radius: 50%; flex: 0 0 90px; }
.tw-authorbox__name { font-family: var(--tw-font-heading); font-weight: 700; font-size: 19.5px; line-height: 1.2; }
.tw-authorbox__bio { font-size: 15px; line-height: 1.4; margin-top: 8px; color: var(--tw-color-text-secondary); }
.tw-authorbox .tw-social--circle { margin-top: 12px; }
.tw-related { margin-top: 60px; }
.tw-related__title { font-family: var(--tw-font-body); font-weight: 400; font-size: 20px; line-height: 1.3; text-transform: uppercase; text-align: center; margin-bottom: 10px; }
@media (max-width: 840px) {
  .tw-single__content blockquote { font-size: 17.6px; }
  .tw-single__content .alignwide { width: 100%; margin-left: 0; }
  .tw-related .tw-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .tw-authorbox { padding: 15px; gap: 15px; }
  .tw-authorbox img { width: 54px; height: 54px; flex-basis: 54px; }
  .tw-related .tw-grid--4 { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- 15. ARCHIVES (§17) ---------- */
.tw-titlebar { padding: 30px 0; border-bottom: 1px solid var(--tw-color-border); }
.tw-titlebar__title { font-family: var(--tw-font-heading); font-weight: 700; font-size: var(--tw-fs-h1-archive); line-height: 1.1; overflow-wrap: anywhere; }
.tw-titlebar__desc { font-weight: 300; font-size: 16.5px; line-height: 1.4; max-width: 600px; margin-top: 10px; }
.tw-titlebar__desc p { margin: 0; }
.tw-archive-top { padding: 2em 0; border-bottom: 1px solid var(--tw-color-border); }
.tw-archive-main { padding-top: 32px; }
.tw-archive-main .tw-latest__primary .tw-list { row-gap: var(--tw-list-gap); }
.tw-notfound { padding: 60px 0; text-align: center; }
.tw-notfound .tw-searchform { max-width: 480px; margin: 24px auto 40px; }
@media (max-width: 600px) { .tw-titlebar__desc { font-size: 13.5px; } .tw-archive-main .tw-card--latest .tw-card__media { width: 148px; } }

/* ---------- 16/17. TABLET & MOBILE — ajustes globales ---------- */
@media (max-width: 600px) { .tw-section__title { margin-bottom: 1em; } }

/* ---------- 18. ACCESSIBILITY ---------- */
.tw a:focus-visible, .tw button:focus-visible, .tw input:focus-visible { outline: 2px solid var(--tw-color-accent); outline-offset: 2px; }
.tw-skip { position: absolute; left: -9999px; top: 0; background: #fff; padding: 8px 16px; z-index: 100000; }
.tw-skip:focus { left: 8px; top: 8px; }
@media (prefers-reduced-motion: reduce) { .tw-offcanvas, .tw-overlay, .tw-nav.is-sticky, .tw-menu > li > a::after { transition: none; animation: none; } }
