  /* ── TOKENS DE DISEÑO (copiados del CSS vivo, no de la doc) ── */
  :root {
    --bg-primary: #faf8f4;
    --bg-secondary: #f0ebe2;
    --bg-dark: #1e2a1f;
    --text-primary: #1a1814;
    --text-secondary: #6b6358;
    --text-light: #f0ebe2;
    --accent: #5c7a4a;
    --accent-hover: #4a6b3a;
    --accent-light: #8fbf7a;
    --border: #ddd5c8;
    --surface: #ffffff;
    --shadow-sm: 0 1px 3px rgba(26,24,20,0.06);
    --shadow-md: 0 4px 16px rgba(26,24,20,0.08);
    --font-display: 'Cormorant', Georgia, 'Times New Roman', serif;
    --font-body: 'Outfit', system-ui, -apple-system, sans-serif;
    --radius-sm: 6px;
    --radius-md: 12px;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2.5rem;
    --space-gutter: clamp(1.5rem, 5vw, 6rem);
  }

  /* ── RESET Y BASE ──────────────────────── */
  *, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
  @media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
  body {
    font-family: var(--font-body);
    color: var(--text-primary);
    background: var(--bg-primary);
    font-weight: 400;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
  }
  img { max-width: 100%; height: auto; display: block; }
  a { text-decoration: none; color: inherit; }

  .icon {
    width: 24px; height: 24px;
    stroke: currentColor; stroke-width: 1.5;
    fill: none; stroke-linecap: round; stroke-linejoin: round;
    flex-shrink: 0;
  }

  /* ── NAVEGACIÓN (idéntica al resto del sitio) ── */
  .nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    display: flex; align-items: center; justify-content: space-between;
    padding: var(--space-sm) var(--space-gutter);
    background: rgba(250,248,244,0.88);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(221,213,200,0.5);
    transition: padding 0.3s ease, background 0.3s ease;
  }
  .nav--scrolled {
    padding-top: 0.7rem; padding-bottom: 0.7rem;
    background: rgba(250,248,244,0.96);
    box-shadow: var(--shadow-sm);
  }
  .nav-logo {
    font-family: var(--font-display);
    font-size: clamp(1.3rem, 2vw, 1.6rem);
    font-weight: 600; letter-spacing: 0.02em;
  }
  .nav-logo span { color: var(--accent); }
  .nav-links { display: flex; gap: var(--space-lg); align-items: center; }
  .nav-links a {
    font-size: 0.85rem; font-weight: 500;
    color: var(--text-secondary);
    letter-spacing: 0.04em; text-transform: uppercase;
    transition: color 0.25s ease;
    position: relative;
  }
  .nav-links a::after {
    content: ''; position: absolute;
    bottom: -4px; left: 0; width: 0; height: 1.5px;
    background: var(--accent);
    transition: width 0.3s ease;
  }
  .nav-links a:hover { color: var(--text-primary); }
  .nav-links a:hover::after { width: 100%; }
  .nav-links a[aria-current="page"], .nav-links a.nav-section { color: var(--accent); }
  .nav-lang {
    display: flex; gap: 0.35rem;
    margin-left: var(--space-md); padding-left: var(--space-md);
    border-left: 1px solid var(--border);
  }
  .nav-lang a { font-size: 0.75rem !important; padding: 0.3rem 0.55rem; border-radius: 4px; letter-spacing: 0.06em !important; transition: all 0.25s ease !important; }
  .nav-lang a::after { display: none; }
  .nav-lang a.active { background: var(--accent); color: var(--surface) !important; }
  .nav-lang a:not(.active):hover { background: var(--bg-secondary); }
  .nav-cta {
    background: var(--accent) !important; color: var(--surface) !important;
    padding: 0.6rem 1.4rem !important; border-radius: var(--radius-sm);
    transition: all 0.25s ease !important;
  }
  .nav-cta::after { display: none !important; }
  .nav-cta:hover { background: var(--accent-hover) !important; transform: translateY(-1px); }
  .nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 0.5rem; color: var(--text-primary); }


  /* ══════════════════════════════════════════════════════════════════════
     REDISEÑO 23 AGO 2026 — estructura del blog de TekLabIA, marca Beduria.
     Contenedor 1140px; rejilla 3fr/1fr en escritorio; portada panorámica
     2,4:1; cabecera con etiqueta + H1 + meta; fila de compartir; cuerpo de
     lectura a 17px/1.75; tarjeta de anfitriones; relacionados; barra lateral
     con apartamento, accesibilidad y más artículos.
     ══════════════════════════════════════════════════════════════════════ */

  .post-page {
    max-width: 1140px; margin: 0 auto;
    padding: 96px var(--space-gutter) var(--space-xl, 4rem);
  }

  /* Miga "← Vive San Sebastián" */
  .post-crumb {
    display: inline-flex; align-items: center; gap: 0.4rem;
    font-size: 0.72rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
    color: var(--text-secondary); margin: 0 0 1.2rem;
    transition: color 0.2s ease;
  }
  .post-crumb .icon { width: 14px; height: 14px; stroke-width: 2.2; }
  .post-crumb:hover { color: var(--accent); }

  /* Rejilla: cabecera y cuerpo en la columna ancha; barra lateral a la
     altura del cuerpo (no de la cabecera), como en TekLabIA. */
  .post-layout {
    display: grid; grid-template-columns: 1fr; gap: 2.5rem;
  }
  @media (min-width: 900px) {
    .post-layout {
      grid-template-columns: minmax(0, 3fr) minmax(260px, 1fr);
      grid-template-rows: auto auto;
      column-gap: 3rem; row-gap: 2rem;
    }
    .post-header   { grid-column: 1; grid-row: 1; min-width: 0; }
    .post-main     { grid-column: 1; grid-row: 2; min-width: 0; }
    .blog-sidebar  { grid-column: 2; grid-row: 2; align-self: start; }
    /* En el listado no hay cabecera dentro de la rejilla: todo en la fila 1. */
    .blog-layout .post-main    { grid-row: 1; }
    .blog-layout .blog-sidebar { grid-row: 1; }
  }

  /* ── CABECERA DEL ARTÍCULO ─────────────── */
  .post-cover {
    position: relative; width: 100%;
    aspect-ratio: 2.4 / 1;
    border-radius: var(--radius-md); overflow: hidden;
    background: var(--bg-secondary);
    margin-bottom: 1.6rem;
    box-shadow: var(--shadow-sm);
  }
  .post-cover img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
  .post-cover-brand {
    position: absolute; right: 14px; bottom: 12px;
    font-family: var(--font-display); font-style: italic; font-weight: 600;
    font-size: 0.9rem; color: rgba(255,255,255,0.75);
    text-shadow: 0 1px 6px rgba(0,0,0,0.35);
  }
  .post-eyebrow {
    display: inline-flex; align-items: center; gap: 0.5rem;
    font-size: 0.72rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
    color: var(--accent); margin: 0 0 0.6rem;
  }
  .post-eyebrow::before { content: ''; width: 20px; height: 1.5px; background: currentColor; }
  .post-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4.2vw, 2.9rem);
    font-weight: 600; line-height: 1.12; letter-spacing: -0.005em;
    color: var(--text-primary); margin: 0 0 0.8rem;
  }
  .post-meta { font-size: 0.88rem; color: var(--text-secondary); margin: 0; }

  /* ── COMPARTIR ─────────────────────────── */
  .post-share {
    display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem;
    padding-bottom: 1.4rem; margin-bottom: 1.8rem;
    border-bottom: 1px solid var(--border);
  }
  .post-share-label {
    font-size: 0.68rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
    color: var(--text-secondary); margin-right: 0.3rem;
  }
  .share-btn {
    display: inline-flex; align-items: center; gap: 0.45rem;
    padding: 0.45rem 0.9rem; border-radius: 999px;
    border: 1px solid var(--border); background: var(--surface);
    color: var(--text-primary); font-family: inherit; font-size: 0.82rem; font-weight: 500;
    cursor: pointer; line-height: 1;
    transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
  }
  .share-btn svg { width: 14px; height: 14px; fill: currentColor; flex-shrink: 0; }
  .share-btn.share-copy svg { fill: none; }
  .share-btn:hover { border-color: var(--accent); color: var(--accent); background: rgba(92,122,74,0.05); }

  /* ── CUERPO DEL ARTÍCULO ───────────────── */
  .post-body { font-size: 1.06rem; line-height: 1.75; color: var(--text-primary); }
  .post-body > p { margin: 0 0 1.15em; }
  .post-body h2 {
    font-family: var(--font-display);
    font-size: clamp(1.55rem, 2.6vw, 1.9rem); font-weight: 600; line-height: 1.2;
    color: var(--text-primary); margin: 2.2em 0 0.6em;
  }
  .post-body h3 {
    font-family: var(--font-body);
    font-size: 1.12rem; font-weight: 600; line-height: 1.3;
    color: var(--text-primary); margin: 1.7em 0 0.5em;
  }
  .post-body strong { font-weight: 600; color: var(--text-primary); }
  .post-body a { color: var(--accent-hover); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; transition: color 0.2s; }
  .post-body a:hover { color: var(--accent); }
  .post-body ul, .post-body ol { margin: 0 0 1.2em 1.3em; display: flex; flex-direction: column; gap: 0.45em; }
  .post-body ul { list-style: disc; }
  .post-body ol { list-style: decimal; }
  .post-body li::marker { color: var(--accent); }
  .post-body blockquote {
    border-left: 3px solid var(--accent); padding: 0.3em 0 0.3em 1.2em; margin: 1.4em 0;
    font-family: var(--font-display); font-size: 1.2rem; font-style: italic; color: var(--text-secondary);
  }
  .post-body figure { margin: 1.8em 0; max-width: 100%; }
  .post-body figure img, .post-body > img {
    width: 100%; height: auto; max-height: 480px; object-fit: cover;
    border-radius: var(--radius-md); display: block;
  }
  .post-body figcaption { font-size: 0.82rem; color: var(--text-secondary); margin-top: 0.5em; }
  .post-body table {
    width: 100%; border-collapse: collapse; margin: 1.5em 0; font-size: 0.92rem;
    display: block; overflow-x: auto;
  }
  .post-body th, .post-body td { padding: 0.6rem 0.9rem; border: 1px solid var(--border); text-align: left; vertical-align: top; }
  .post-body th { background: var(--bg-secondary); font-weight: 600; }
  .post-body hr { border: 0; border-top: 1px solid var(--border); margin: 2em 0; }

  /* ── TARJETA DE LOS ANFITRIONES ────────── */
  .host-card {
    display: flex; gap: 1.2rem; align-items: flex-start;
    margin-top: 3rem; padding: 1.5rem;
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md);
  }
  .host-card-mark {
    flex-shrink: 0; width: 56px; height: 56px; border-radius: 50%;
    display: grid; place-items: center;
    background: var(--bg-dark); color: var(--text-light);
    font-family: var(--font-display); font-size: 1.35rem; font-weight: 600; letter-spacing: 0.02em;
  }
  .host-card-mark span { color: var(--accent-light); }
  .host-card-name { font-weight: 600; margin: 0 0 0.3rem; color: var(--text-primary); }
  .host-card-text { font-size: 0.95rem; color: var(--text-secondary); margin: 0; line-height: 1.6; }
  .host-card-link { display: inline-block; margin-top: 0.7rem; font-size: 0.88rem; font-weight: 600; color: var(--accent-hover); }
  .host-card-link:hover { color: var(--accent); }

  /* ── SIGUE LEYENDO ─────────────────────── */
  .post-related { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--border); }
  .post-related h2 {
    font-family: var(--font-display); font-size: 1.5rem; font-weight: 600;
    color: var(--text-primary); margin: 0 0 1.2rem;
  }
  .rel-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.4rem; }
  .rel-card { display: flex; flex-direction: column; gap: 0.55rem; color: inherit; }
  .rel-thumb {
    width: 100%; aspect-ratio: 4 / 3; border-radius: var(--radius-md); overflow: hidden;
    background: var(--bg-secondary);
  }
  .rel-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
  @media (prefers-reduced-motion: no-preference) { .rel-card:hover .rel-thumb img { transform: scale(1.03); } }
  .rel-date { font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-secondary); margin: 0; }
  .rel-card h3 {
    font-family: var(--font-display); font-size: 1.12rem; font-weight: 600; line-height: 1.3;
    color: var(--text-primary); margin: 0; transition: color 0.2s;
  }
  .rel-card:hover h3 { color: var(--accent-hover); }

  /* ── BARRA LATERAL ─────────────────────── */
  .blog-sidebar { display: flex; flex-direction: column; gap: 1.2rem; }
  .widget {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md);
    padding: 1.3rem;
  }
  .widget h3 {
    font-family: var(--font-body); font-size: 0.72rem; font-weight: 700;
    letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-primary);
    margin: 0 0 0.7rem;
  }
  .widget p { font-size: 0.9rem; line-height: 1.6; color: var(--text-secondary); margin: 0 0 0.8rem; }
  .widget-link { display: inline-block; font-size: 0.86rem; font-weight: 600; color: var(--accent-hover); }
  .widget-link:hover { color: var(--accent); }
  .widget-apartment { padding: 0; overflow: hidden; }
  .widget-apartment-photo { display: block; aspect-ratio: 3 / 2; overflow: hidden; background: var(--bg-secondary); }
  .widget-apartment-photo img { width: 100%; height: 100%; object-fit: cover; }
  .widget-apartment h3, .widget-apartment p { padding: 0 1.3rem; }
  .widget-apartment h3 { margin-top: 1.1rem; font-family: var(--font-display); font-size: 1.3rem; letter-spacing: 0; text-transform: none; font-weight: 600; }
  .widget-apartment .widget-link { margin: 0 1.3rem 1rem; }
  .widget-cta {
    display: block; margin: 0 1.3rem 1.3rem; padding: 0.7rem 1rem;
    text-align: center; font-size: 0.82rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
    background: var(--accent); color: var(--surface); border-radius: var(--radius-sm);
    transition: background 0.25s ease, transform 0.25s ease;
  }
  .widget-cta:hover { background: var(--accent-hover); transform: translateY(-1px); }
  .widget-access { background: var(--bg-dark); border-color: var(--bg-dark); color: var(--text-light); }
  .widget-access .icon { width: 28px; height: 28px; color: var(--accent-light); margin-bottom: 0.6rem; }
  .widget-access h3 { color: var(--text-light); }
  .widget-access p { color: rgba(240,235,226,0.8); }
  .widget-access .widget-link { color: var(--accent-light); }
  .widget-access .widget-link:hover { color: var(--text-light); }
  .widget-latest ul { list-style: none; margin: 0; padding: 0; }
  .widget-latest li { padding: 0.55rem 0; border-top: 1px solid var(--border); }
  .widget-latest li:first-child { border-top: 0; padding-top: 0; }
  .widget-latest a { font-size: 0.9rem; font-weight: 500; line-height: 1.4; color: var(--text-primary); transition: color 0.2s; }
  .widget-latest a:hover { color: var(--accent-hover); }

  /* ── LISTADO ───────────────────────────── */
  .blog-header { margin: 0 0 2rem; max-width: 720px; }
  .blog-header h1 {
    font-family: var(--font-display); font-size: clamp(2rem, 4.2vw, 2.9rem);
    font-weight: 600; line-height: 1.12; color: var(--text-primary); margin: 0 0 0.6rem;
  }
  .blog-header-text { font-size: 1rem; color: var(--text-secondary); margin: 0; line-height: 1.6; }
  .blog-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem 1.6rem; }
  .blog-card { display: flex; flex-direction: column; gap: 0.5rem; color: inherit; }
  .blog-card-thumb {
    width: 100%; aspect-ratio: 3 / 2; border-radius: var(--radius-md); overflow: hidden;
    background: var(--bg-secondary); margin-bottom: 0.3rem;
  }
  .blog-card-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
  @media (prefers-reduced-motion: no-preference) { .blog-card:hover .blog-card-thumb img { transform: scale(1.03); } }
  .blog-card-date { font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-secondary); margin: 0; }
  .blog-card h2 {
    font-family: var(--font-display); font-size: 1.35rem; font-weight: 600; line-height: 1.25;
    color: var(--text-primary); margin: 0; transition: color 0.2s;
  }
  .blog-card:hover h2 { color: var(--accent-hover); }
  .blog-card-excerpt { font-size: 0.92rem; line-height: 1.55; color: var(--text-secondary); margin: 0; }
  .blog-empty { font-size: 1rem; color: var(--text-secondary); padding: 2rem 0; }
  .blog-empty a { color: var(--accent-hover); text-decoration: underline; }
  .blog-card-more { font-size: 0.85rem; font-weight: 600; color: var(--accent-hover); margin-top: 0.2rem; }

  /* Paginación: marcado real de the_posts_pagination(). El ".nav-links" del
     wrapper choca con el ".nav-links" del menú, de ahí las reglas explícitas. */
  .blog-pagination { margin-top: 2.5rem; }
  .blog-pagination .screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
  .blog-pagination .nav-links { display: flex !important; flex-wrap: wrap; gap: 0.5rem; align-items: center; justify-content: center; }
  .blog-pagination .nav-links > * { padding-left: 0.4rem !important; }
  .blog-pagination .page-numbers {
    font-size: 0.85rem; padding: 0.4rem 0.75rem; border-radius: var(--radius-sm);
    color: var(--text-secondary); text-transform: none; letter-spacing: normal; font-weight: 500;
  }
  .blog-pagination a.page-numbers:hover { color: var(--accent); }
  .blog-pagination a.page-numbers::after { display: none; }
  .blog-pagination .page-numbers.current { background: var(--accent); color: var(--surface); }

  /* ── FOOTER ────────────────────────────── */
  .footer {
    padding: var(--space-lg) var(--space-gutter);
    border-top: 1px solid var(--border);
    display: flex; justify-content: space-between; align-items: center;
    flex-wrap: wrap; gap: var(--space-sm);
  }
  .footer-left { font-family: var(--font-display); font-size: 1.05rem; font-weight: 600; }
  .footer-left span { color: var(--accent); }
  .footer-links { display: flex; gap: var(--space-md); align-items: center; }
  .footer-links a { font-size: 0.8rem; color: var(--text-secondary); transition: color 0.25s ease; }
  .footer-links a:hover { color: var(--accent); }
  .footer-sep { width: 1px; height: 14px; background: var(--border); }

  /* ── RESPONSIVE ────────────────────────── */
  @media (max-width: 1023px) {
    .rel-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  }
  @media (max-width: 768px) {
    .nav > .nav-links { display: none; }
    .nav-toggle { display: block; }
    .post-page { padding: 84px 1.25rem 2.5rem; }
    .post-cover { border-radius: var(--radius-sm); }
    .post-body { font-size: 1rem; }
    .host-card { flex-direction: column; gap: 0.9rem; }
    .rel-grid, .blog-grid { grid-template-columns: 1fr; }
    .footer { flex-direction: column; text-align: center; }
    .footer-links { flex-wrap: wrap; justify-content: center; }
  }
