/* mktn.es · Índice del blog (dirección A de Claude Design: "Índice en dos columnas")
   Hero, panel verde con el artículo destacado y filas sin tarjeta en dos columnas (una en móvil). La categoría es una píldora:
   Desarrollo web solo con contorno verde; SEO (aguamarina) y Diseño web (amarillo) rellenas. Sin degradados ni sombras.
   Medidas de las entregas a 1440, 1024 y 375 px. El marcado de las filas lo genera build.js desde blog/posts.json. */

.bl-hero, .bl { --pad: 20px; background: #F4F3EF; color: #161616; font-size: 17px; line-height: 1.5; }
.bl-in { max-width: 1312px; margin: 0 auto; padding: 0 var(--pad); box-sizing: content-box; }
.bl a:focus-visible, .bl-hero a:focus-visible { outline: 2px solid #161616; outline-offset: 4px; border-radius: 2px; }

/* ── Hero ────────────────────────────────────────────────── */
.bl-hero { padding: calc(72px + 48px) 0 40px; }
.bl-hero-g { display: flex; flex-direction: column; gap: 28px; }
.bl-hero h1 { margin: 0; font-size: 38px; line-height: 1; font-weight: 600; letter-spacing: -.04em; text-wrap: balance; }
.bl-side { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.bl-by { display: flex; align-items: center; gap: 12px; }
.bl-by img { display: block; width: 44px; height: 44px; border-radius: 6px; object-fit: cover; background: #E9E7E1; }
.bl-by div { display: flex; flex-direction: column; gap: 2px; }
.bl-by p { margin: 0; font-size: 15px; line-height: 1.3; font-weight: 600; }
.bl-by p + p { font-size: 14px; font-weight: 400; color: #5E5D58; }
.bl-lead { margin: 0; font-size: 17px; line-height: 1.5; color: #5E5D58; max-width: 30em; text-wrap: pretty; }
.bl-lead strong { font-weight: 600; color: #161616; }
.bl-go { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; align-self: flex-start; font-size: 16px; font-weight: 600; color: #161616; text-decoration: none; }
.bl-go span { text-decoration: underline; text-decoration-color: #1F3A30; text-decoration-thickness: 2px; text-underline-offset: 5px; }
.bl-go svg { transition: transform .15s; }
.bl-go:hover svg { transform: translateY(4px); }

/* ── Listado ─────────────────────────────────────────────── */
.bl { padding: 0 0 72px; }
.bl-sec .bl-in { display: flex; flex-direction: column; gap: 40px; }

.bl-feat { position: relative; display: grid; box-sizing: border-box; padding: 22px; border: 2px solid transparent; border-radius: 6px; background: #1F3A30; color: #F4F3EF; transition: background-color .15s, border-color .15s;
  grid-template-columns: minmax(0, 1fr); grid-template-areas: 'tag' 'title' 'cat' 'frase' 'link'; row-gap: 16px; }
.bl-feat:hover { background: #2A443A; border-color: #D7EDE8; }
.bl-tag { grid-area: tag; margin: 0; display: flex; align-items: center; gap: 12px; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #D7EDE8; }
.bl-tag i { display: block; width: 24px; height: 1px; background: #D7EDE8; }
.bl-tag b { font-weight: 600; font-variant-numeric: tabular-nums; }
.bl-feat .ft { grid-area: title; align-self: start; margin: 4px 0 0; font-size: 28px; line-height: 1.05; font-weight: 600; letter-spacing: -.035em; color: #F4F3EF; text-decoration: none; text-wrap: balance; }
.bl-feat .ft::after { content: ''; position: absolute; inset: 0; border-radius: 6px; }
.bl-feat .ft:focus-visible { outline: 2px solid #D7EDE8; outline-offset: 4px; }
.bl-feat .fd { grid-area: frase; margin: 0; font-size: 16px; line-height: 1.5; color: #F4F3EF; max-width: 34em; text-wrap: pretty; }
.bl-feat .more { grid-area: link; justify-self: start; position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-size: 16px; font-weight: 600; color: #F4F3EF; text-decoration: none; }
.bl-feat .more span { text-decoration: underline; text-decoration-color: #D7EDE8; text-decoration-thickness: 2px; text-underline-offset: 5px; }
.bl-feat .more svg { transition: transform .15s; }
.bl-feat:hover .more svg { transform: translateX(4px); }
.bl-feat .more:focus-visible { outline: 2px solid #D7EDE8; outline-offset: 4px; }
.bl-feat .bl-pill { grid-area: cat; border: 1px solid #D7EDE8; background: transparent; color: #D7EDE8; }

.bl-pill { margin: 0; justify-self: start; display: inline-flex; align-items: center; height: 26px; box-sizing: border-box; padding: 0 10px; border-radius: 999px; font-size: 13px; line-height: 1; font-weight: 600; background: transparent; border: 1px solid #1F3A30; color: #1F3A30; }
.bl-pill.seo { background: #D7EDE8; border-color: #D7EDE8; color: #1F3A30; }
.bl-pill.dis { background: #F8E5AB; border-color: #F8E5AB; color: #161616; }

.bl-list { display: grid; grid-template-columns: minmax(0, 1fr); border-bottom: 1px solid #D8D6CF; }
.bl-row { display: flex; border-top: 1px solid #D8D6CF; }
.bl-row a { display: grid; width: calc(100% + 24px); box-sizing: border-box; margin: 0 -12px; padding: 20px 12px 24px; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: 'cat arrow' 'title title' 'frase frase'; grid-template-rows: auto auto 1fr; row-gap: 10px; border-radius: 6px; text-decoration: none; color: #161616; transition: background-color .15s; }
.bl-row a:hover { background: #DDDBD3; }
.bl-row a:focus-visible { outline: 2px solid #161616; outline-offset: 2px; }
.bl-row .bl-pill { grid-area: cat; }
.bl-row h2 { grid-area: title; margin: 2px 0 0; font-size: 20px; line-height: 1.18; font-weight: 600; letter-spacing: -.02em; text-wrap: balance; }
.bl-row .d { grid-area: frase; margin: 0; font-size: 15px; line-height: 1.5; color: #5E5D58; text-wrap: pretty; }
.bl-row svg { grid-area: arrow; align-self: center; transition: transform .15s; }
.bl-row a:hover svg { transform: translateX(4px); }

/* ── 640 px ──────────────────────────────────────────────── */
@media (min-width: 640px) {
  .bl-hero, .bl { --pad: 32px; }
  .bl-hero { padding: calc(72px + 64px) 0 48px; }
  .bl-hero h1 { font-size: 54px; }
  .bl-lead { font-size: 18px; }
  .bl { padding-bottom: 96px; }
  .bl-sec .bl-in { gap: 48px; }
  .bl-feat { padding: 34px; }
  .bl-feat .ft { font-size: 36px; margin-top: 8px; }
  .bl-feat .fd { font-size: 18px; }
  .bl-list { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; }
  .bl-row a { width: calc(100% + 32px); margin: 0 -16px; padding: 24px 16px 28px; row-gap: 12px; }
  .bl-row h2 { margin-top: 4px; font-size: 21px; }
  .bl-row .d { font-size: 16px; }
}

/* ── 1024 px ─────────────────────────────────────────────── */
@media (min-width: 1024px) {
  .bl-hero, .bl { --pad: 64px; }
  .bl-hero { padding: calc(72px + 80px) 0 48px; }
  .bl-hero-g { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: 40px; align-items: end; }
  .bl-hero h1 { font-size: 54px; }
  .bl { padding-bottom: 120px; }
  .bl-sec .bl-in { gap: 64px; }
  .bl-feat { padding: 38px; column-gap: 40px; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); grid-template-areas: 'tag tag' 'title cat' 'title frase' 'title link'; grid-template-rows: auto auto auto 1fr; }
  .bl-list { column-gap: 40px; }
}

/* ── 1280 px ─────────────────────────────────────────────── */
@media (min-width: 1280px) {
  .bl-hero { padding: calc(72px + 104px) 0 64px; }
  .bl-hero-g { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 64px; }
  .bl-hero h1 { font-size: 72px; }
  .bl-lead { font-size: 19px; }
  .bl-feat { padding: 46px; column-gap: 64px; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
  .bl-feat .ft { font-size: 48px; }
  .bl-list { column-gap: 64px; }
  .bl-row h2 { font-size: 24px; }
}

@media (prefers-reduced-motion: reduce) { .bl *, .bl-hero * { transition: none !important; } }
