/* La Plata Comic — Juego de participación. Mobile-first. */

body {
	background-color: #f5f5f5;
}

.lpc-wrap a,
.lpc-tienda a,
.lpc-ganadores-wrap a {
	color: inherit;
	text-decoration: none;
}

.lpc-wrap,
.lpc-tienda,
.lpc-ganadores-wrap {
	--lpc-rojo: #e4243b;
	--lpc-rojo-oscuro: #b81a2c;
	--lpc-dorado: #ffc94a;
	--lpc-negro: #111116;
	--lpc-negro-suave: #1c1c24;
	--lpc-texto: #f4f4f7;
	--lpc-texto-suave: #b8b8c4;
	--lpc-radio: 18px;
	box-sizing: border-box;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.lpc-wrap *,
.lpc-tienda *,
.lpc-ganadores-wrap * {
	box-sizing: border-box;
}

.lpc-icon {
	width: 1.15em;
	height: 1.15em;
	display: inline-block;
	vertical-align: -0.2em;
	flex-shrink: 0;
	margin-right: 6px;
}

.lpc-btn .lpc-icon {
	margin-right: 0;
}

/* ---------- Layout general ---------- */

.lpc-wrap {
	max-width: 480px;
	margin: 0 auto;
	padding: 16px;
}

.lpc-header {
	text-align: center;
	margin-bottom: 18px;
}

.lpc-logo {
	max-width: 150px;
	width: 55%;
	height: auto;
	margin: 0 auto;
	display: block;
}

.lpc-game {
	position: relative;
	background: linear-gradient(155deg, var(--lpc-negro) 0%, var(--lpc-negro-suave) 100%);
	border-radius: var(--lpc-radio);
	padding: 26px 20px 28px;
	color: var(--lpc-texto);
	box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
	overflow: hidden;
}

.lpc-step {
	animation: lpcFadeUp 0.45s ease both;
}

@keyframes lpcFadeUp {
	from {
		opacity: 0;
		transform: translateY(14px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* ---------- Intro ---------- */

.lpc-eyebrow {
	text-transform: uppercase;
	letter-spacing: 1.5px;
	font-size: 11px;
	color: var(--lpc-dorado);
	text-align: center;
	margin: 0 0 8px;
	font-weight: 700;
}

.lpc-titulo {
	font-size: 28px;
	line-height: 1.15;
	text-align: center;
	margin: 0 0 10px;
	font-weight: 800;
}

.lpc-subtitulo {
	text-align: center;
	color: var(--lpc-texto-suave);
	font-size: 14.5px;
	margin: 0 0 22px;
	line-height: 1.5;
}

.lpc-titulo-paso {
	font-size: 20px;
	text-align: center;
	margin: 0 0 18px;
	font-weight: 800;
}

/* ---------- Botones ---------- */

.lpc-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	min-height: 52px;
	padding: 14px 20px;
	border-radius: 999px;
	border: none;
	font-size: 16px;
	font-weight: 700;
	cursor: pointer;
	text-decoration: none;
	transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
	-webkit-tap-highlight-color: transparent;
}

.lpc-btn:active {
	transform: scale(0.97);
}

.lpc-btn-primary {
	background: linear-gradient(135deg, var(--lpc-rojo) 0%, var(--lpc-rojo-oscuro) 100%);
	color: #fff !important;
	box-shadow: 0 8px 20px rgba(228, 36, 59, 0.35);
}

.lpc-btn-primary:hover {
	box-shadow: 0 10px 24px rgba(228, 36, 59, 0.5);
}

.lpc-btn-primary:disabled {
	opacity: 0.6;
	cursor: not-allowed;
	transform: none;
}

.lpc-btn-ghost {
	background: transparent;
	color: var(--lpc-texto-suave);
	border: 1px solid rgba(255, 255, 255, 0.18);
	margin-top: 10px;
}

.lpc-btn-ghost:hover {
	color: #fff;
	border-color: rgba(255, 255, 255, 0.4);
}

.lpc-btn-pulso {
	animation: lpcPulso 1.8s ease-in-out infinite;
}

@keyframes lpcPulso {
	0%, 100% {
		box-shadow: 0 8px 20px rgba(228, 36, 59, 0.35);
	}
	50% {
		box-shadow: 0 8px 28px rgba(228, 36, 59, 0.7);
	}
}

.lpc-spinner {
	width: 18px;
	height: 18px;
	border-radius: 50%;
	border: 2.5px solid rgba(255, 255, 255, 0.4);
	border-top-color: #fff;
	animation: lpcGirar 0.7s linear infinite;
	display: inline-block;
}

@keyframes lpcGirar {
	to {
		transform: rotate(360deg);
	}
}

/* ---------- Selección de libro ---------- */

.lpc-libros-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 10px;
	margin-bottom: 4px;
}

.lpc-libro-card {
	background: rgba(255, 255, 255, 0.04);
	border: 2px solid rgba(255, 255, 255, 0.08);
	border-radius: 14px;
	padding: 10px 6px 12px;
	cursor: pointer;
	transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.lpc-libro-card-inner {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
}

.lpc-libro-card img {
	width: 100%;
	max-width: 90px;
	aspect-ratio: 700 / 935;
	object-fit: cover;
	border-radius: 6px;
}

.lpc-libro-nombre {
	font-size: 12.5px;
	font-weight: 700;
	text-align: center;
	line-height: 1.2;
}

.lpc-libro-card:active {
	transform: scale(0.95);
}

.lpc-libro-card.is-selected {
	border-color: var(--lpc-dorado);
	background: rgba(255, 201, 74, 0.1);
	transform: translateY(-2px);
}

/* ---------- Formulario ---------- */

.lpc-libro-elegido {
	text-align: center;
	color: var(--lpc-texto-suave);
	margin: -6px 0 16px;
	font-size: 14px;
}

.lpc-libro-elegido strong {
	color: var(--lpc-dorado);
}

.lpc-campo {
	display: block;
	margin-bottom: 14px;
}

.lpc-campo > span:first-child {
	display: block;
	font-size: 12.5px;
	color: var(--lpc-texto-suave);
	margin-bottom: 6px;
	font-weight: 600;
}

.lpc-doble-input {
	display: flex;
	gap: 8px;
}

.lpc-campo input[type="text"],
.lpc-campo input[type="email"] {
	width: 100%;
	min-height: 48px;
	padding: 12px 14px;
	border-radius: 12px;
	border: 1.5px solid rgba(255, 255, 255, 0.14);
	background: rgba(255, 255, 255, 0.06);
	color: #fff;
	font-size: 15.5px;
	outline: none;
	transition: border-color 0.15s ease, background 0.15s ease;
}

.lpc-campo input[type="text"]:focus,
.lpc-campo input[type="email"]:focus {
	border-color: var(--lpc-dorado);
	background: rgba(255, 255, 255, 0.09);
}

.lpc-campo input::placeholder {
	color: rgba(255, 255, 255, 0.35);
}

.lpc-honeypot {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	opacity: 0;
}

.lpc-campo-check {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	font-size: 13px;
	color: var(--lpc-texto-suave);
	line-height: 1.45;
	background: rgba(255, 255, 255, 0.04);
	border-radius: 12px;
	padding: 12px;
}

.lpc-campo-check input {
	margin-top: 3px;
	width: 18px;
	height: 18px;
	accent-color: var(--lpc-rojo);
	flex-shrink: 0;
}

.lpc-campo-check strong {
	color: #fff;
}

.lpc-ig-link {
	color: var(--lpc-dorado) !important;
	font-weight: 700;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.lpc-ig-link:hover,
.lpc-ig-link:focus-visible {
	color: #fff !important;
}

.lpc-error {
	background: rgba(228, 36, 59, 0.15);
	border: 1px solid rgba(228, 36, 59, 0.5);
	color: #ffb3bb;
	border-radius: 10px;
	padding: 10px 12px;
	font-size: 13.5px;
	margin-bottom: 14px;
	animation: lpcShake 0.4s ease;
}

@keyframes lpcShake {
	0%, 100% { transform: translateX(0); }
	20% { transform: translateX(-6px); }
	40% { transform: translateX(6px); }
	60% { transform: translateX(-4px); }
	80% { transform: translateX(4px); }
}

.lpc-acciones {
	display: flex;
	flex-direction: column;
	gap: 0;
}

#lpc-submit-btn .lpc-spinner {
	border-color: rgba(255, 255, 255, 0.5);
	border-top-color: #fff;
}

/* ---------- Resultado / ticket ---------- */

.lpc-step-resultado {
	position: relative;
	text-align: center;
}

.lpc-confetti {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	pointer-events: none;
}

.lpc-ticket {
	position: relative;
	z-index: 1;
	background: radial-gradient(circle at top, rgba(255, 201, 74, 0.15), transparent 60%), rgba(255, 255, 255, 0.05);
	border: 1.5px dashed rgba(255, 201, 74, 0.5);
	border-radius: 16px;
	padding: 22px 16px;
	animation: lpcTicketIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes lpcTicketIn {
	from {
		opacity: 0;
		transform: scale(0.7) rotate(-4deg);
	}
	to {
		opacity: 1;
		transform: scale(1) rotate(0);
	}
}

.lpc-ticket img {
	width: 120px;
	aspect-ratio: 700 / 935;
	object-fit: cover;
	border-radius: 8px;
	margin: 0 auto 14px;
	display: block;
}

.lpc-ticket-label {
	color: var(--lpc-texto-suave);
	font-size: 13px;
	margin: 0 0 4px;
}

.lpc-ticket-libro {
	font-size: 20px;
	margin: 0 0 14px;
	font-weight: 800;
}

.lpc-numero {
	display: inline-block;
	background: var(--lpc-negro);
	color: var(--lpc-dorado);
	font-size: 22px;
	font-weight: 800;
	letter-spacing: 1.5px;
	padding: 10px 18px;
	border-radius: 10px;
	font-family: "Courier New", monospace;
}

.lpc-resultado-nota {
	text-align: center;
	color: var(--lpc-texto-suave);
	font-size: 13px;
	margin: 16px 0;
}

.lpc-btn-copiar {
	margin-bottom: 8px;
}

/* ---------- Tienda ---------- */

.lpc-tienda {
	max-width: 480px;
	margin: 28px auto 0;
	padding: 0 16px;
	color: var(--lpc-negro);
}

.lpc-tienda-titulo {
	text-align: center;
	font-size: 20px;
	font-weight: 800;
	margin: 0 0 16px;
}

.lpc-tienda-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 14px;
}

.lpc-tienda-card {
	background: #fff;
	border: 1px solid rgba(0, 0, 0, 0.08);
	border-radius: var(--lpc-radio);
	padding: 16px;
	text-align: center;
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
}

.lpc-tienda-card img {
	width: 100%;
	max-width: 150px;
	aspect-ratio: 700 / 935;
	object-fit: cover;
	border-radius: 8px;
	margin: 0 auto 12px;
	display: block;
}

.lpc-tienda-card h3 {
	font-size: 16px;
	margin: 0 0 12px;
}

.lpc-btn-comprar {
	margin-bottom: 8px;
}

.lpc-mas-info {
	display: inline-block;
	font-size: 12.5px;
	color: #888;
	text-decoration: underline;
	text-underline-offset: 2px;
	transition: color 0.15s ease;
}

.lpc-mas-info:hover,
.lpc-mas-info:focus-visible {
	color: var(--lpc-rojo);
}

/* ---------- Ganadores ---------- */

.lpc-ganadores-wrap {
	max-width: 720px;
	margin: 0 auto;
	padding: 16px;
	color: var(--lpc-negro);
}

.lpc-ganadores-titulo {
	text-align: center;
	font-size: 22px;
	font-weight: 800;
	margin: 0 0 18px;
}

.lpc-ganadores-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 14px;
}

.lpc-ganador-dia {
	background: #fff;
	border: 1px solid rgba(0, 0, 0, 0.08);
	border-radius: 16px;
	padding: 16px;
	text-align: center;
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
}

.lpc-ganador-dia h3 {
	margin: 0 0 12px;
	font-size: 15px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	color: var(--lpc-rojo);
}

.lpc-ganador-card img {
	width: 90px;
	aspect-ratio: 700 / 935;
	object-fit: cover;
	border-radius: 6px;
	margin: 0 auto 10px;
	display: block;
	box-shadow: 0 6px 14px rgba(0, 0, 0, 0.2);
}

.lpc-ganador-nombre {
	font-weight: 700;
	margin: 0 0 2px;
}

.lpc-ganador-ig,
.lpc-ganador-numero {
	color: #888;
	font-size: 13px;
	margin: 0 0 2px;
}

.lpc-ganador-libro {
	font-size: 13.5px;
	margin: 6px 0;
}

.lpc-ganador-pendiente {
	color: #aaa;
	font-size: 13.5px;
	margin: 10px 0 0;
}

.lpc-promo-compradores {
	display: block;
	text-align: center;
	margin-top: 26px;
	padding-top: 22px;
	border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.lpc-promo-logo {
	max-width: 230px !important;
	width: 70%;
	height: auto;
	margin: 0 auto 12px;
	display: block;
}

.lpc-promo-compradores h3 {
	font-size: 15px;
	font-weight: 700;
	margin: 0 0 6px;
	color: var(--lpc-negro);
}

.lpc-promo-compradores p {
	font-size: 12.5px;
	color: #888;
	line-height: 1.5;
	margin: 0 auto 14px;
	max-width: 380px;
}

.lpc-promo-compradores .lpc-btn-sutil {
	display: inline-flex;
	width: auto;
	min-height: auto;
	padding: 9px 22px;
	font-size: 12.5px;
	font-weight: 700;
	border-radius: 999px;
	border: 1.5px solid var(--lpc-rojo);
	background: transparent;
	color: var(--lpc-rojo) !important;
	transition: background 0.15s ease, color 0.15s ease;
}

.lpc-promo-compradores .lpc-btn-sutil:hover {
	background: var(--lpc-rojo);
	color: #fff !important;
}

/* ---------- Responsive: tablet / desktop ---------- */

@media (min-width: 640px) {
	.lpc-wrap {
		max-width: 560px;
		padding: 24px;
	}

	.lpc-game {
		padding: 36px 40px 40px;
	}

	.lpc-titulo {
		font-size: 32px;
	}

	.lpc-tienda,
	.lpc-ganadores-wrap {
		padding: 0 24px;
	}

	.lpc-tienda {
		max-width: 720px;
	}

	.lpc-tienda-grid {
		grid-template-columns: repeat(3, 1fr);
	}

	.lpc-ganadores-grid {
		grid-template-columns: repeat(3, 1fr);
	}

	.lpc-acciones {
		flex-direction: row-reverse;
		gap: 10px;
	}

	.lpc-acciones .lpc-btn-ghost {
		margin-top: 0;
	}
}

@media (min-width: 400px) and (max-width: 639px) {
	.lpc-doble-input {
		flex-direction: row;
	}
}

@media (max-width: 399px) {
	.lpc-doble-input {
		flex-direction: column;
	}

	.lpc-libro-nombre {
		font-size: 11px;
	}
}

/* ---------- Blindaje: gana cualquier estilo del theme (mayor especificidad + !important) ---------- */

#juego-lpc .lpc-tienda-card img,
#juego-lpc .lpc-libro-card img,
#juego-lpc .lpc-ticket img,
#juego-lpc-ganadores .lpc-ganador-card img {
	box-shadow: none !important;
	filter: none !important;
	-webkit-filter: none !important;
}

#juego-lpc .lpc-logo,
#juego-lpc-ganadores .lpc-promo-logo {
	box-shadow: none !important;
	filter: none !important;
	-webkit-filter: none !important;
}

#juego-lpc a.lpc-btn-primary,
#juego-lpc .lpc-btn-primary.lpc-btn-primary,
#juego-lpc button.lpc-btn-primary {
	color: #fff !important;
}

#juego-lpc-ganadores a.lpc-promo-compradores .lpc-btn-sutil,
#juego-lpc-ganadores .lpc-btn-sutil.lpc-btn-sutil {
	color: var(--lpc-rojo) !important;
}

#juego-lpc-ganadores a.lpc-promo-compradores .lpc-btn-sutil:hover {
	color: #fff !important;
}
