/* ==========================================================================
   GRUPO LAVEY — blog (2026-09-27). Se apoya en lib/inicio.css (tokens, nav,
   botones, pie). Aquí solo lo propio del blog.
   ========================================================================== */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ic svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Cabeceras ---------- */
.bhero { position: relative; padding: 160px 0 70px; overflow: hidden; isolation: isolate; }
.bhero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(55% 60% at 80% 0%, rgba(61, 123, 255, 0.2), transparent 70%), radial-gradient(40% 50% at 0% 100%, rgba(79, 216, 255, 0.07), transparent 70%); }
.bhero .wrap { display: grid; gap: 24px; }
.bhero h1 { font-size: clamp(42px, 6.4vw, 96px); max-width: 16ch; }
.bhero .lead { max-width: 52ch; }
.bhero--cat { padding-bottom: 56px; }
.bhero--cat h1 { font-size: clamp(40px, 5.4vw, 80px); }
.crumbs { font-size: 14px; color: var(--tx-3); }
.crumbs a { color: var(--tx-2); text-decoration: none; }
.crumbs a:hover { color: var(--tx); }

.cats { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.cats a { display: inline-flex; align-items: center; gap: 8px; padding: 9px 15px; border-radius: 999px; border: 1px solid var(--stroke-2); background: rgba(255, 255, 255, 0.03); color: var(--tx-2); text-decoration: none; font-size: 14px; transition: all 0.3s; }
.cats a .ic { width: 16px; height: 16px; }
.cats a:hover { color: var(--tx); border-color: rgba(255, 255, 255, 0.34); }
.cats a[aria-current="page"] { background: var(--acc); border-color: var(--acc); color: #fff; }

/* ---------- Listados ---------- */
.blight { padding: clamp(64px, 8vw, 110px) 0; }
.feat { margin-bottom: clamp(70px, 9vw, 120px); }
.bsec + .bsec { margin-top: clamp(70px, 9vw, 110px); }
.bsec-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 28px; }
.bsec-head > div { display: grid; gap: 12px; }
.bsec-head .kicker .ic { width: 16px; height: 16px; color: var(--acc); }
.bsec-head h2 { font-size: clamp(24px, 2.6vw, 36px); max-width: 30ch; letter-spacing: -0.03em; }
.more { display: inline-flex; gap: 8px; align-items: center; font-size: 15px; color: var(--ink); text-decoration: none; white-space: nowrap; font-weight: 520; }
.more:hover .arr::before { transform: translateX(4px); }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }

.card { height: 100%; }
.card-link { display: flex; flex-direction: column; height: 100%; text-decoration: none; color: var(--ink); background: #fff; border-radius: 24px; overflow: hidden; border: 1px solid var(--lstroke); transition: transform 0.5s var(--out), box-shadow 0.5s var(--out); }
.card-link:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -30px rgba(11, 13, 18, 0.35); }
.card-img { margin: 0; aspect-ratio: 16 / 10; overflow: hidden; background: var(--light-2); }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--out); }
.card-link:hover .card-img img { transform: scale(1.05); }
.card-tx { display: flex; flex-direction: column; gap: 12px; padding: 22px 22px 24px; flex: 1; }
.card-cat { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--acc); }
.card-cat .ic { width: 15px; height: 15px; }
.card h3 { font-size: 20px; line-height: 1.22; letter-spacing: -0.02em; text-wrap: balance; }
.card-sum { color: var(--ink-2); font-size: 16px; }
.card-meta { margin-top: auto; display: flex; justify-content: space-between; font-size: 13.5px; color: var(--ink-3); }
.card-link:hover .arr::before { transform: translateX(4px); }

.card--big .card-link { display: grid; grid-template-columns: 1.25fr 1fr; background: var(--ink); color: var(--tx); border-color: var(--ink); }
.card--big .card-img { aspect-ratio: auto; min-height: 420px; }
.card--big .card-tx { padding: clamp(28px, 4vw, 52px); justify-content: center; gap: 18px; }
.card--big h3 { font-size: clamp(28px, 3vw, 42px); line-height: 1.08; letter-spacing: -0.035em; }
.card--big .card-sum { color: var(--tx-2); font-size: 17px; }
.card--big .card-cat { color: var(--acc-2); }
.card--big .card-meta { margin-top: 10px; color: var(--tx-3); justify-content: flex-start; gap: 12px; }

/* ---------- Artículo ---------- */
.progress { position: fixed; left: 0; right: 0; top: 0; height: 3px; z-index: 130; pointer-events: none; }
.progress i { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, var(--acc), var(--cy)); transform-origin: left; transform: scaleX(0); }
.phead { padding: 150px 0 150px; position: relative; overflow: hidden; isolation: isolate; }
.phead::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(50% 70% at 85% 10%, rgba(61, 123, 255, 0.18), transparent 70%); }
.phead-in { display: grid; gap: 22px; max-width: 980px; }
.phead h1 { font-size: clamp(36px, 5vw, 70px); line-height: 1.02; letter-spacing: -0.045em; text-wrap: balance; }
.phead .lead { max-width: 58ch; }
.pmeta { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 14px; color: var(--tx-2); }
.pmeta span { display: inline-flex; align-items: center; gap: 8px; }
.pmeta .ic { width: 16px; height: 16px; color: var(--acc-2); }
.pcover { padding: 0; }
.pcover-img { margin: -110px 0 0; border-radius: 30px; overflow: hidden; position: relative; box-shadow: 0 50px 100px -50px rgba(11, 13, 18, 0.6); aspect-ratio: 16 / 8; }
.pcover-img img { width: 100%; height: 100%; object-fit: cover; }
.pcover-img figcaption { position: absolute; right: 14px; bottom: 12px; font-size: 11.5px; color: rgba(255, 255, 255, 0.85); background: rgba(10, 12, 16, 0.5); padding: 4px 9px; border-radius: 99px; }
.pbody { padding: clamp(50px, 6vw, 80px) 0 clamp(70px, 8vw, 110px); }
.pgrid { display: grid; grid-template-columns: 240px minmax(0, 720px); gap: clamp(30px, 5vw, 80px); justify-content: center; }
.ptoc { position: sticky; top: 110px; align-self: start; font-size: 14px; }
.ptoc p { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 12px; }
.ptoc ol { display: grid; gap: 2px; border-left: 1px solid var(--lstroke); }
.ptoc a { display: block; padding: 7px 0 7px 14px; margin-left: -1px; border-left: 2px solid transparent; color: var(--ink-2); text-decoration: none; line-height: 1.35; transition: color 0.25s, border-color 0.25s; }
.ptoc a:hover { color: var(--ink); }
.ptoc a.is-here { color: var(--ink); border-color: var(--acc); }

/* Texto del artículo. Las viñetas van en position:absolute (nunca grid en <li>). */
.prose { font-size: 18.5px; line-height: 1.7; color: #242833; min-width: 0; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: clamp(26px, 2.5vw, 34px); line-height: 1.15; letter-spacing: -0.03em; color: var(--ink); margin-top: 2em; scroll-margin-top: 100px; }
.prose h3 { font-size: 21px; line-height: 1.3; color: var(--ink); margin-top: 1.6em; }
.prose a { color: var(--acc); text-underline-offset: 3px; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose ul, .prose ol { display: block; padding: 0; }
.prose li { position: relative; padding-left: 30px; }
.prose li + li { margin-top: 0.55em; }
.prose ul > li::before { content: ""; position: absolute; left: 8px; top: 0.72em; width: 7px; height: 7px; border-radius: 50%; background: var(--acc); }
.prose ol { counter-reset: n; }
.prose ol > li { counter-increment: n; }
.prose ol > li::before { content: counter(n); position: absolute; left: 0; top: 0.22em; width: 22px; height: 22px; border-radius: 50%; background: var(--ink); color: #fff; font-size: 12px; font-weight: 600; line-height: 22px; text-align: center; font-family: var(--mono); }
.prose blockquote { margin: 1.6em 0; padding: 4px 0 4px 22px; border-left: 3px solid var(--acc); font-size: 21px; line-height: 1.5; color: var(--ink); letter-spacing: -0.01em; }
.prose .nota { padding: 20px 22px; border-radius: 18px; background: #fff; border: 1px solid var(--lstroke); font-size: 16.5px; line-height: 1.6; }
.prose .nota strong:first-child { display: block; font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--acc); margin-bottom: 6px; font-weight: 500; }
.prose .check { padding: 22px 24px; border-radius: 20px; background: var(--ink); color: var(--tx-2); font-size: 17px; }
.prose .check strong { color: #fff; }
.prose .check ul > li::before { background: var(--ok); }
.prose .check p:first-child { color: #fff; font-weight: 560; font-size: 19px; margin-bottom: 0.6em; }
.prose .flujo { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 18px; border-radius: 18px; background: #fff; border: 1px solid var(--lstroke); font-size: 14.5px; font-weight: 520; }
.prose .flujo span { padding: 8px 13px; border-radius: 999px; background: var(--light); border: 1px solid var(--lstroke); }
.prose .flujo span:last-child { background: var(--acc); border-color: var(--acc); color: #fff; }
.prose .flujo i { font-style: normal; color: var(--ink-3); }

.pcta { margin-top: 3em !important; padding: clamp(26px, 4vw, 40px); border-radius: 26px; display: grid; gap: 14px; position: relative; overflow: hidden; }
.pcta::before { content: ""; position: absolute; inset: 0; background: radial-gradient(70% 90% at 100% 0%, rgba(61, 123, 255, 0.28), transparent 70%); pointer-events: none; }
.pcta > * { position: relative; }
.pcta h2 { color: var(--tx); margin: 0; font-size: clamp(26px, 2.6vw, 34px); }
.pcta p { color: var(--tx-2); font-size: 17px; }
.pcta .kicker { color: var(--tx-2); }
.pcta .cta-row { margin-top: 6px; }
.prel { padding-top: 0; }

/* ---------- Boletín ---------- */
.news { padding: clamp(70px, 9vw, 110px) 0; border-top: 1px solid var(--stroke); }
.news-in { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.news h2 { font-size: clamp(30px, 3.4vw, 46px); margin-bottom: 14px; }
.news-row { display: flex; gap: 10px; }
.news-row input { flex: 1; min-width: 0; height: 54px; border-radius: 999px; border: 1px solid var(--stroke-2); background: rgba(255, 255, 255, 0.04); color: var(--tx); padding: 0 20px; font: inherit; font-size: 16px; }
.news-row input:focus { outline: none; border-color: var(--acc-2); }
.news-row .btn { --h: 54px; }
.news-priv { margin-top: 12px; font-size: 13px; color: var(--tx-3); }
.news-priv a { color: var(--tx-2); }
.news-status { margin-top: 8px; font-size: 14.5px; color: var(--ok); }
.news-status.is-error { color: #ff9aa6; }

@media (max-width: 1100px) {
  .pgrid { grid-template-columns: minmax(0, 720px); }
  .ptoc { display: none; }
}
@media (max-width: 980px) {
  .grid3 { grid-template-columns: 1fr 1fr; }
  .card--big .card-link { grid-template-columns: 1fr; }
  .card--big .card-img { min-height: 0; aspect-ratio: 16 / 10; }
  .news-in { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .bhero { padding: 120px 0 50px; }
  .grid3 { grid-template-columns: 1fr; }
  .bsec-head { flex-direction: column; align-items: start; }
  .phead { padding: 120px 0 110px; }
  .pcover-img { margin-top: -80px; border-radius: 20px; aspect-ratio: 16 / 10; }
  .prose { font-size: 17.5px; }
  .news-row { flex-direction: column; }
  .cats { flex-wrap: nowrap; overflow-x: auto; margin: 8px calc(var(--gut) * -1) 0; padding: 0 var(--gut) 4px; scrollbar-width: none; }
  .cats a { flex: none; }
}
