/* ==================================================
   Superhero — estilos propios de la plantilla (hero: la imprenta del cómic)
   Barra, botones, secciones comunes, similares, CTA y WhatsApp vienen de themes/_kit/am-kit.css
   sh.js dibuja en .sh-cv el papel con rayos, la viñeta impresa con planchas CMYK en semitono, las líneas de
   velocidad, el globo del ¡POW! y los pedazos de la viñeta rota
   ================================================== */

.sh-hero {
	--ink: #16121c;
	--paper: #f6ecd6;
	--purple: #5d34af;
	--pop: #ffd400;
	--red: #e63323;
	--foot-h: 92px;
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	height: 100vh;
	height: 100svh;
	min-height: 720px;
	padding-top: 68px;
	overflow: hidden;
	color: var(--ink);
	background: var(--paper) radial-gradient(circle, rgba(93, 52, 175, .22) 1.6px, transparent 1.9px) 0 0 / 14px 14px;
	touch-action: pan-y;
}
.sh-cv { position: absolute; inset: 0; z-index: 0; display: block; width: 100%; height: 100%; }
.sh-hero.is-hot .sh-cv { cursor: pointer; }

/* ---------- Texto: cartela, título, globo ---------- */
.sh-copy { position: absolute; z-index: 5; left: var(--gutter); top: calc(68px + 7vh); width: min(500px, 37vw); pointer-events: none; }
.sh-copy a { pointer-events: auto; }
.sh-cap { display: inline-flex; flex-wrap: wrap; align-items: stretch; margin: 0 0 18px; border: 3px solid var(--ink); box-shadow: 5px 5px 0 var(--ink); background: #fff; transform: rotate(-1.5deg); }
.sh-cap__cat { display: grid; place-items: center; padding: 6px 12px; font-family: 'Bangers', cursive; font-size: 20px; font-weight: 400; letter-spacing: .08em; color: var(--ink); background: var(--pop); border-right: 3px solid var(--ink); }
.sh-cap__meta { display: flex; align-items: center; gap: 4px; padding: 6px 12px; font-family: 'Space Mono', monospace; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.sh-page .sh-title { margin: 0 0 22px; font-family: 'Bangers', cursive; font-size: clamp(50px, 5.8vw, 98px); font-weight: 400; line-height: .92; letter-spacing: .02em; text-align: left; text-transform: uppercase; color: #fff; -webkit-text-stroke: 3px var(--ink); paint-order: stroke fill; text-shadow: 5px 5px 0 var(--ink), 9px 9px 0 var(--purple); }
.sh-title .sh-w { display: inline-block; }
.sh-bubble { position: relative; max-width: 40ch; margin: 0 0 28px; padding: 16px 20px; font-family: 'Inter', sans-serif; font-size: clamp(14px, 1.08vw, 17px); font-weight: 600; line-height: 1.5; color: var(--ink); background: #fff; border: 3px solid var(--ink); border-radius: 22px; box-shadow: 5px 5px 0 var(--ink); }
.sh-bubble::after { content: ''; position: absolute; right: -26px; bottom: 18px; width: 30px; height: 26px; background: #fff; border: 3px solid var(--ink); border-left: 0; border-bottom: 0; clip-path: polygon(0 0, 100% 0, 0 100%); transform: skewY(18deg); }
.sh-acts { display: flex; align-items: center; gap: 18px; }
.ak-page .sh-get { display: inline-flex; align-items: center; gap: 12px; min-height: 56px; padding: 0 28px; font-family: 'Bangers', cursive; font-size: 22px; font-weight: 400; letter-spacing: .08em; text-transform: uppercase; text-decoration: none; color: var(--ink); background: var(--pop); border: 3px solid var(--ink); box-shadow: 6px 6px 0 var(--ink); transition: transform .15s var(--ease), box-shadow .15s var(--ease); }
.ak-page .sh-get:hover, .ak-page .sh-get:focus-visible { color: var(--ink); transform: translate(-2px, -2px) rotate(-1deg); box-shadow: 9px 9px 0 var(--ink); }
.sh-issue { display: grid; place-items: center; width: 64px; height: 64px; font-family: 'Space Mono', monospace; font-size: 10px; font-weight: 700; line-height: 1.1; text-transform: uppercase; text-align: center; color: #fff; background: var(--red); border: 3px solid var(--ink); border-radius: 50%; transform: rotate(10deg); }
.sh-issue__n { display: block; font-family: 'Archivo', sans-serif; font-size: 22px; font-weight: 900; line-height: 1; }

/* ---------- La tira de posts ---------- */
.sh-strip { position: absolute; z-index: 5; right: var(--gutter); top: calc(68px + (100% - 68px - var(--foot-h)) / 2); display: grid; gap: 10px; transform: translateY(-50%); }
.ak-page .sh-thumb { position: relative; display: block; width: 76px; height: 64px; margin: 0; padding: 0; overflow: hidden; background: #fff; border: 3px solid var(--ink); border-radius: 0; box-shadow: 4px 4px 0 var(--ink); cursor: pointer; transition: transform .2s var(--ease), box-shadow .2s var(--ease); }
.sh-thumb:nth-child(odd) { transform: rotate(-2deg); }
.sh-thumb:nth-child(even) { transform: rotate(2deg); }
.sh-thumb img { display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 50% 25%; filter: grayscale(1) contrast(1.2); transition: filter .2s ease; }
.sh-thumb b { position: absolute; left: 0; top: 0; padding: 1px 6px; font-family: 'Archivo', sans-serif; font-size: 12px; font-weight: 900; color: var(--ink); background: var(--pop); border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); }
.ak-page .sh-thumb:hover, .ak-page .sh-thumb:focus-visible { transform: rotate(0) scale(1.06); }
.ak-page .sh-thumb:hover img, .ak-page .sh-thumb:focus-visible img { filter: none; }
.ak-page .sh-thumb.is-on { box-shadow: 4px 4px 0 var(--purple); transform: rotate(0) translateX(-10px); }
.ak-page .sh-thumb.is-on img { filter: none; }
.ak-page .sh-thumb.is-on b { background: var(--red); color: #fff; }
.ak-page .sh-thumb:focus-visible { outline: 3px solid var(--purple); outline-offset: 3px; }

/* ---------- La prensa ---------- */
.sh-press { position: absolute; z-index: 5; left: 0; top: 0; display: flex; align-items: center; gap: 6px; padding: 6px 8px 6px 10px; font-family: 'Space Mono', monospace; background: #fff; border: 3px solid var(--ink); box-shadow: 4px 4px 0 var(--ink); visibility: hidden; }
.sh-hero.is-ready .sh-press { visibility: visible; }
.sh-press__k { margin-right: 4px; font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.sh-ink { display: block; width: 14px; height: 14px; border: 2px solid var(--ink); border-radius: 50%; }
.sh-ink--c { background: #00aeef; } .sh-ink--m { background: #ec008c; } .sh-ink--y { background: #fff200; } .sh-ink--k { background: #231f20; }
.sh-hero.is-printing .sh-ink { animation: sh-ink .5s steps(2) infinite; }
.sh-ink--m { animation-delay: .12s !important; } .sh-ink--y { animation-delay: .24s !important; } .sh-ink--k { animation-delay: .36s !important; }
.ak-page .sh-press__b { min-height: 30px; margin: 0 0 0 6px; padding: 4px 10px; font-family: 'Space Mono', monospace; font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #fff; background: var(--ink); border: 0; border-radius: 0; cursor: pointer; }
.ak-page .sh-press__b:hover, .ak-page .sh-press__b:focus-visible { background: var(--purple); }
@keyframes sh-ink { 50% { transform: scale(.6); } }

.sh-hint { position: absolute; z-index: 5; left: var(--gutter); bottom: calc(var(--foot-h) + 20px); max-width: 34vw; margin: 0; font-family: 'Space Mono', monospace; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink); pointer-events: none; }
.sh-hint--touch { display: none; }
@media (hover: none) {
	.sh-hint--mouse { display: none; }
	.sh-hint--touch { display: inline; }
}
.sh-status { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Pie del hero ---------- */
.sh-foot {
	position: relative;
	z-index: 8;
	flex: 0 0 auto;
	display: grid;
	grid-template-columns: minmax(260px, 1fr) auto auto;
	gap: 14px clamp(20px, 3vw, 44px);
	align-items: center;
	padding: 14px calc(var(--gutter) + 140px) 16px var(--gutter);
	color: #fff;
	background: rgba(10, 10, 10, .97);
	border-top: 3px solid var(--accent);
}
.sh-foot__meta { margin: 0 0 4px; font-family: var(--mb-mono); font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.sh-foot__lead { max-width: 60ch; margin: 0; font-size: clamp(14px, 1.1vw, 17px); line-height: 1.5; color: rgba(245, 245, 240, .86); }
.sh-ctrl { display: flex; align-items: center; gap: 10px; }
.sh-count { margin: 0 6px 0 0; font-family: var(--mb-mono); font-size: 14px; color: rgba(245, 245, 240, .7); white-space: nowrap; }
.sh-idx { display: inline-block; font-family: var(--mb-display); font-weight: 900; font-size: 34px; line-height: 1; letter-spacing: -.02em; vertical-align: -5px; color: var(--accent); }
@media (max-width: 1180px) {
	.sh-foot { grid-template-columns: minmax(0, 1fr) auto; }
	.sh-foot .ak-actions { grid-column: 1 / -1; }
}
@media (max-height: 820px) and (min-width: 1001px) {
	.sh-copy { top: calc(68px + 4vh); }
	.sh-page .sh-title { font-size: clamp(44px, 5vw, 80px); margin-bottom: 16px; }
	.sh-cap { margin-bottom: 12px; }
	.sh-bubble { margin-bottom: 18px; padding: 12px 16px; }
	.ak-page .sh-thumb { width: 66px; height: 52px; }
	.sh-strip { gap: 8px; }
}

/* ---------- Tablet y móvil ---------- */
@media (max-width: 1000px) {
	.sh-hero { height: auto; min-height: 0; }
	.sh-hero::before { content: ''; display: block; flex: 0 0 auto; height: calc(100svh - 70px); min-height: 720px; max-height: 1000px; }
	.sh-copy { top: auto; bottom: calc(var(--foot-h) + 22px); right: var(--gutter); width: auto; }
	.sh-cap { margin-bottom: 10px; }
	.sh-cap__cat { font-size: 16px; padding: 4px 9px; }
	.sh-cap__meta { padding: 4px 9px; font-size: 10px; }
	.sh-page .sh-title { font-size: clamp(38px, 10.5vw, 70px); margin-bottom: 14px; -webkit-text-stroke-width: 2px; text-shadow: 4px 4px 0 var(--ink), 7px 7px 0 var(--purple); }
	.sh-bubble { display: none; }
	.ak-page .sh-get { min-height: 50px; font-size: 19px; }
	.sh-issue { width: 54px; height: 54px; }
	.sh-hint { display: none; }
	/* la tira pasa a ser una fila arriba */
	.sh-strip { top: calc(68px + 12px); left: var(--gutter); right: var(--gutter); grid-template-columns: repeat(6, 1fr); gap: 8px; transform: none; }
	.ak-page .sh-thumb { width: auto; height: 50px; }
	.ak-page .sh-thumb.is-on { transform: translateY(4px); }
}
@media (max-width: 700px) {
	.sh-hero { padding-top: 60px; }
	.sh-hero::before { height: min(calc(100svh - 136px), 840px); min-height: 700px; }
	.sh-strip { top: calc(60px + 10px); gap: 6px; }
	.ak-page .sh-thumb { height: 44px; border-width: 2px; box-shadow: 3px 3px 0 var(--ink); }
	.sh-press__k, .sh-press .sh-ink { display: none; }
	.sh-foot { grid-template-columns: 1fr; padding: 14px var(--gutter) 88px; }
	.sh-ctrl { order: -1; }
	.sh-foot .ak-actions .ak-btn { flex: 1 1 auto; }
}

/* ---------- Movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
	.ak-page .sh-get, .sh-thumb, .sh-thumb img { transition: none; }
	.sh-hero.is-printing .sh-ink { animation: none; }
}
