/* ==========================================================
   PIXL — páginas de caso / artículo (se carga después de styles.css)
   ========================================================== */
.post { padding-top: 120px; }
.post__head { padding: 8vh var(--pad) 6vh; max-width: 1200px; }
.post__crumbs { display: flex; flex-wrap: wrap; gap: 6px 10px; margin-bottom: 6vh; font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.post__crumbs a { transition: color .2s; }
.post__crumbs a:hover { color: var(--accent); }
.post__crumbs [aria-current] { color: #c9c8c2; }
.post__kicker { margin: 0 0 18px; font-size: clamp(22px, 2.2vw, 32px); color: var(--accent); }
.post__kicker em { margin-left: 0; font-size: 1em; }
.post__title { margin: 0; font-size: clamp(44px, 7.4vw, 124px); line-height: .92; letter-spacing: -.045em; font-weight: 800; max-width: 14ch; }
.post__lead { margin: 4vh 0 0; max-width: 56ch; font-size: clamp(18px, 1.6vw, 24px); line-height: 1.45; color: #c9c8c2; font-weight: 300; }
.post__meta { margin: 4vh 0 0; display: flex; flex-wrap: wrap; gap: 8px 24px; font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.post__meta span::before { content: ""; display: inline-block; width: 8px; height: 8px; background: var(--accent); margin-right: 10px; vertical-align: 1px; }

/* Portada: parte como un recorte y se abre con el scroll */
.post__cover { margin: 0; height: 88vh; overflow: hidden; clip-path: inset(0 var(--pad)); }
.post__cover img { width: 100%; height: 115%; object-fit: cover; }

.post__body { max-width: 760px; margin: 0 auto; padding: 14vh var(--pad) 10vh; box-sizing: content-box; }
.post__body > * { margin: 0 0 26px; }
.post__body p, .post__body li { font-size: clamp(17px, 1.3vw, 20px); line-height: 1.65; color: #d6d5cf; }
.post__body strong { color: var(--fg); font-weight: 600; }
.post__body a:not(.btn) { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.post__body h2 { margin: 9vh 0 22px; font-size: clamp(28px, 3vw, 44px); line-height: 1.05; letter-spacing: -.03em; font-weight: 700; }
.post__body h2::before { content: ""; display: block; width: 14px; height: 14px; background: var(--accent); margin-bottom: 18px; }
.post__body h3 { margin: 6vh 0 16px; font-size: clamp(22px, 2vw, 28px); font-weight: 600; letter-spacing: -.02em; }
.post__body blockquote { margin: 7vh 0; padding-left: 26px; border-left: 2px solid var(--accent); }
.post__body blockquote p { font-size: clamp(22px, 2.2vw, 32px); line-height: 1.3; font-weight: 300; letter-spacing: -.015em; color: var(--fg); margin: 0; }
.post__body ul, .post__body ol { padding-left: 0; list-style: none; }
.post__body li { position: relative; padding-left: 26px; margin-bottom: 14px; }
.post__body ul li::before { content: ""; position: absolute; left: 0; top: .7em; width: 8px; height: 8px; background: var(--accent); }
.post__body ol { counter-reset: n; }
.post__body ol li { counter-increment: n; }
.post__body ol li::before { content: counter(n, decimal-leading-zero); position: absolute; left: 0; font-family: var(--mono); font-size: 12px; color: var(--accent); top: .45em; }

/* Elementos anchos: salen de la columna de texto */
.post__wide { --w: min(1200px, calc(100vw - 2 * var(--pad))); width: var(--w); margin-left: calc((100% - var(--w)) / 2); }
.post__figure img { width: 100%; }
.post__figure figcaption { margin-top: 10px; font-family: var(--mono); font-size: 12px; color: var(--muted); }
.post__gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 7vh !important; margin-bottom: 7vh !important; }
.post__gallery--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.post__gallery button { padding: 0; aspect-ratio: 4 / 3; overflow: hidden; background: var(--bg-2); }
.post__gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.post__gallery button:hover img { transform: scale(1.04); }

.post__video { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: #000; margin-top: 6vh !important; }
.post__video img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.34); opacity: .85; transition: opacity .3s, transform .8s var(--ease); }
.post__video:hover img { opacity: 1; transform: scale(1.38); }
.post__video-play {
  position: absolute; left: 50%; top: 50%; width: 76px; height: 76px; transform: translate(-50%, -50%);
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 7l8 5-8 5z' fill='%2304140d'/%3E%3C/svg%3E") center/30px no-repeat;
  transition: transform .3s var(--pix);
}
.post__video:hover .post__video-play { transform: translate(-50%, -50%) scale(1.12); }

.post__table { overflow-x: auto; margin-top: 7vh !important; margin-bottom: 7vh !important; border: 1px solid var(--line); }
.post__table table { width: 100%; border-collapse: collapse; min-width: 640px; }
.post__table th, .post__table td { padding: 14px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); font-size: 15px; line-height: 1.45; color: #d6d5cf; }
.post__table th { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--accent); font-weight: 500; background: var(--bg-2); }
.post__table tr:last-child td { border-bottom: 0; }
.post__btn { margin-top: 5vh !important; }

.post__more { padding: 12vh var(--pad); border-top: 1px solid var(--line); }
.post__more .cases__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.post__cta { border-top: 1px solid var(--line); }
.post__cta-link { display: block; padding: 14vh var(--pad); font-family: var(--pixel); font-variation-settings: "ROND" 0; font-weight: 900; font-size: clamp(48px, 13vw, 240px); line-height: .9; letter-spacing: -.03em; transition: color .3s var(--pix), background .3s var(--pix); }
.post__cta-link:hover { background: var(--accent); color: var(--accent-ink); }

/* Modal en modo imagen (galería) */
.modal__frame.is-image { aspect-ratio: auto; background: transparent; display: grid; place-items: center; max-height: 86vh; }
.modal__frame.is-image img { max-width: 100%; max-height: 86vh; object-fit: contain; }

@media (max-width: 820px) {
  .post { padding-top: 80px; }
  .post__cover { height: 56vh; }
  .post__gallery, .post__gallery--3, .post__more .cases__grid { grid-template-columns: 1fr; }
}
