/* =========================================================
   SAMMAWEB · Blog (entrada, /noticias/ y categorías)
   Se apoya en home.css (variables, header, botones, pie).
   ========================================================= */
body.bl { background: #fff; color: var(--ink); }
.bl .header { background: var(--night); }
.bl main { padding-top: var(--hd); }
.bl .footer { margin-top: 0; }

/* ---------- Comunes ---------- */
.bl-cat { color: var(--red); font-weight: 500; }
.bl-meta { color: var(--mute); font-size: 11px; }
.bl-meta i { font-style: normal; opacity: .5; margin-inline: 8px; }
.bl-ttl { font-stretch: 82%; font-weight: 600; line-height: 1.15; letter-spacing: -.005em; text-wrap: pretty; }
.bl-ttl span { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .5s var(--ease); }
a:hover .bl-ttl span { background-size: 100% 1px; }
.bl-img { overflow: hidden; background: var(--paper); }
.bl-img img { width: 100%; height: 100%; object-fit: cover; transition: scale 1s var(--ease); }
a:hover .bl-img img { scale: 1.04; }

/* =========================================================
   ENTRADA
   ========================================================= */
.progreso { position: fixed; left: 0; top: 0; z-index: 200; height: 3px; width: 100%; background: var(--red); transform-origin: 0 50%; transform: scaleX(0); }

.art-head { max-width: 980px; margin-inline: auto; padding: clamp(48px, 7vw, 96px) var(--gutter) clamp(32px, 4vw, 48px); text-align: center; display: grid; justify-items: center; gap: 22px; }
.migas { color: var(--mute); display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.migas a:hover { color: var(--red); }
.migas i { font-style: normal; opacity: .45; }
.art-head h1 { font-size: clamp(36px, 5.2vw, 72px); font-stretch: 78%; font-weight: 650; line-height: 1.02; letter-spacing: -.015em; text-wrap: balance; }
.art-dek { font-size: clamp(18px, 1.7vw, 22px); line-height: 1.5; color: var(--mute); max-width: 44ch; text-wrap: balance; }
.art-by { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 0; color: var(--mute); }
.art-by b { color: var(--ink); font-weight: 500; }
.art-by i { font-style: normal; opacity: .45; margin-inline: 10px; }

.art-hero { max-width: 1240px; margin-inline: auto; padding-inline: var(--gutter); }
.art-hero .bl-img { aspect-ratio: 16 / 9; }

.art-body { display: grid; grid-template-columns: 1fr minmax(0, 700px) 1fr; gap: 0 clamp(24px, 4vw, 64px); max-width: 1320px; margin-inline: auto; padding: clamp(48px, 6vw, 88px) var(--gutter) 0; }
.art-share { grid-column: 1; justify-self: end; }
.art-share__in { position: sticky; top: calc(var(--hd) + 32px); display: grid; gap: 10px; justify-items: center; }
.art-share .mono { color: var(--mute); font-size: 10px; writing-mode: vertical-rl; transform: rotate(180deg); margin-bottom: 6px; }
.share-btn { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid var(--line); color: var(--ink); transition: border-color .3s, background-color .3s, color .3s; }
.share-btn:hover { border-color: var(--ink); background: var(--ink); color: #fff; }
.share-btn svg { width: 18px; height: 18px; fill: currentColor; }
.share-btn.is-ok { background: var(--red); border-color: var(--red); color: #fff; }

.art-toc { grid-column: 3; }
.art-toc__in { position: sticky; top: calc(var(--hd) + 32px); max-width: 260px; max-height: calc(100vh - var(--hd) - 64px); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: var(--line) transparent; border-top: 1px solid var(--ink); padding-top: 16px; }
.art-toc .mono { color: var(--mute); font-size: 11px; display: block; margin-bottom: 12px; }
.art-toc ol { display: grid; gap: 2px; counter-reset: t; }
.art-toc a { display: grid; grid-template-columns: 24px 1fr; padding: 6px 0; font-size: 14px; line-height: 1.35; color: var(--mute); transition: color .3s; }
.art-toc a::before { counter-increment: t; content: counter(t, decimal-leading-zero); font-family: var(--f-mono); font-size: 10px; padding-top: 3px; color: var(--faint-d); }
.art-toc a:hover { color: var(--ink); }
.art-toc a.is-on { color: var(--ink); font-weight: 600; }
.art-toc a.is-on::before { color: var(--red); }

/* El texto de la nota */
.prosa { grid-column: 2; grid-row: 1; font-size: clamp(18px, 1.25vw, 20px); line-height: 1.72; color: #2A2740; }
.prosa > * + * { margin-top: 1.05em; }
.prosa > .lead { font-size: 1.22em; line-height: 1.55; color: var(--ink); font-weight: 450; }
.prosa h2 { font-size: clamp(27px, 2.3vw, 34px); font-stretch: 82%; font-weight: 650; line-height: 1.15; letter-spacing: -.01em; color: var(--ink); margin-top: 2.1em; scroll-margin-top: calc(var(--hd) + 24px); }
.prosa h3 { font-size: clamp(20px, 1.5vw, 23px); font-stretch: 88%; font-weight: 650; line-height: 1.3; color: var(--ink); margin-top: 1.7em; }
.prosa h2 + *, .prosa h3 + * { margin-top: .6em; }
.prosa strong { font-weight: 650; color: var(--ink); }
.prosa a:not(.chip) { color: var(--ink); text-decoration: underline; text-decoration-color: var(--red); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.prosa a:not(.chip):hover { color: var(--red); }
.prosa ul, .prosa ol { display: grid; gap: .45em; padding-left: 0; }
.prosa ul li { position: relative; padding-left: 26px; }
.prosa ul li::before { content: ""; position: absolute; left: 4px; top: .72em; width: 7px; height: 7px; background: var(--red); }
.prosa ol { counter-reset: n; }
.prosa ol li { position: relative; padding-left: 38px; counter-increment: n; }
.prosa ol li::before { content: counter(n, decimal-leading-zero); position: absolute; left: 0; top: .3em; font-family: var(--f-mono); font-size: 12px; color: var(--red); }
.prosa blockquote { margin: 2em 0; padding: 4px 0 4px 28px; border-left: 3px solid var(--red); font-size: 1.28em; line-height: 1.45; font-stretch: 90%; font-weight: 500; color: var(--ink); }
.prosa blockquote p + p { margin-top: .6em; }
.prosa blockquote cite { display: block; margin-top: 12px; font: 400 12px/1.4 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--mute); font-style: normal; }
.prosa figure img { width: 100%; height: auto; }
.prosa figcaption { margin-top: 10px; font-size: 14px; color: var(--mute); }
.prosa hr { border: 0; height: 1px; background: var(--line); margin: 2.4em 0; }

/* Preguntas frecuentes de la nota, en acordeón */
.faq-nota { margin-top: 1.2em !important; border-top: 1px solid var(--ink); }
.faq-nota details { border-bottom: 1px solid var(--line); }
.faq-nota summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 1fr 28px; gap: 16px; align-items: start; padding: 18px 0; font-size: 19px; font-stretch: 88%; font-weight: 600; line-height: 1.35; color: var(--ink); }
.faq-nota summary::-webkit-details-marker { display: none; }
.faq-nota summary::after { content: "+"; font: 400 22px/1 var(--f-mono); color: var(--red); text-align: center; transition: transform .4s var(--ease); }
.faq-nota details[open] summary::after { transform: rotate(45deg); }
.faq-nota details p { padding: 0 44px 20px 0; font-size: 17px; color: var(--mute); }

/* Cierre de la nota */
.art-tags { margin-top: 3em !important; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.art-tags .mono { color: var(--mute); font-size: 11px; margin-right: 6px; }
.chip { display: inline-flex; align-items: center; height: 34px; padding: 0 14px; font-size: 14px; border: 1px solid var(--line); color: var(--ink); transition: border-color .3s, background-color .3s, color .3s; }
.chip:hover { border-color: var(--ink); }
.chip.is-on { background: var(--ink); border-color: var(--ink); color: #fff; }

.art-autor { display: grid; grid-template-columns: 64px 1fr; gap: 20px; align-items: center; margin-top: 2.4em !important; padding: 24px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.art-autor__av { width: 64px; height: 64px; display: grid; place-items: center; background: var(--night); color: #fff; font-stretch: 75%; font-weight: 700; font-size: 24px; }
.art-autor b { display: block; font-size: 18px; color: var(--ink); }
.art-autor p { margin: 2px 0 0; font-size: 15px; color: var(--mute); line-height: 1.5; }

.art-cta { grid-column: 1 / -1; margin-top: clamp(64px, 8vw, 110px); background: var(--night); color: var(--ink-d); position: relative; overflow: hidden; }
.art-cta__in { max-width: 1320px; margin-inline: auto; padding: clamp(48px, 6vw, 80px) var(--gutter); display: grid; grid-template-columns: minmax(0, 1.4fr) auto; gap: 32px; align-items: end; }
.art-cta h2 { font-size: clamp(34px, 4.4vw, 64px); color: #fff; }
.art-cta p { margin-top: 18px; color: var(--mute-d); max-width: 52ch; font-size: 18px; }
/* 17/11/2026: el título ocupa todo el ancho (en una línea si entra; si no, renglones parejos, sin una palabra colgada)
   y el texto y el botón van abajo, uno a cada lado */
.art-cta__in > div { display: contents; }
.art-cta h2 { grid-column: 1 / -1; text-wrap: balance; }
.art-cta p { grid-column: 1; margin-top: 0; }
.art-cta__in > .btn { grid-column: 2; }

.relacionadas { padding: clamp(72px, 9vw, 130px) 0; }
.relacionadas .sec-head--row { margin-bottom: clamp(32px, 4vw, 56px); }
.relacionadas h2 { font-size: clamp(32px, 3.6vw, 52px); color: var(--ink); }
.relacionadas .ulink { color: var(--mute); }

/* =========================================================
   TARJETAS (blog, categorías y relacionadas)
   ========================================================= */
.tarjetas { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(40px, 4vw, 64px) clamp(20px, 2.6vw, 40px); }
.tarjeta a { display: grid; gap: 14px; align-content: start; }
.tarjeta .bl-img { aspect-ratio: 16 / 10; margin-bottom: 4px; }
.tarjeta .bl-ttl { font-size: clamp(20px, 1.6vw, 24px); }
.tarjeta p { color: var(--mute); font-size: 16px; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* =========================================================
   BLOG Y CATEGORÍAS
   ========================================================= */
.bl-hero { background: var(--night); color: var(--ink-d); position: relative; overflow: hidden; }
.bl-hero__in { max-width: var(--max); margin-inline: auto; padding: clamp(64px, 9vw, 130px) var(--gutter) 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; position: relative; z-index: 2; }
.bl-hero .eyebrow { color: var(--mute-d); }
.bl-hero h1 { font-size: clamp(54px, 10vw, 160px); color: #fff; }
.bl-hero__row { display: flex; justify-content: space-between; align-items: end; gap: 24px 48px; flex-wrap: wrap; }
.bl-hero p { font-size: clamp(17px, 1.4vw, 20px); color: var(--mute-d); max-width: 54ch; }
.bl-hero .migas { justify-content: flex-start; color: var(--mute-d); }
.bl-hero__n { color: var(--mute-d); }
.bl-hero__n b { display: block; font: 600 clamp(40px, 5vw, 72px)/1 var(--f-display); font-stretch: 68%; color: #fff; letter-spacing: 0; }

.filtros { margin-top: clamp(36px, 5vw, 64px); border-top: 1px solid var(--line-d); display: flex; gap: 24px; align-items: center; justify-content: space-between; padding: 18px 0; }
.filtros__cats { flex: 1; min-width: 0; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; mask-image: linear-gradient(90deg, #000 calc(100% - 48px), transparent); }
.filtros__cats::-webkit-scrollbar { display: none; }
.bl-hero .chip { flex: none; color: var(--ink-d); border-color: rgba(255, 255, 255, .18); }
.bl-hero .chip:hover { border-color: rgba(255, 255, 255, .6); }
.bl-hero .chip.is-on { background: #fff; border-color: #fff; color: var(--ink); }
.bl-hero .chip small { font-family: var(--f-mono); font-size: 10px; margin-left: 8px; opacity: .6; }
.buscar { flex: none; display: flex; align-items: center; gap: 10px; height: 40px; padding: 0 14px; border: 1px solid rgba(255, 255, 255, .18); }
.buscar svg { width: 16px; height: 16px; fill: none; stroke: var(--mute-d); stroke-width: 2; }
.buscar input { width: 180px; background: none; border: 0; color: #fff; font: inherit; font-size: 15px; outline: none; }
.buscar input::placeholder { color: var(--faint-d); }

.bl-sec { padding: clamp(56px, 7vw, 100px) 0; }
.bl-sec + .bl-sec { padding-top: 0; }
.bl-sec__t { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; border-top: 1px solid var(--ink); padding-top: 16px; margin-bottom: clamp(28px, 3vw, 44px); }
.bl-sec__t .mono { color: var(--mute); }

/* La portada (igual a la de la home) */
.portada { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); align-items: start; }
.portada__main a { display: grid; gap: 16px; }
.portada__main .bl-img { aspect-ratio: 16 / 10; margin-bottom: 4px; }
.portada__main .bl-ttl { font-size: clamp(26px, 2.3vw, 36px); }
.portada__main p { color: var(--mute); max-width: 60ch; }
.portada__lista { border-top: 1px solid var(--ink); }
.p-item a { display: grid; grid-template-columns: minmax(0, 1fr) clamp(96px, 9vw, 120px); gap: 20px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.p-item .txt { display: grid; gap: 8px; align-content: start; }
.p-item .bl-ttl { font-size: clamp(18px, 1.45vw, 22px); }
.p-item .bl-img { aspect-ratio: 1; }

.banda { background: var(--paper); }
.banda__in { max-width: var(--max); margin-inline: auto; padding: clamp(40px, 5vw, 64px) var(--gutter); display: flex; justify-content: space-between; align-items: center; gap: 24px 48px; flex-wrap: wrap; }
.banda h2 { font-size: clamp(28px, 3vw, 44px); color: var(--ink); max-width: 820px; text-wrap: balance; }

.paginas { display: flex; justify-content: center; gap: 6px; margin-top: clamp(56px, 6vw, 88px); }
.paginas a, .paginas span { min-width: 44px; height: 44px; display: grid; place-items: center; padding: 0 12px; font-family: var(--f-mono); font-size: 13px; border: 1px solid var(--line); color: var(--ink); transition: border-color .3s; }
.paginas a:hover { border-color: var(--ink); }
.paginas .is-on { background: var(--ink); border-color: var(--ink); color: #fff; }
.paginas .gap { border: 0; min-width: 20px; padding: 0; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1180px) {
  .art-body { grid-template-columns: 72px minmax(0, 1fr); }
  .art-toc { display: none; }
  .prosa { grid-column: 2; }
  .art-share { justify-self: start; }
}
@media (max-width: 860px) {
  .art-body { grid-template-columns: minmax(0, 1fr); }
  .art-share { grid-column: 1; grid-row: 2; justify-self: stretch; margin-top: 40px; }
  .art-share__in { position: static; display: flex; gap: 10px; align-items: center; }
  .art-share .mono { writing-mode: horizontal-tb; transform: none; margin: 0 6px 0 0; }
  .prosa { grid-column: 1; grid-row: 1; }
  .art-head { text-align: left; justify-items: start; }
  .art-head .migas, .art-by { justify-content: flex-start; }
  .art-hero { padding-inline: 0; }
  .art-cta__in { grid-template-columns: 1fr; align-items: start; }
  .art-cta__in > .btn { grid-column: 1; justify-self: start; }
  .tarjetas { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .portada { grid-template-columns: minmax(0, 1fr); }
  .filtros { flex-direction: column; align-items: stretch; }
  .buscar input { width: 100%; }
  .filtros__cats { margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); mask-image: none; }
}
@media (max-width: 600px) {
  .tarjetas { grid-template-columns: minmax(0, 1fr); }
  .p-item a { gap: 14px; padding: 18px 0; }
  .faq-nota details p { padding-right: 0; }
  .bl-hero__n { display: none; }
}

/* ---------- Detalles de WordPress ---------- */
.art-hero figcaption { margin-top: 12px; text-align: right; }
.art-by a:hover b { color: var(--red); }
.bl-vacio { font-size: 18px; color: var(--mute); }
.bl-vacio .ulink { color: var(--ink); border-bottom: 1px solid currentColor; }
.prosa .wp-block-image, .prosa figure { margin-block: 2em; }
.prosa .wp-block-image img { height: auto; }
.prosa table { width: 100%; border-collapse: collapse; font-size: .9em; }
.prosa th, .prosa td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.prosa th { font-family: var(--f-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--mute); font-weight: 400; }
.prosa .wp-block-embed iframe, .prosa iframe { max-width: 100%; }
.prosa .wp-block-embed__wrapper { position: relative; }
