/* =========================================================
   PEKE&LOVE · SALDO Y CAMPAÑAS · FRONT
   v1.0.5
   ========================================================= */

.plsc-campaign,
.plsc-message {
	--plsc-pink: #E8A6A1;
	--plsc-title: #8B7768;
	--plsc-text: #7A6A5E;
	--plsc-nav: #6F6258;
	--plsc-bg: #F9F3EA;
	--plsc-soft: #F4E6DA;
	--plsc-green: #DDE9DE;
	--plsc-blue: #DCEAF3;
	--plsc-white: #FFFDFC;
	font-family: inherit;
	color: var(--plsc-text);
}

/* Card principal: mismo lenguaje visual que Mi Cuenta. */
.plsc-card {
	max-width: 860px;
	margin: 32px auto;
	padding: 32px 34px 30px;
	background: var(--plsc-white);
	border: 1px solid #eaded5;
	border-radius: 15px;
	box-shadow: 0 12px 34px rgba(111, 98, 88, .06);
}

.plsc-eyebrow {
	margin-bottom: 8px;
	font-size: 12px;
	line-height: 1.3;
	letter-spacing: .13em;
	text-transform: uppercase;
	color: var(--plsc-pink);
	font-weight: 700;
}

.plsc-card h2,
.plsc-message h2 {
	margin: 0 0 12px;
	color: var(--plsc-title);
	font-family: inherit;
	font-weight: 500;
	line-height: 1.12;
}

.plsc-card h2 {
	font-size: clamp(30px, 4vw, 43px);
}

.plsc-description {
	max-width: 720px;
	margin: 0 0 20px;
	font-size: 15px;
	line-height: 1.7;
}

.plsc-description p:last-child {
	margin-bottom: 0;
}

/* Recompensa. */
.plsc-reward-box {
	display: flex;
	gap: 11px;
	align-items: center;
	padding: 15px 17px;
	margin: 22px 0 28px;
	background: var(--plsc-bg);
	border: 1px solid #f0e5dc;
	border-radius: 11px;
}

.plsc-reward-box::before {
	content: '♡';
	color: var(--plsc-pink);
	font-size: 24px;
	line-height: 1;
}

.plsc-reward-box strong {
	font-size: 20px;
	line-height: 1;
	color: var(--plsc-pink);
	font-weight: 700;
}

.plsc-reward-box span {
	font-size: 13px;
	line-height: 1.4;
	color: var(--plsc-text);
}

/* Preguntas y campos. */
.plsc-field {
	margin: 0 0 24px;
}

.plsc-field > label:first-child {
	display: block;
	margin-bottom: 9px;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.45;
	color: var(--plsc-nav);
}

.plsc-field > label:first-child span,
.plsc-required span {
	color: inherit;
}

.plsc-field input[type='text'],
.plsc-field input[type='email'],
.plsc-field select,
.plsc-field textarea {
	width: 100%;
	box-sizing: border-box;
	border: 1px solid #dfd3ca;
	border-radius: 10px;
	padding: 12px 14px;
	background: #fff;
	color: var(--plsc-nav);
	font: inherit;
	font-size: 14px;
	line-height: 1.5;
	outline: none;
	box-shadow: none;
	transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.plsc-field input[type='text']:focus,
.plsc-field input[type='email']:focus,
.plsc-field select:focus,
.plsc-field textarea:focus {
	border-color: var(--plsc-pink);
	box-shadow: 0 0 0 3px rgba(232,166,161,.14);
	background: var(--plsc-white);
}

.plsc-field input[readonly] {
	background: #faf6f1;
}

.plsc-field textarea {
	min-height: 112px;
	resize: vertical;
}

.plsc-field small {
	display: block;
	margin-top: 6px;
	font-size: 12px;
	color: #9a887b;
}

/* Sí/no y opciones: más parecido a controles de la tienda. */
.plsc-options {
	display: flex;
	flex-wrap: wrap;
	gap: 9px;
}

.plsc-options label {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	min-width: 82px;
	box-sizing: border-box;
	padding: 9px 13px;
	background: #fff;
	border: 1px solid #e6dbd2;
	border-radius: 9px;
	color: var(--plsc-text);
	cursor: pointer;
	transition: border-color .18s ease, background .18s ease;
}

.plsc-options label:hover,
.plsc-options label:has(input:checked) {
	border-color: var(--plsc-pink);
	background: #fff7f6;
}

.plsc-options input,
.plsc-check input {
	accent-color: var(--plsc-pink);
}

/* Escala 1–5. */
.plsc-scale-wrap {
	max-width: 390px;
}

.plsc-scale {
	display: grid;
	grid-template-columns: repeat(5, minmax(42px, 1fr));
	gap: 8px;
}

.plsc-scale label {
	cursor: pointer;
}

.plsc-scale input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.plsc-scale span {
	display: flex;
	height: 42px;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	border: 1px solid #e0c4c1;
	border-radius: 9px;
	background: #fff;
	color: var(--plsc-title);
	font-size: 14px;
	transition: background .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}

.plsc-scale label:hover span {
	border-color: var(--plsc-pink);
}

.plsc-scale input:checked + span {
	background: var(--plsc-pink);
	border-color: var(--plsc-pink);
	color: #fff;
	transform: translateY(-1px);
}

.plsc-scale-legend {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	margin-top: 6px;
	font-size: 11px;
	color: #9a887b;
}

/* Consentimientos. */
.plsc-check {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	margin: 13px 0;
	font-size: 13px;
	line-height: 1.5;
	color: var(--plsc-text);
}

.plsc-check input {
	width: 16px;
	height: 16px;
	margin: 2px 0 0;
	flex: 0 0 auto;
}

.plsc-check a {
	color: var(--plsc-title);
	text-decoration: underline;
	text-underline-offset: 2px;
}

/* CTA. */
.plsc-submit {
	width: 100%;
	min-height: 48px;
	margin-top: 18px !important;
	padding: 13px 20px !important;
	border: 1px solid var(--plsc-pink) !important;
	border-radius: 9px !important;
	background: var(--plsc-pink) !important;
	color: #fff !important;
	font-size: 13px !important;
	font-weight: 700 !important;
	letter-spacing: .045em;
	text-transform: uppercase;
	box-shadow: none !important;
	transition: opacity .18s ease, transform .18s ease !important;
}

.plsc-submit:not(:disabled):hover {
	opacity: .9;
	transform: translateY(-1px);
}

.plsc-submit:disabled {
	opacity: .42;
	cursor: not-allowed;
}

/* Condiciones desplegables. */
.plsc-terms {
	margin-top: 18px;
	padding: 13px 15px;
	background: var(--plsc-bg);
	border: 1px solid #efe4da;
	border-radius: 9px;
	font-size: 13px;
	line-height: 1.6;
}

.plsc-terms summary {
	cursor: pointer;
	font-weight: 600;
	color: var(--plsc-title);
}

/* Pantallas de resultado. Nunca usamos el azul genérico para confirmaciones. */
.plsc-message {
	max-width: 760px;
	box-sizing: border-box;
	margin: 38px auto;
	padding: 38px 30px;
	background: var(--plsc-white);
	border: 1px solid #eaded5;
	border-radius: 15px;
	box-shadow: 0 12px 34px rgba(111,98,88,.06);
	text-align: center;
}

.plsc-message-heart {
	display: block;
	margin: 0 auto 10px;
	color: var(--plsc-pink);
	font-size: 44px;
	font-family: Georgia, serif;
	font-weight: 400;
	line-height: 1;
}

.plsc-message h2 {
	font-size: clamp(30px, 4vw, 42px);
	margin-bottom: 12px;
}

.plsc-message p {
	max-width: 620px;
	margin: 0 auto;
	font-size: 15px;
	line-height: 1.7;
	color: var(--plsc-text);
}

.plsc-success {
	border-top: 4px solid var(--plsc-pink);
}

.plsc-info {
	border-top: 4px solid var(--plsc-pink);
}

.plsc-error {
	border-top: 4px solid #d88d87;
}

.plsc-closed .plsc-card {
	text-align: center;
}

.plsc-closed .plsc-message-heart {
	margin-top: 2px;
}


.plsc-message-actions {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
	margin-top: 24px;
}

.plsc-message-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 11px 19px;
	border-radius: 9px;
	font-size: 13px;
	font-weight: 700;
	line-height: 1.25;
	text-decoration: none !important;
	transition: opacity .18s ease, transform .18s ease, background .18s ease;
}

.plsc-message-button:hover {
	transform: translateY(-1px);
	opacity: .92;
}

.plsc-message-button.is-primary {
	background: var(--plsc-pink);
	border: 1px solid var(--plsc-pink);
	color: #fff !important;
}

.plsc-message-button.is-secondary {
	background: var(--plsc-white);
	border: 1px solid var(--plsc-pink);
	color: var(--plsc-title) !important;
}

/* Anti-spam honeypot. */
.plsc-hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

@media (max-width: 640px) {
	.plsc-card {
		margin: 18px auto;
		padding: 24px 18px 22px;
		border-radius: 13px;
	}

	.plsc-card h2 {
		font-size: 31px;
	}

	.plsc-reward-box {
		align-items: flex-start;
		flex-wrap: wrap;
	}

	.plsc-reward-box::before {
		margin-top: -2px;
	}

	.plsc-scale-wrap {
		max-width: none;
	}

	.plsc-scale {
		gap: 6px;
	}

	.plsc-scale span {
		height: 40px;
	}

	.plsc-options {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.plsc-options label {
		min-width: 0;
	}

	.plsc-message {
		margin: 22px auto;
		padding: 30px 20px;
	}

	.plsc-message-actions {
		flex-direction: column;
	}

	.plsc-message-button {
		width: 100%;
		box-sizing: border-box;
	}
}
