/* ==========================================================================
   Blog — índice, categorías y artículo
   ========================================================================== */
.migas { display: flex; gap: 8px; align-items: center; font-size: 13px; color: var(--ink-400); margin-bottom: 28px; }
.migas a { color: var(--ink-300); transition: color .15s; }
.migas a:hover { color: var(--brand); }

.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; }
.post-card > a {
  display: flex; flex-direction: column; height: 100%;
  padding: 22px;
  border: 1px solid var(--ink-650); border-radius: var(--r-lg);
  background: var(--ink-850);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
  transition: border-color .18s, box-shadow .22s, transform .18s;
}
.post-card > a:hover {
  border-color: rgba(251,215,8,.24);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06),
              0 0 0 1px rgba(251,215,8,.12),
              0 22px 46px -28px rgba(251,215,8,.42);
  transform: translateY(-2px);
}
.post-cat {
  font-family: var(--mono); font-size: 11px; font-weight: 700;
  letter-spacing: 1.2px; text-transform: uppercase; color: var(--brand);
}
/* `.post-t` es un h2 que antes era h3: mismo aspecto, nivel correcto. */
.post-card h3, .post-card .post-t { margin: 10px 0 9px; font-size: 17px; letter-spacing: -.6px; line-height: 1.25; }
.post-card p { flex: 1; font-size: 14px; color: var(--ink-250); line-height: 1.55; }
.post-meta { margin-top: 16px; font-size: 12.5px; color: var(--ink-400); }

.post-dest {
  display: block; padding: 36px;
  border: 1px solid rgba(251,215,8,.24); border-radius: var(--r-xl);
  background: radial-gradient(90% 120% at 0% 0%, rgba(251,215,8,.09), transparent 60%), var(--ink-850);
  transition: border-color .18s, box-shadow .22s;
}
.post-dest:hover {
  border-color: rgba(251,215,8,.45);
  box-shadow: 0 26px 60px -34px rgba(251,215,8,.5);
}

/* ------------------------------------------------------------- artículo */
.post { padding: 48px 0 0; }
.post-head { max-width: 760px; }
.post-firma { display: flex; align-items: center; gap: 12px; margin-top: 28px; }
.post-firma-av {
  display: grid; place-items: center;
  width: 38px; height: 38px; flex: none;
  border-radius: 12px; background: var(--brand); color: var(--brand-fg);
  font-size: 13px; font-weight: 800;
}

.post-body { max-width: 68ch; margin: 44px 0 0; font-size: 17px; line-height: 1.75; color: var(--ink-150); }
.post-body > * + * { margin-top: 20px; }
.post-body h2 {
  margin-top: 48px; font-size: 26px; letter-spacing: -1px;
  padding-top: 28px; border-top: 1px solid var(--ink-650);
}
.post-body h3 { margin-top: 34px; font-size: 20px; letter-spacing: -.7px; }
.post-body h4 { margin-top: 26px; font-size: 17px; }
.post-body strong { color: var(--ink-50); font-weight: 700; }
.post-body a { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }
.post-body code {
  padding: 2px 6px; border-radius: 5px;
  background: var(--ink-800); border: 1px solid var(--ink-650);
  font-family: var(--mono); font-size: .88em;
}
.post-body ul, .post-body ol { display: grid; gap: 10px; }
.post-body li { position: relative; padding-left: 24px; }
.post-body ul > li::before {
  content: ""; position: absolute; left: 6px; top: 12px;
  width: 6px; height: 6px; border-radius: 50%; background: var(--brand);
}
.post-body ol { counter-reset: n; }
.post-body ol > li { counter-increment: n; }
.post-body ol > li::before {
  content: counter(n) "."; position: absolute; left: 0; top: 0;
  color: var(--brand); font-weight: 700; font-size: .9em;
}
.post-body blockquote {
  margin: 28px 0; padding: 18px 22px;
  border-left: 3px solid var(--brand);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  background: rgba(251,215,8,.06);
}
.post-body blockquote p { font-size: 17px; color: var(--ink-50); font-style: italic; }
.post-body hr { margin: 36px 0; height: 1px; background: var(--ink-650); border: 0; }

/* `.tabla-scroll` vive ahora en moostreak-site.css: la usa también la
   comparativa de precios, donde esta hoja no se carga. */
.post-body table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.post-body th, .post-body td { padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--ink-650); }
.post-body th { background: var(--ink-800); font-weight: 700; color: var(--ink-50); white-space: nowrap; }
.post-body td { color: var(--ink-250); }
.post-body tr:last-child td { border-bottom: 0; }

.post-pie { max-width: 68ch; margin: 56px 0 0; padding-top: 36px; border-top: 1px solid var(--ink-650); }

@media (max-width: 900px) { .post-grid { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 640px) {
  .post-grid { grid-template-columns: minmax(0,1fr); }
  .post-body { font-size: 16px; }
  .post-dest { padding: 24px; }
}

/* En pantalla estrecha una tabla de varias columnas no cabe, y recortarla con
   overflow no evita que la página entera acabe desplazándose. Así que se deja
   de tratar como tabla: cada fila pasa a ser un bloque y el rótulo de cada
   dato sale del `data-col` que lleva la celda. */
@media (max-width: 620px) {
  .post-body .tabla-scroll { border: 0; }
  .post-body table, .post-body tbody, .post-body tr, .post-body td { display: block; width: auto; }
  .post-body thead { display: none; }
  .post-body tbody tr {
    margin-bottom: 12px; padding: 12px 14px;
    border: 1px solid var(--ink-650); border-radius: var(--r-lg);
    background: var(--ink-875);
  }
  .post-body tbody td {
    display: flex; align-items: baseline; justify-content: space-between; gap: 14px;
    padding: 6px 0; border: 0; text-align: right;
  }
  .post-body tbody td::before {
    content: attr(data-col);
    flex: none; max-width: 45%;
    font-size: 12.5px; color: var(--ink-300); text-align: left;
  }
  .post-body tbody td:first-child {
    display: block; text-align: left;
    padding: 0 0 8px; margin-bottom: 6px;
    color: var(--ink-50); font-weight: 700;
    border-bottom: 1px solid var(--ink-750);
  }
  .post-body tbody td:first-child::before { content: none; }
}
