/* =========================================
   PALAELI PRE-CHECK — FORMULARIO PUBLICO
   ========================================= */

.pcp-wrap {
	--pcp-color: #2b3a67;
	--pcp-acento: #f4a300;
	--pcp-ok: #1a9c4a;
	--pcp-warn: #d9a007;
	--pcp-err: #cf3438;
	--pcp-borde: #e4e7ec;
	--pcp-texto: #2b3038;
	--pcp-suave: #5a6070;

	max-width: 620px;
	margin: 0 auto;
	font-family: inherit;
	box-sizing: border-box;
}

.pcp-wrap *,
.pcp-wrap *::before,
.pcp-wrap *::after {
	box-sizing: border-box;
}

.pcp-card {
	background: #fff;
	border: 1px solid var(--pcp-borde);
	border-radius: 14px;
	padding: 32px;
	box-shadow: 0 2px 14px rgba(20, 25, 40, .06);
}

/* --- Encabezado --- */
.pcp-head {
	text-align: center;
	margin-bottom: 26px;
}

.pcp-title {
	font-size: 24px;
	font-weight: 700;
	color: var(--pcp-texto);
	margin: 0 0 10px;
	line-height: 1.25;
}

.pcp-sub {
	font-size: 15px;
	color: var(--pcp-suave);
	margin: 0;
	line-height: 1.55;
}

/* --- Formulario --- */
.pcp-field {
	margin-bottom: 16px;
}

.pcp-label {
	display: block;
	font-size: 13.5px;
	font-weight: 600;
	color: var(--pcp-texto);
	margin-bottom: 7px;
}

.pcp-input {
	width: 100%;
	padding: 13px 16px;
	font-size: 15px;
	border: 1.5px solid var(--pcp-borde);
	border-radius: 9px;
	background: #fff;
	color: var(--pcp-texto);
	transition: border-color .18s;
	font-family: inherit;
}

.pcp-input:focus {
	outline: none;
	border-color: var(--pcp-color);
}

.pcp-input::placeholder {
	color: #a8adb8;
}

/* Honeypot: fuera de vista pero accesible para bots */
.pcp-hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.pcp-btn {
	width: 100%;
	padding: 15px 20px;
	font-size: 16px;
	font-weight: 600;
	color: #fff;
	background: var(--pcp-color);
	border: none;
	border-radius: 9px;
	cursor: pointer;
	transition: opacity .18s, transform .12s;
	font-family: inherit;
	margin-top: 4px;
}

.pcp-btn:hover:not(:disabled) {
	opacity: .9;
}

.pcp-btn:active:not(:disabled) {
	transform: translateY(1px);
}

.pcp-btn:disabled {
	opacity: .55;
	cursor: not-allowed;
}

.pcp-legal {
	font-size: 12px;
	color: #9aa0ac;
	text-align: center;
	margin: 14px 0 0;
	line-height: 1.5;
}

/* --- Cargando --- */
.pcp-loading {
	text-align: center;
	padding: 42px 20px;
}

.pcp-spinner {
	width: 42px;
	height: 42px;
	margin: 0 auto 20px;
	border: 3.5px solid #eceef2;
	border-top-color: var(--pcp-color);
	border-radius: 50%;
	animation: pcp-spin .8s linear infinite;
}

@keyframes pcp-spin {
	to { transform: rotate(360deg); }
}

.pcp-loading-text {
	font-size: 16px;
	font-weight: 600;
	color: var(--pcp-texto);
	margin: 0 0 6px;
}

.pcp-loading-sub {
	font-size: 13.5px;
	color: #9aa0ac;
	margin: 0;
}

/* --- Error --- */
.pcp-error {
	padding: 15px 18px;
	background: #fdf2f2;
	border: 1px solid #f5d3d4;
	border-radius: 9px;
	color: #a52427;
	font-size: 14.5px;
	line-height: 1.5;
	margin-top: 16px;
}

/* --- Resultado --- */
.pcp-score-box {
	text-align: center;
	padding: 8px 0 26px;
}

.pcp-score-circle {
	width: 120px;
	height: 120px;
	margin: 0 auto 16px;
	border-radius: 50%;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	color: #fff;
}

.pcp-score-num {
	font-size: 42px;
	font-weight: 700;
	line-height: 1;
}

.pcp-score-de {
	font-size: 12px;
	opacity: .85;
	margin-top: 3px;
}

.pcp-score-label {
	font-size: 19px;
	font-weight: 700;
	margin: 0 0 5px;
}

.pcp-score-url {
	font-size: 13.5px;
	color: #9aa0ac;
	margin: 0;
	word-break: break-all;
}

/* --- Categorias --- */
.pcp-cats {
	margin-bottom: 26px;
}

.pcp-cat {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 13px;
}

.pcp-cat-nombre {
	font-size: 13.5px;
	font-weight: 600;
	color: var(--pcp-texto);
	width: 105px;
	flex-shrink: 0;
}

.pcp-cat-barra {
	flex: 1;
	height: 9px;
	background: #eceef2;
	border-radius: 5px;
	overflow: hidden;
}

.pcp-cat-fill {
	height: 100%;
	border-radius: 5px;
	width: 0;
	transition: width .7s cubic-bezier(.2, .8, .3, 1);
}

.pcp-cat-num {
	font-size: 13px;
	font-weight: 700;
	width: 32px;
	text-align: right;
	flex-shrink: 0;
}

/* --- Hallazgos --- */
.pcp-issues-title {
	font-size: 15.5px;
	font-weight: 700;
	color: var(--pcp-texto);
	margin: 0 0 14px;
	padding-top: 22px;
	border-top: 1px solid var(--pcp-borde);
}

.pcp-issue {
	display: flex;
	gap: 12px;
	padding: 14px 16px;
	background: #f8f9fb;
	border-radius: 9px;
	margin-bottom: 10px;
	border-left: 3px solid #c9ccd4;
}

.pcp-issue-error { border-left-color: var(--pcp-err); }
.pcp-issue-warning { border-left-color: var(--pcp-warn); }

.pcp-issue-dot {
	width: 9px;
	height: 9px;
	border-radius: 50%;
	flex-shrink: 0;
	margin-top: 5px;
}

.pcp-issue-error .pcp-issue-dot { background: var(--pcp-err); }
.pcp-issue-warning .pcp-issue-dot { background: var(--pcp-warn); }

.pcp-issue-label {
	font-size: 14.5px;
	font-weight: 600;
	color: var(--pcp-texto);
	margin: 0 0 4px;
}

.pcp-issue-detail {
	font-size: 13.5px;
	color: var(--pcp-suave);
	margin: 0;
	line-height: 1.5;
	word-break: break-word;
}

/* --- Aviso final --- */
.pcp-more {
	margin-top: 20px;
	padding: 20px;
	background: var(--pcp-color);
	border-radius: 10px;
	text-align: center;
}

.pcp-more-title {
	color: #fff;
	font-size: 16px;
	font-weight: 700;
	margin: 0 0 8px;
}

.pcp-more-text {
	color: #dfe4ee;
	font-size: 13.5px;
	line-height: 1.55;
	margin: 0;
}

.pcp-more-mail {
	color: var(--pcp-acento);
	font-weight: 600;
}

.pcp-again {
	display: block;
	width: 100%;
	margin-top: 16px;
	padding: 12px;
	background: none;
	border: 1.5px solid var(--pcp-borde);
	border-radius: 9px;
	color: var(--pcp-suave);
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	font-family: inherit;
}

.pcp-again:hover {
	border-color: var(--pcp-color);
	color: var(--pcp-color);
}

/* --- Movil --- */
@media (max-width: 560px) {
	.pcp-card { padding: 24px 20px; border-radius: 12px; }
	.pcp-title { font-size: 21px; }
	.pcp-sub { font-size: 14px; }
	.pcp-cat-nombre { width: 84px; font-size: 12.5px; }
	.pcp-score-circle { width: 104px; height: 104px; }
	.pcp-score-num { font-size: 36px; }
}
