/* Blog. Mismo sistema que el resto del sitio (Inter en pesos extremos, rojo
   que aparece poco), pero sobre papel: aca se lee, no se mira un video.
   El negro queda para la barra, el cierre y el pie, asi el blog se siente
   una habitacion del mismo edificio y no otro sitio. */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
:root {
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --tinta: #b92025;
  --fondo: #0c0c0c;
  --papel: #efeade;
  --papel-luz: #f7f4ec;
  --papel-sombra: #e2dccd;
  --texto: #141414;
  --texto-2: rgba(20, 20, 20, 0.68);
  --texto-3: rgba(20, 20, 20, 0.52);
  --linea: rgba(20, 20, 20, 0.14);
  --gutter: 48px;
}
body {
  background: var(--papel);
  color: var(--texto);
  font-family: 'Inter', sans-serif;
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--tinta); color: #fff; }
a { color: inherit; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--tinta); outline-offset: 3px; }

/* ── NAV (negra, como el resto del sitio) ── */
.blog-nav {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px var(--gutter);
  background: var(--fondo); color: #fff;
}
.blog-logo {
  font-size: 13px; font-weight: 800; letter-spacing: 0.06em; text-decoration: none; color: #fff;
}
.blog-logo sup { font-size: 8px; vertical-align: super; }
.blog-nav-links { display: flex; align-items: center; gap: 28px; }
.blog-nav-links a {
  font-size: 11px; font-weight: 500; letter-spacing: 0.13em; text-transform: uppercase;
  color: rgba(255,255,255,0.72); text-decoration: none;
  transition: color 200ms ease;
}
.blog-nav-links a[aria-current="page"] { color: #fff; }
.blog-nav a:focus-visible { outline-color: #fff; }

/* Progreso de lectura: una linea roja que acompana el scroll. Solo en
   navegadores con scroll-driven animations; el resto no ve nada. */
.lectura-barra {
  position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--tinta);
  transform: scaleX(0); transform-origin: left center;
}
@supports (animation-timeline: scroll()) {
  .lectura-barra { animation: lectura linear both; animation-timeline: scroll(root); }
  @keyframes lectura { to { transform: scaleX(1); } }
}

/* ── MIGAS ── */
.migas {
  display: flex; flex-wrap: wrap; gap: 8px;
  list-style: none;
  font-size: 12px; color: var(--texto-3);
}
.migas li + li::before { content: '/'; margin-right: 8px; color: var(--texto-3); }
.migas a { text-decoration: none; color: var(--texto-2); transition: color 200ms ease; }
.migas [aria-current] { color: var(--texto); }

/* ── CABECERA DEL BLOG: titulo a la izquierda, bajada a la derecha ── */
.blog-cabecera { padding: 48px var(--gutter) 40px; }
.blog-cabecera-fila {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 24px 64px; align-items: end; margin-top: 28px;
}
.blog-titulo {
  font-size: clamp(34px, 4.4vw, 60px);
  font-weight: 900; line-height: 1; letter-spacing: -0.035em;
  max-width: 16ch; text-wrap: balance;
}
.blog-bajada {
  font-size: 15px; line-height: 1.6;
  color: var(--texto-2); max-width: 52ch; text-wrap: pretty;
}

/* ── FILTRO + BUSCADOR ── */
.filtro {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 14px 24px;
  padding: 0 var(--gutter) 28px;
}
.filtro-grupo { display: flex; align-items: center; gap: 10px 18px; min-width: 0; flex-wrap: wrap; }
.filtro-label { font-size: 12px; color: var(--texto-3); white-space: nowrap; }
.filtro-opciones { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; }
.filtro button {
  font: inherit; font-size: 13px; font-weight: 500;
  color: var(--texto-2); background: transparent;
  border: 1px solid transparent; border-radius: 999px;
  padding: 6px 13px; cursor: pointer;
  transition: color 200ms ease, border-color 200ms ease, transform 160ms var(--ease-out);
}
.filtro button[aria-pressed="true"] { color: var(--texto); border-color: var(--texto); }
.filtro button:active { transform: scale(0.97); }
.buscador { position: relative; display: block; }
.buscador input {
  font: inherit; font-size: 13px; color: var(--texto);
  width: 240px; padding: 9px 14px 9px 36px;
  background: var(--papel-luz); border: 1px solid var(--linea); border-radius: 999px;
  outline: none; transition: border-color 200ms ease;
}
.buscador input::placeholder { color: var(--texto-3); }
.buscador input:focus-visible { border-color: var(--texto); }
.buscador svg {
  position: absolute; left: 13px; top: 50%; width: 14px; height: 14px;
  transform: translateY(-50%); color: var(--texto-3); pointer-events: none;
}

/* ── GRILLA DE NOTAS ── */
.notas {
  list-style: none; padding: 0 var(--gutter);
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px;
}
.nota[hidden] { display: none; }
.nota-link {
  display: flex; flex-direction: column; height: 100%;
  padding: 18px 18px 16px;
  background: var(--papel-luz);
  border: 1px solid var(--linea); border-radius: 4px;
  text-decoration: none;
  transition: border-color 200ms ease, box-shadow 240ms var(--ease-out);
}
.nota-cats { display: flex; flex-wrap: wrap; gap: 6px; }
.nota-cat {
  font-size: 11px; font-weight: 600; color: var(--tinta);
  border: 1px solid currentColor; border-radius: 999px; padding: 3px 10px;
}
.nota-titulo {
  margin-top: 14px; min-height: 3.6em;
  font-size: 19px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.2;
  text-wrap: balance; transition: color 200ms ease;
}
.nota-foto {
  margin-top: 16px; aspect-ratio: 16 / 10; overflow: hidden;
  border-radius: 2px; background: var(--papel-sombra);
}
.nota-foto img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 400ms var(--ease-out);
}
.nota-pie {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  margin-top: auto; padding-top: 14px;
  font-size: 12px; color: var(--texto-3); font-variant-numeric: tabular-nums;
}
.nota-autor { color: var(--texto); font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; font-size: 11px; }

/* En preparacion: misma tarjeta, sin link ni foto. Muestra hacia donde va
   el blog sin fingir que ya existe. */
.nota-pendiente .nota-link { cursor: default; background: transparent; border-style: dashed; }
.nota-pendiente .nota-titulo { color: var(--texto-3); }
.nota-pendiente .nota-cat { color: var(--texto-3); }
.nota-pendiente .nota-foto { background: transparent; border: 1px dashed var(--linea); }

.notas-vacio { padding: 40px var(--gutter) 0; font-size: 15px; color: var(--texto-2); }

/* ── ARTICULO ── */
.art-cabecera { padding: 56px var(--gutter) 48px; max-width: 1040px; }
.art-cat {
  display: inline-block; margin-top: 36px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--tinta); text-decoration: none;
}
.art-titulo {
  font-size: clamp(34px, 5.6vw, 72px);
  font-weight: 900; line-height: 0.98; letter-spacing: -0.04em;
  margin: 36px 0 24px; text-wrap: balance;
}
.art-bajada {
  font-size: clamp(16px, 1.6vw, 20px); line-height: 1.55;
  color: var(--texto-2); max-width: 58ch; text-wrap: pretty;
}
.art-meta {
  display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 28px;
  font-size: 13px; color: var(--texto-3); font-variant-numeric: tabular-nums;
}
.art-meta strong { color: var(--texto); font-weight: 600; }

.art-foto { margin: 0 var(--gutter); }
.art-foto img {
  width: 100%; aspect-ratio: 16 / 7; object-fit: cover; display: block; border-radius: 2px;
  background: var(--papel-sombra);
}
.art-foto figcaption { margin-top: 12px; font-size: 12px; color: var(--texto-3); }

.art-cuerpo {
  display: grid; grid-template-columns: 220px minmax(0, 1fr);
  gap: 64px; padding: 88px var(--gutter) 0;
}
.art-indice { position: sticky; top: 96px; align-self: start; }
.art-indice h2 { font-size: 12px; font-weight: 600; color: var(--texto-3); margin-bottom: 14px; }
.art-indice ol { list-style: none; display: grid; gap: 10px; }
.art-indice a {
  font-size: 13.5px; line-height: 1.4; color: var(--texto-2); text-decoration: none;
  transition: color 200ms ease;
}

.prosa { max-width: 68ch; }
.prosa > * + * { margin-top: 22px; }
.prosa p, .prosa li { font-size: 17.5px; line-height: 1.72; color: rgba(20,20,20,0.86); text-wrap: pretty; }
.prosa h2 {
  font-size: clamp(24px, 2.6vw, 34px); font-weight: 800;
  letter-spacing: -0.03em; line-height: 1.08;
  margin-top: 64px; scroll-margin-top: 96px; text-wrap: balance;
}
.prosa h2 + p { margin-top: 18px; }
.prosa ul, .prosa ol { padding-left: 1.2em; display: grid; gap: 10px; }
.prosa li::marker { color: var(--tinta); }
.prosa strong { font-weight: 700; color: var(--texto); }
.prosa a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: var(--tinta); }
.prosa blockquote {
  margin: 44px 0; padding: 0;
  font-size: clamp(22px, 2.4vw, 30px); font-weight: 800; line-height: 1.2;
  letter-spacing: -0.025em; color: var(--texto); text-wrap: balance;
}

.art-volver { padding: 72px var(--gutter) 0; }
.art-volver a {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 600; text-decoration: none;
}
.art-volver svg { width: 16px; height: 16px; transition: transform 240ms var(--ease-out); }

/* ── CIERRE (vuelve al negro y al rojo del sitio) ── */
.blog-cta {
  margin-top: 120px; padding: 80px var(--gutter);
  background: linear-gradient(to bottom, #0c0c0c 0%, #240406 30%, #6e1418 70%, #b92025 100%);
  color: #fff;
}
.blog-cta h2 {
  font-size: clamp(30px, 4.6vw, 58px); font-weight: 900;
  letter-spacing: -0.03em; line-height: 1.02; max-width: 18ch; text-wrap: balance;
}
.blog-cta-fila { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; margin-top: 34px; }
.blog-btn {
  background: #fff; color: #0c0c0c; text-decoration: none;
  padding: 14px 30px; border-radius: 2px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.13em; text-transform: uppercase;
  transition: transform 160ms var(--ease-out), background 200ms ease;
}
.blog-btn:active { transform: scale(0.97); }
.blog-mail { font-size: 13px; color: rgba(255,255,255,0.82); text-decoration: none; }
.blog-cta a:focus-visible { outline-color: #fff; }

.blog-footer {
  background: var(--fondo); color: #fff;
  padding: 96px var(--gutter) 56px;
  display: flex; justify-content: space-between; align-items: flex-end; gap: 28px; flex-wrap: wrap;
}
.blog-footer .marca { font-size: 28px; font-weight: 900; letter-spacing: -0.02em; }
.blog-footer .marca sup { font-size: 11px; vertical-align: super; }
.blog-footer nav a {
  display: block; font-size: 12.5px; color: rgba(255,255,255,0.62);
  text-decoration: none; margin-bottom: 10px; transition: color 200ms ease;
}
.blog-footer a:focus-visible { outline-color: #fff; }

/* ── HOVER: solo con mouse real ── */
@media (hover: hover) and (pointer: fine) {
  .blog-nav-links a:hover { color: #fff; }
  .migas a:hover { color: var(--texto); }
  .filtro button:hover { color: var(--texto); border-color: var(--linea); }
  .filtro button[aria-pressed="true"]:hover { border-color: var(--texto); }
  a.nota-link:hover { border-color: rgba(20,20,20,0.32); box-shadow: 0 10px 24px -14px rgba(20,20,20,0.28); }
  a.nota-link:hover .nota-titulo { color: var(--tinta); }
  a.nota-link:hover img { transform: scale(1.03); }
  .art-indice a:hover { color: var(--texto); }
  .art-volver a:hover svg { transform: translateX(-4px); }
  .blog-btn:hover { background: rgba(255,255,255,0.88); }
  .blog-footer nav a:hover { color: #fff; }
}

/* ── TABLET ── */
@media (max-width: 1080px) and (min-width: 861px) {
  .notas { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ── CELULAR ── */
@media (max-width: 860px) {
  :root { --gutter: 20px; }
  .blog-nav { padding: 16px var(--gutter); }
  .blog-nav-links { gap: 18px; }
  .blog-cabecera { padding: 36px var(--gutter) 32px; }
  .blog-cabecera-fila { grid-template-columns: minmax(0, 1fr); gap: 16px; margin-top: 22px; }
  .filtro { flex-direction: column; align-items: stretch; }
  .filtro-grupo { flex-wrap: nowrap; }
  .filtro-opciones { flex-wrap: nowrap; overflow-x: auto; margin-right: calc(var(--gutter) * -1); padding-right: var(--gutter); scrollbar-width: none; }
  .filtro-opciones::-webkit-scrollbar { display: none; }
  .filtro button { white-space: nowrap; }
  .filtro-grupo, .filtro-opciones { min-width: 0; }
  .buscador, .buscador input { width: 100%; }
  .notas { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .nota-titulo { min-height: 0; }
  .art-cabecera { padding: 36px var(--gutter) 36px; }
  .art-foto img { aspect-ratio: 4 / 3; }
  .art-cuerpo { grid-template-columns: minmax(0, 1fr); gap: 40px; padding-top: 48px; }
  .art-indice { position: static; border-top: 1px solid var(--linea); border-bottom: 1px solid var(--linea); padding: 20px 0; }
  .prosa p, .prosa li { font-size: 16.5px; }
  .prosa h2 { margin-top: 52px; }
  .blog-cta { margin-top: 88px; padding: 64px var(--gutter); }
  .blog-footer { padding: 72px var(--gutter) 44px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .lectura-barra { animation: none; display: none; }
  *, *::before, *::after { transition-duration: 0ms !important; }
}
