/* Las páginas del servicio de Twitch (portada, panel del streamer, la bola del espectador), con el diseño «Can't See Shift panel» de
   Claude Design: kraft de fondo, cabecera con el key art, cartas de papel con su celo, rotulador (Permanent Marker) y Kalam para las
   frases, y la carretera de pie. Sin la parte de bits (apagada). */
:root {
	--kraft: #cdae7a;
	--papel: #f6eedb;
	--crema: #fff8e6;
	--celo: #fbf5e2;
	--tinta: #2a1f1a;
	--tinta-media: #4a3b30;
	--tinta-suave: #6b5a4a;
	--raya: #c9955a;
	--canto: #a98d5f;
	--morado: #8438f5;
	--morado-hondo: #6f25dc;
	--amarillo: #f6c21c;
	--rojo: #c8322b;
	--verde: #2e7d4f;
	--asfalto: #3a302a;
	--borde: clamp(16px, 5%, 64px);
}
* { box-sizing: border-box; }
html { background: var(--kraft); }
body {
	margin: 0;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	background: var(--kraft);
	color: var(--tinta);
	font-family: "Kalam", "Segoe Print", "Comic Sans MS", cursive;
	font-size: 19px;
	line-height: 1.4;
}
#app { flex: 1; display: flex; flex-direction: column; }
a { color: #7a2ff0; }
a:hover { color: var(--tinta); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
.marcador, h1, h2, .btn, .codigo, .pestanas button, .idioma button {
	font-family: "Permanent Marker", "Impact", sans-serif;
	font-weight: 400;
}
p { margin: 8px 0; }
.cargando { text-align: center; color: var(--tinta-suave); padding: 80px 16px; }
.nota { font-size: 17px; font-style: italic; color: var(--tinta-suave); text-wrap: pretty; }
.fila { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }

/* ---------- la cabecera: el key art, el logo y quién eres ---------- */
.cab {
	position: relative;
	height: 190px;
	flex: none;
	background: #2a8be0 url("/img/keyart.jpg") center 72% / cover;
	border-bottom: 4px solid var(--tinta);
}
.cab .logo { position: absolute; left: var(--borde); top: 22px; width: min(230px, 44%); display: block; }
.cab .derecha { position: absolute; right: var(--borde); top: 20px; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.chip {
	display: flex;
	align-items: center;
	gap: 10px;
	background: var(--papel);
	border: 3px solid var(--tinta);
	border-radius: 6px;
	box-shadow: 4px 4px 0 var(--tinta);
	padding: 6px 12px 6px 6px;
	max-width: 46vw;
}
.chip .avatar {
	width: 40px; height: 40px; flex: none;
	border-radius: 50%;
	border: 2px solid var(--tinta);
	background: var(--amarillo);
	display: flex; align-items: center; justify-content: center;
	font-family: "Permanent Marker", sans-serif; font-size: 20px;
	object-fit: cover;
}
.chip .quien { line-height: 1.15; min-width: 0; }
.chip .quien b { display: block; font-size: 17px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.enlace {
	display: inline-block;
	padding: 12px 0;
	margin: -12px 0;
	background: none;
	border: none;
	font-size: 14px;
	font-style: italic;
	color: var(--tinta-suave);
	text-decoration: underline;
}
.enlace:hover { color: var(--tinta); }
.idioma { display: flex; gap: 4px; background: var(--papel); border: 2px solid var(--tinta); border-radius: 4px; padding: 3px; }
.idioma button { min-width: 40px; border: none; border-radius: 3px; padding: 2px 10px; font-size: 15px; background: transparent; color: var(--tinta); }
.idioma button[aria-pressed="true"] { background: var(--tinta); color: var(--papel); }

/* ---------- el cuerpo: título y columnas de cartas ---------- */
.cuerpo { padding: 28px var(--borde) 0; display: flex; flex-direction: column; gap: 26px; flex: 1; }
.titular { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 18px; }
h1 { margin: 0; font-style: italic; font-size: 38px; text-transform: uppercase; line-height: 1; }
.titular .canal { font-size: 18px; font-style: italic; color: var(--tinta-media); }
.columnas { display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-start; }
.col { flex: 1 1 400px; min-width: 0; display: flex; flex-direction: column; gap: 32px; }
.col.ancha { flex: 1.3 1 480px; }
.carta {
	position: relative;
	background: var(--papel);
	padding: 30px 24px 24px;
	box-shadow: 0 5px 0 var(--canto), 0 12px 20px rgba(40, 25, 5, 0.25);
}
.carta::before {
	/* el celo de arriba */
	content: "";
	position: absolute;
	top: -12px;
	left: 50%;
	margin-left: -45px;
	width: 90px;
	height: 24px;
	background: var(--celo);
	opacity: 0.85;
	transform: rotate(2deg);
}
.carta.amarilla::before { background: var(--amarillo); transform: rotate(-3deg); }
.col > .carta:nth-child(2)::before { transform: rotate(-2deg); }
.col > .carta:nth-child(3)::before { transform: rotate(3deg); }
h2 { margin: 0; font-style: italic; font-size: 25px; text-transform: uppercase; line-height: 1.15; }
h3 { margin: 0 0 6px; font-family: "Permanent Marker", sans-serif; font-weight: 400; font-style: italic; font-size: 18px; text-transform: uppercase; }
.carta > p:first-of-type { margin-top: 8px; }
.cabeza { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 16px; }
.seccion { border-top: 1px dashed var(--raya); margin-top: 24px; padding-top: 16px; }

/* ---------- botones ---------- */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	border: 3px solid var(--tinta);
	border-radius: 4px;
	background: var(--crema);
	color: var(--tinta);
	font-style: italic;
	font-size: 16px;
	text-transform: uppercase;
	text-decoration: none;
	padding: 6px 18px;
	box-shadow: 4px 4px 0 var(--tinta);
	user-select: none;
	transition: transform 0.05s;
}
.btn:hover { color: var(--tinta); }
.btn:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--tinta); }
.btn.morado { background: var(--morado); color: #fff; font-size: 20px; min-height: 48px; padding: 8px 22px; box-shadow: 5px 5px 0 var(--tinta); }
.btn.morado:hover { background: var(--morado-hondo); color: #fff; }
.btn.rojo { background: var(--rojo); color: #fff; font-size: 17px; min-height: 48px; box-shadow: 5px 5px 0 var(--tinta); }
.btn.rojo:hover { color: #fff; }
.btn.chica { font-size: 14px; padding: 4px 12px; box-shadow: 3px 3px 0 var(--tinta); }
.btn.grande { font-size: 28px; padding: 14px 36px; box-shadow: 6px 6px 0 var(--tinta); }
.btn[disabled] { opacity: 0.5; pointer-events: none; }
.btn-texto { min-height: 44px; background: none; border: none; padding: 0 4px; font-size: 18px; text-decoration: underline; }
.btn-texto.rojo { color: #a3261f; font-size: 17px; }

/* ---------- avisos ---------- */
.aviso, .error {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
	border: 3px solid var(--tinta);
	border-radius: 4px;
	padding: 10px 16px;
	font-size: 19px;
	margin: 0;
	text-wrap: pretty;
}
.aviso { background: #fff3c4; box-shadow: 4px 4px 0 var(--amarillo); }
.error { background: #ffd6d0; box-shadow: 4px 4px 0 var(--rojo); }
.aviso .cerrar, .error .cerrar { flex: none; width: 44px; height: 44px; background: none; border: none; font-family: "Permanent Marker", sans-serif; font-size: 20px; }
.carta .aviso, .carta .error { font-size: 17px; margin: 10px 0; box-shadow: 3px 3px 0 var(--amarillo); }
.carta .error { box-shadow: 3px 3px 0 var(--rojo); }

/* ---------- vincular: el código y los juegos ---------- */
.codigo-caja {
	border: 3px dashed var(--tinta);
	border-radius: 6px;
	background: var(--crema);
	padding: 14px 16px;
	margin-bottom: 16px;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 8px 16px;
}
.codigo { font-size: 40px; letter-spacing: 6px; line-height: 1; }
.codigo-caja .nota { font-size: 16px; }
.linea { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 18px; padding: 4px 0; flex-wrap: wrap; }

/* ---------- casillas e interruptor (inputs de verdad, pintados) ---------- */
.casillas { display: flex; flex-direction: column; }
.casilla { display: flex; gap: 12px; align-items: flex-start; min-height: 44px; padding: 8px 0; font-size: 19px; line-height: 1.35; cursor: pointer; }
.casilla.hija { padding-left: 38px; }
.casilla.apagada { opacity: 0.45; cursor: default; }
.check {
	appearance: none;
	-webkit-appearance: none;
	flex: none;
	width: 26px;
	height: 26px;
	margin: 0;
	border: 3px solid var(--tinta);
	border-radius: 4px;
	background: var(--crema) center / 16px no-repeat;
	cursor: inherit;
}
.check:checked {
	background-color: var(--verde);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M2.5 8.5l3.5 3.5 7.5-8' fill='none' stroke='%23fff' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.check:focus-visible, .interruptor input:focus-visible + .via { outline: 3px solid var(--morado); outline-offset: 2px; }
.interruptor { display: flex; align-items: center; gap: 10px; min-height: 44px; font-family: "Permanent Marker", sans-serif; font-size: 16px; text-transform: uppercase; cursor: pointer; }
.interruptor input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.interruptor .via { position: relative; width: 54px; height: 30px; flex: none; border: 3px solid var(--tinta); border-radius: 16px; background: var(--crema); }
.interruptor .via::after { content: ""; position: absolute; top: 2px; left: 2px; width: 20px; height: 20px; border-radius: 50%; background: var(--tinta); transition: left 0.12s; }
.interruptor input:checked + .via { background: var(--amarillo); }
.interruptor input:checked + .via::after { left: 26px; }

/* ---------- lista negra y canjes ---------- */
textarea, input[type="number"], select {
	display: block;
	border: 3px solid var(--tinta);
	border-radius: 4px;
	background: var(--crema);
	color: var(--tinta);
	box-shadow: 3px 3px 0 var(--tinta);
}
textarea { width: 100%; padding: 8px 10px; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 15px; resize: vertical; margin-bottom: 14px; }
.canjes.apagados, .mensaje-cuerpo.apagados { opacity: 0.65; }
.canje { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; padding: 7px 0; border-top: 1px dashed var(--raya); }
.canje .casilla { flex: 1 1 200px; min-width: 0; align-items: center; padding: 0; min-height: 40px; font-size: 18px; text-transform: uppercase; letter-spacing: 0.5px; }
.canje .numeros { display: flex; gap: 10px; padding-left: 38px; align-items: flex-end; }
.canje label.num, .mensaje-num label.num { display: flex; flex-direction: column; gap: 2px; font-family: "Permanent Marker", sans-serif; font-size: 11px; text-transform: uppercase; color: var(--tinta-suave); white-space: nowrap; }
.canje input[type="number"], .mensaje-num input[type="number"] { width: 84px; height: 44px; padding: 0 8px; font-family: "Kalam", cursive; font-size: 17px; box-shadow: 2px 2px 0 var(--tinta); }
.carta .guardar { margin-top: 16px; }
.mensaje-num { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; margin: 4px 0 18px; }

/* ---------- desvincular ---------- */
.peligro {
	border: 3px dashed var(--tinta);
	border-radius: 6px;
	padding: 20px 24px;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 14px 24px;
}
.peligro .texto { flex: 1 1 260px; }
.peligro h2 { font-size: 22px; }
.peligro p { font-size: 17px; line-height: 1.35; margin: 4px 0 0; }

/* ---------- la carretera del pie ---------- */
.carretera { margin-top: 48px; height: 46px; flex: none; background: var(--asfalto); display: flex; align-items: center; }
.carretera::after { content: ""; width: 100%; border-top: 4px dashed var(--amarillo); }

/* ---------- la portada (sin sesión): key art, de qué va, pestañas streamer/espectador, los cuatro pasos ---------- */
.hero {
	position: relative;
	height: 580px;
	flex: none;
	background: #2a8be0 url("/img/keyart.jpg") center 70% / cover;
	border-bottom: 4px solid var(--tinta);
}
.hero .idioma { position: absolute; top: 24px; right: 64px; }
.hero .logo { position: absolute; left: 64px; top: 86px; width: 400px; display: block; }
.hero-movil { display: none; }
.sobre {
	position: absolute;
	left: 64px;
	bottom: -80px;
	width: 430px;
	background: var(--papel);
	padding: 34px 32px 28px;
	transform: rotate(1.2deg);
	box-shadow: 0 5px 0 var(--canto), 0 16px 28px rgba(20, 15, 5, 0.4);
}
.sobre::before { content: ""; position: absolute; top: -13px; left: 50%; margin-left: -55px; width: 110px; height: 28px; background: var(--celo); opacity: 0.85; transform: rotate(-3deg); }
.sobre h2 { font-size: 26px; line-height: 1.1; margin-bottom: 10px; }
.sobre p { font-size: 21px; line-height: 1.42; margin: 0; text-wrap: pretty; }
.portada { padding: 130px 64px 0; display: flex; flex-direction: column; gap: 44px; flex: 1; }
.portada > .aviso, .portada > .error { align-self: center; max-width: 720px; }
.pestanas { align-self: center; display: flex; border: 3px solid var(--tinta); border-radius: 6px; background: var(--papel); box-shadow: 5px 5px 0 var(--tinta); padding: 4px; gap: 4px; }
.pestanas button { border: none; border-radius: 3px; padding: 10px 28px; font-style: italic; font-size: 22px; text-transform: uppercase; background: transparent; color: var(--tinta); }
.pestanas button[aria-selected="true"] { background: var(--tinta); color: var(--papel); }
.pasos-via { position: relative; padding: 20px 0; }
.pasos-via::before { content: ""; position: absolute; left: -64px; right: -64px; top: 50%; margin-top: -27px; height: 54px; background: var(--asfalto); }
.pasos-via::after { content: ""; position: absolute; left: -64px; right: -64px; top: 50%; margin-top: -2px; border-top: 4px dashed var(--amarillo); }
.pasos { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; align-items: stretch; list-style: none; margin: 0; padding: 0; }
.paso { position: relative; background: var(--papel); padding: 30px 22px 24px; min-height: 230px; box-shadow: 0 5px 0 var(--canto), 0 12px 20px rgba(40, 25, 5, 0.3); }
.paso:nth-child(1) { transform: rotate(-1.5deg); }
.paso:nth-child(2) { transform: rotate(1deg); }
.paso:nth-child(3) { transform: rotate(-0.6deg); }
.paso:nth-child(4) { transform: rotate(1.6deg); }
.paso::before { content: ""; position: absolute; top: -12px; left: 50%; margin-left: -42px; width: 84px; height: 24px; background: var(--celo); opacity: 0.85; transform: rotate(-3deg); }
.paso .num { width: 52px; height: 52px; border: 3px solid var(--tinta); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: "Permanent Marker", sans-serif; font-size: 26px; background: var(--amarillo); box-shadow: 3px 3px 0 var(--tinta); }
.paso h3 { font-size: 22px; margin: 14px 0 6px; line-height: 1.1; }
.paso p { font-size: 18px; line-height: 1.4; color: var(--tinta-media); margin: 0; text-wrap: pretty; }
.llamada { display: flex; flex-direction: column; align-items: center; gap: 18px; text-align: center; }
.llamada .nota { font-size: 17px; color: var(--tinta-media); max-width: 560px; }
.llamada .prueba { font-size: 15px; }

/* ---------- el editor de la bola (bola.js) ---------- */
.polaroid {
	flex: 1 1 320px;
	min-width: 0;
	position: sticky;
	top: 16px;
	background: #fff;
	padding: 12px 12px 20px;
	transform: rotate(-1.5deg);
	box-shadow: 0 5px 0 var(--canto), 0 14px 24px rgba(40, 25, 5, 0.3);
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 14px;
}
.polaroid::before { content: ""; position: absolute; top: -13px; left: 50%; margin-left: -50px; width: 100px; height: 26px; background: var(--amarillo); opacity: 0.85; transform: rotate(-4deg); }
.polaroid .foto {
	width: 100%;
	/* un cielo de verano y la cuneta: la bola posa en la carretera */
	background:
		radial-gradient(ellipse 60% 40% at 50% 100%, rgba(255, 255, 255, 0.35), transparent 70%),
		linear-gradient(#bfe3f7 0%, #e3f3fb 58%, #c9b27f 58%, #b99a62 100%);
	padding: 18px 0 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	overflow: hidden;
}
.pie-foto { font-size: 21px; line-height: 1.2; text-align: center; transform: rotate(-1deg); padding: 0 8px; text-wrap: balance; }
.botones-bola { justify-content: center; }
.polaroid .btn.morado { font-size: 22px; min-height: 52px; padding: 8px 28px; }
.btn.dado { gap: 8px; }
.dado-cara { font-family: system-ui, sans-serif; font-style: normal; font-size: 24px; line-height: 1; display: inline-block; transition: transform 0.3s; }
.btn.dado:hover .dado-cara { transform: rotate(-200deg); }
.btn.latido { animation: latido 1.6s ease-in-out infinite; }
@keyframes latido { 0%, 70%, 100% { transform: none; } 80% { transform: scale(1.06) rotate(-1deg); } 90% { transform: scale(0.98); } }
.estado-bola { justify-content: center; gap: 4px 12px; font-size: 16px; }
.estado-bola:empty { display: none; }
.sin-guardar { font-style: italic; color: var(--rojo); }
.estado-bola .btn-texto { font-size: 16px; }

/* la bola viva: respira, bota al cambiar de cuerpo, el sombrero cae, el complemento salta; un toque y da un brinco */
.escenario { position: relative; width: 260px; height: 270px; }
.suelo { position: absolute; left: 50%; bottom: 14px; width: 150px; height: 26px; margin-left: -75px; border-radius: 50%; background: rgba(42, 31, 26, 0.28); filter: blur(3px); animation: suelo 2.4s ease-in-out infinite; }
.bola-viva { position: absolute; left: 10px; bottom: 6px; width: 240px; height: 240px; padding: 0; border: none; background: none; cursor: pointer; transform-origin: 50% 92%; animation: respira 2.4s ease-in-out infinite; }
.bola-viva:focus-visible { outline: 3px dashed var(--morado); outline-offset: 4px; border-radius: 50%; }
.bola-viva .vista.grande { width: 100%; height: 100%; }
@keyframes respira { 0%, 100% { transform: translateY(0) scale(1, 1); } 50% { transform: translateY(-7px) scale(0.985, 1.02); } }
@keyframes suelo { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(0.9); opacity: 0.75; } }
.bola-viva.boing { animation: boing 0.55s cubic-bezier(0.3, 1.6, 0.5, 1), respira 2.4s ease-in-out 0.55s infinite; }
@keyframes boing { 0% { transform: scale(1.18, 0.8); } 35% { transform: translateY(-18px) scale(0.9, 1.12); } 65% { transform: scale(1.06, 0.95); } 100% { transform: none; } }
.bola-viva.toque { animation: toque 0.8s cubic-bezier(0.3, 1.3, 0.5, 1), respira 2.4s ease-in-out 0.8s infinite; }
@keyframes toque { 0% { transform: scale(1.15, 0.82); } 25% { transform: translateY(-46px) rotate(-12deg) scale(0.92, 1.1); } 55% { transform: translateY(-30px) rotate(10deg); } 80% { transform: translateY(0) scale(1.1, 0.9); } 100% { transform: none; } }
.bola-viva.salto { animation: salto 0.9s cubic-bezier(0.3, 1.4, 0.5, 1), respira 2.4s ease-in-out 0.9s infinite; }
@keyframes salto { 0% { transform: scale(1.2, 0.78); } 30% { transform: translateY(-70px) scale(0.9, 1.12) rotate(360deg); } 70% { transform: translateY(0) scale(1.14, 0.86) rotate(360deg); } 100% { transform: rotate(360deg); } }
.c-sombrero.cae { animation: cae 0.6s cubic-bezier(0.25, 1.5, 0.5, 1); }
@keyframes cae { 0% { transform: translateY(-90px) rotate(-18deg); opacity: 0; } 40% { opacity: 1; } 70% { transform: translateY(4px) rotate(3deg); } 100% { transform: none; } }
.c-comp.pop { animation: pop 0.45s cubic-bezier(0.3, 1.8, 0.5, 1); }
@keyframes pop { 0% { transform: scale(0.4); opacity: 0; } 60% { transform: scale(1.15); opacity: 1; } 100% { transform: none; } }
.confeti { position: absolute; left: 50%; top: 45%; width: 0; height: 0; pointer-events: none; }
.confeti i { position: absolute; width: 9px; height: 14px; background: var(--c); border-radius: 2px; animation: confeti var(--t) cubic-bezier(0.2, 0.7, 0.4, 1) forwards; }
@keyframes confeti { 0% { transform: translate(0, 0) rotate(0); opacity: 1; } 75% { opacity: 1; } 100% { transform: translate(var(--x), calc(var(--y) + 80px)) rotate(var(--g)); opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
	.bola-viva, .suelo, .btn.latido { animation: none; }
}

.piezas { flex: 2 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 26px; padding: 32px 24px 28px; }
.cabeza-bloque { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 14px; margin-bottom: 10px; }
.cabeza-bloque .elegido { font-size: 18px; font-style: italic; color: var(--tinta-media); }
.cabeza-bloque .elegido::before { content: "→ "; color: var(--raya); }
.bloque + .bloque { border-top: 1px dashed var(--raya); padding-top: 20px; }
.ficha.probador { background: linear-gradient(var(--crema) 70%, #efe3c4 70%); }
.ficha .mini-bola { position: absolute; inset: -8% -8% -4%; width: auto; height: auto; }
.ficha:hover:not(.elegida) { animation: meneo 0.35s ease-in-out; }
.ficha:active { transform: scale(0.92); }
@keyframes meneo { 25% { transform: rotate(-4deg); } 75% { transform: rotate(4deg); } }

.vista { position: relative; width: 160px; height: 160px; }
.vista.grande { width: 240px; height: 240px; }
.capa, .capa img, .tinte { position: absolute; inset: 0; width: 100%; height: 100%; }
.capa img { object-fit: contain; display: block; }
.tinte { -webkit-mask: var(--m) center / contain no-repeat; mask: var(--m) center / contain no-repeat; background: var(--c); }
.sombra { mix-blend-mode: multiply; }
.rejilla { display: grid; grid-template-columns: repeat(auto-fill, minmax(60px, 1fr)); gap: 10px; }
.ficha {
	aspect-ratio: 1;
	padding: 0;
	position: relative;
	overflow: hidden;
	border: 3px solid transparent;
	border-radius: 8px;
	background: var(--crema);
	display: flex;
	align-items: center;
	justify-content: center;
}
.ficha:hover { border-color: var(--raya); }
.ficha.elegida { border-color: var(--tinta); box-shadow: 3px 3px 0 var(--tinta); }
.ficha .capa { position: absolute; }
.ficha .mini { width: 100%; height: 100%; object-fit: contain; }
.muestra { display: block; width: 62%; aspect-ratio: 1; border-radius: 50%; border: 2px solid rgba(42, 31, 26, 0.55); }
.nada { font-family: "Permanent Marker", sans-serif; font-size: 22px; color: var(--tinta-suave); }

/* ---------- móvil ---------- */
@media (max-width: 760px) {
	.hero { height: auto; background: none; border-bottom: none; padding: 12px 16px 0; display: flex; flex-direction: column; }
	.hero .idioma { position: static; align-self: flex-end; }
	.hero .idioma button { min-width: 44px; height: 38px; }
	.hero .logo { display: none; }
	.hero-movil { display: block; width: calc(100% + 32px); max-width: none; margin: 12px -16px -34px; border-top: 4px solid var(--tinta); border-bottom: 4px solid var(--tinta); }
	.sobre { position: relative; left: auto; bottom: auto; width: auto; padding: 24px 20px 20px; transform: rotate(1deg); box-shadow: 0 5px 0 var(--canto); }
	.sobre::before { display: none; }
	.sobre h2 { font-size: 19px; margin-bottom: 8px; }
	.sobre p { font-size: 18px; line-height: 1.4; }
	.portada { padding: 22px 16px 0; gap: 22px; }
	.pestanas { align-self: stretch; display: grid; grid-template-columns: 1fr 1fr; box-shadow: 4px 4px 0 var(--tinta); }
	.pestanas button { min-height: 46px; padding: 6px; font-size: 16px; }
	.pasos-via { padding: 8px 0; }
	.pasos-via::before { left: 6px; right: auto; top: -22px; bottom: -22px; width: 34px; height: auto; margin-top: 0; }
	.pasos-via::after { left: 21px; right: auto; top: -22px; bottom: -22px; margin-top: 0; border-top: none; border-left: 3px dashed var(--amarillo); }
	.pasos { grid-template-columns: 1fr; gap: 20px; padding-left: 22px; }
	.paso { min-height: 0; padding: 18px 18px 16px; display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 12px; align-items: start; box-shadow: 0 4px 0 var(--canto), 0 8px 14px rgba(40, 25, 5, 0.25); }
	.paso::before { display: none; }
	.paso .num { width: 40px; height: 40px; font-size: 20px; box-shadow: 2px 2px 0 var(--tinta); grid-row: span 2; }
	.paso h3 { font-size: 18px; margin: 0; line-height: 1.15; }
	.paso p { font-size: 17px; line-height: 1.35; }
	.llamada .btn.grande { align-self: stretch; font-size: 21px; min-height: 56px; padding: 8px 16px; }
	.llamada .nota { font-size: 15px; }
	.cab { height: 150px; }
	.cab .logo { width: min(170px, 42%); top: 16px; }
	.cab .derecha { top: 14px; }
	.chip .quien b { font-size: 15px; }
	h1 { font-size: 30px; }
	body { font-size: 18px; }
	.carta { padding: 28px 18px 20px; }
	.codigo { font-size: 34px; letter-spacing: 4px; }
	.canje .numeros { padding-left: 0; }
	.canje input[type="number"], .mensaje-num input[type="number"] { width: 74px; }
	.polaroid { position: relative; top: auto; }
}
