/* BASOLS · blog.css — índice del blog, categorías, etiquetas y búsqueda */

/* Cabecera del blog */
.b-bh { padding: 56px var(--b-g) 72px; }
.b-bh__t { margin-top: 40px; font-size: clamp(48px, 6.6vw, 96px); }
.b-srch { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; align-items: center; gap: 12px; margin-top: 56px; padding-bottom: 6px; border-bottom: 1px solid var(--b-ink); }
.b-srch:focus-within { border-bottom-color: var(--b-sig); }
.b-srch__p { font: 300 40px/1 var(--b-font-mono); color: var(--b-sig); }
.b-srch input { width: 100%; height: 64px; border: 0; outline: 0; background: transparent; font: 300 clamp(22px, 2.6vw, 36px)/1.3 var(--b-font-display); letter-spacing: -.017em; color: var(--b-ink); }
.b-srch input::placeholder { color: #B4B8BA; }
.b-srch input::-webkit-search-cancel-button { -webkit-appearance: none; }
.b-srch button { height: 40px; padding: 0 16px; border: 1px solid var(--b-ink); color: var(--b-ink); }
.b-srch button:hover { background: var(--b-ink); color: var(--b-bg); }
.b-bh__cats { margin-top: 20px; }

/* Cabecera de categoría */
.b-chd { padding: 56px var(--b-g) 72px; }
.b-chd__big { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; margin-top: 24px; padding-bottom: 28px; border-bottom: 1px solid var(--b-ink); }
.b-chd__big h1 { margin: 0; font: 300 clamp(64px, 13vw, 200px)/.86 var(--b-font-display); letter-spacing: -.039em; overflow-wrap: anywhere; }
.b-chd__big h1 i { display: inline-block; width: .1em; height: .1em; margin-left: .04em; background: var(--b-sig); }
.b-chd__stat { display: flex; gap: 40px; margin: 0; padding-bottom: 12px; }
.b-chd__stat > div { display: flex; flex-direction: column; gap: 10px; }
.b-chd__stat dt { color: var(--b-ink-3); }
.b-chd__stat dd { margin: 0; font: 400 32px/1 var(--b-font-display); letter-spacing: -.017em; white-space: nowrap; }
.b-chd__ds { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: 64px; align-items: start; margin-top: 28px; }
.b-chd__ds p { margin: 0; font: 400 19px/1.6 var(--b-font-sans); color: var(--b-ink-2); }

/* Desplegable de categorías (details/summary, sin JS) */
.b-dd { position: relative; justify-self: end; }
.b-dd summary { display: grid; grid-template-columns: auto minmax(0, 1fr) auto 12px; align-items: center; gap: 14px; min-width: 320px; height: 52px; padding: 0 18px; border: 1px solid var(--b-ink); cursor: pointer; list-style: none; transition: background-color .2s; }
.b-dd summary::-webkit-details-marker { display: none; }
.b-dd summary > .b-mono:first-child, .b-dd__n { color: var(--b-ink-3); }
.b-dd summary:hover, .b-dd[open] summary { background: var(--b-surface); }
.b-dd__v { font: 500 17px/1 var(--b-font-display); letter-spacing: -.006em; }
.b-dd__c { width: 12px; height: 8px; fill: none; stroke: var(--b-ink); stroke-width: 1.6; transition: transform .25s; }
.b-dd[open] .b-dd__c { transform: rotate(180deg); }
.b-dd__m { position: absolute; right: 0; top: calc(100% + 6px); z-index: 20; min-width: 100%; margin: 0; padding: 6px 0; list-style: none; background: var(--b-surface); border: 1px solid var(--b-ink); box-shadow: 0 20px 40px -24px rgba(14, 17, 17, .35); }
.b-dd__m a { display: flex; justify-content: space-between; align-items: center; gap: 14px; height: 44px; padding: 0 18px; color: var(--b-ink); text-decoration: none; font: 400 15px/1 var(--b-font-sans); }
.b-dd__m a:hover { background: rgba(14, 17, 17, .04); }
.b-dd__m a .b-mono { color: var(--b-ink-3); }
.b-dd__m a[aria-current="page"] { background: var(--b-ink); color: var(--b-bg); }
.b-dd__m a[aria-current="page"] .b-mono { color: var(--b-sig); }

/* Destacado */
.b-feat-w { padding-bottom: 72px; }
.b-feat { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); border-top: 1px solid var(--b-ink); border-bottom: 1px solid var(--b-ink); color: var(--b-ink); text-decoration: none; }
.b-feat__cov { position: relative; display: flex; flex-direction: column; justify-content: space-between; min-height: 400px; padding: 28px 32px; overflow: hidden; background: var(--b-ink); color: var(--b-bg); }
.b-feat__cov .b-mono { position: relative; z-index: 1; color: var(--b-ink-inv); }
.b-feat__cov b { position: absolute; left: 24px; bottom: -.14em; font: 300 clamp(120px, 19vw, 280px)/1 var(--b-font-display); letter-spacing: -.033em; white-space: nowrap; transition: transform .6s var(--b-ease); }
.b-feat__cov b::after { content: ""; position: absolute; right: -.1em; bottom: .28em; width: .08em; height: .08em; background: var(--b-sig); }
.b-feat:hover .b-feat__cov b { transform: translateX(12px); }
.b-feat__t { display: flex; flex-direction: column; gap: 18px; padding: 32px 0 32px 40px; }
.b-feat__t > .b-mono { color: var(--b-ink-3); }
.b-feat__t h2 { margin: 0; font: 400 clamp(26px, 2.6vw, 36px)/1.1 var(--b-font-display); letter-spacing: -.019em; }
.b-feat__t p { margin: 0; font: 400 16px/1.65 var(--b-font-sans); color: var(--b-ink-2); }
.b-feat__go { margin-top: auto; display: inline-flex; align-items: center; gap: 12px; font: 500 15px/1 var(--b-font-sans); }
.b-feat__go .b-arrow { width: 12px; height: 12px; fill: var(--b-ink); }
.b-feat:hover .b-feat__go .b-arrow { transform: rotate(-45deg); fill: var(--b-sig); }

/* Listado */
.b-blist { padding-top: 0; }
.b-blist__bar { display: flex; justify-content: space-between; align-items: center; gap: 16px 28px; flex-wrap: wrap; margin-bottom: 24px; }
.b-blist__bar > .b-mono { color: var(--b-ink-3); }
.b-blist__tools { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
.b-blist__tool { display: flex; align-items: center; gap: 16px; }
.b-blist__tool > .b-mono { color: var(--b-ink-3); }
html.js .b-blist__view[hidden] { display: flex !important; }

/* Tarjeta de post: grid (por defecto) */
.b-posts { border-top: 1px solid var(--b-ink); }
.b-posts--grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 24px; padding-top: 32px; }
.b-pc { display: flex; flex-direction: column; gap: 14px; color: var(--b-ink); text-decoration: none; }
.b-pc__cov { position: relative; display: flex; flex-direction: column; justify-content: space-between; height: 220px; padding: 20px 22px; overflow: hidden; background: var(--b-ink); color: var(--b-bg); }
.b-pc__cov .b-mono { position: relative; z-index: 1; color: var(--b-ink-inv); }
.b-pc__cov i { position: absolute; right: 20px; top: 20px; width: 10px; height: 10px; background: var(--b-sig); }
.b-pc__cov b { position: absolute; left: 16px; bottom: -.18em; font: 300 120px/1 var(--b-font-display); letter-spacing: -.033em; white-space: nowrap; transition: transform .5s var(--b-ease); }
.b-pc:hover .b-pc__cov b { transform: translateX(8px); }
.b-pc__m { display: flex; justify-content: space-between; gap: 12px; color: var(--b-ink-3); }
.b-pc__t { margin: 0; font: 500 21px/1.25 var(--b-font-display); letter-spacing: -.008em; }
.b-pc:hover .b-pc__t { text-decoration: underline; text-decoration-color: var(--b-sig); text-underline-offset: 5px; }
.b-pc__x { margin: 8px 0 0; font: 400 15px/1.55 var(--b-font-sans); color: var(--b-ink-2); }
.b-posts--grid .b-pc__c, .b-posts--grid .b-pc > .b-arrow { display: none; }

/* Tarjeta de post: lista */
.b-posts--list .b-pc { display: grid; grid-template-columns: 160px minmax(0, 1fr) 200px 32px; gap: 24px; align-items: baseline; padding: 26px 0; border-bottom: 1px solid var(--b-hair); transition: background-color .2s, padding .35s var(--b-ease); }
.b-posts--list .b-pc:hover { padding-left: 12px; background: rgba(14, 17, 17, .025); }
.b-posts--list .b-pc__cov { display: none; }
.b-posts--list .b-pc__m { flex-direction: column; gap: 6px; }
.b-posts--list .b-pc__t { font-size: 22px; }
.b-posts--list .b-pc__x { max-width: 70ch; }
.b-posts--list .b-pc__c { color: var(--b-ink-3); line-height: 1.5; }
.b-posts--list .b-pc > .b-arrow { width: 12px; height: 12px; justify-self: end; fill: var(--b-ink); }
.b-posts--list .b-pc:hover > .b-arrow { transform: rotate(-45deg); fill: var(--b-sig); }

/* Otras categorías */
.b-oc { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--b-ink); }
.b-oc a { display: flex; flex-direction: column; gap: 12px; padding: 28px 28px 32px; border-bottom: 1px solid var(--b-hair); border-left: 1px solid var(--b-hair); color: var(--b-ink); text-decoration: none; transition: background-color .2s; }
.b-oc a:nth-child(3n+1) { padding-left: 0; border-left: 0; }
.b-oc a:hover { background: rgba(14, 17, 17, .025); }
.b-oc .b-mono { color: var(--b-ink-3); }
.b-oc strong { font: 300 clamp(36px, 3.4vw, 48px)/1 var(--b-font-display); letter-spacing: -.028em; }
.b-oc p { margin: 0; font: 400 14px/1.55 var(--b-font-sans); color: var(--b-ink-2); }

@media (max-width: 1100px) {
  .b-posts--grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .b-posts--list .b-pc { grid-template-columns: 130px minmax(0, 1fr) 24px; }
  .b-posts--list .b-pc__c { display: none; }
  .b-feat { grid-template-columns: minmax(0, 1fr); }
  .b-feat__cov { min-height: 300px; }
  .b-feat__t { padding: 28px 0; }
  .b-chd__big { flex-direction: column; align-items: flex-start; }
  .b-chd__ds { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .b-dd { justify-self: start; }
  .b-oc { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .b-oc a:nth-child(3n+1) { padding-left: 28px; border-left: 1px solid var(--b-hair); }
  .b-oc a:nth-child(2n+1) { padding-left: 0; border-left: 0; }
}
@media (max-width: 600px) {
  .b-bh, .b-chd { padding: 40px var(--b-g) 56px; }
  .b-srch { grid-template-columns: 24px minmax(0, 1fr); margin-top: 40px; }
  .b-srch__p { font-size: 28px; }
  .b-srch button { display: none; }
  .b-posts--grid { grid-template-columns: minmax(0, 1fr); }
  .b-posts--list .b-pc { grid-template-columns: minmax(0, 1fr) 20px; gap: 10px 16px; }
  .b-posts--list .b-pc__m { grid-column: 1 / -1; flex-direction: row; }
  .b-pc__cov { height: 180px; }
  .b-chd__stat { gap: 28px; }
  .b-dd summary { min-width: 0; width: 100%; }
  .b-dd { width: 100%; }
  .b-oc { grid-template-columns: minmax(0, 1fr); }
  .b-oc a, .b-oc a:nth-child(n) { padding-left: 0; padding-right: 0; border-left: 0; }
  .b-blist__view { display: none !important; }
}
