/* =========================================
   PALAELI — ANALISIS DE MALWARE (publico)
   ========================================= */

.pcm-wrap {
	--pcm-rojo: #cf3438;
	--pcm-rojo-suave: #fdf2f2;
	--pcm-amarillo: #d9a007;
	--pcm-amarillo-suave: #fdfaef;
	--pcm-verde: #1a9c4a;
	--pcm-verde-suave: #f1faf4;

	max-width: 660px;
	margin: 0 auto;
	box-sizing: border-box;
}

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

/* --- Banner de estado --- */
.pcm-estado {
	border-radius: 12px;
	padding: 30px 26px;
	text-align: center;
	margin-bottom: 22px;
}

.pcm-estado-infected { background: var(--pcm-rojo); }
.pcm-estado-suspicious { background: var(--pcm-amarillo); }
.pcm-estado-clean { background: var(--pcm-verde); }

.pcm-estado-icono {
	width: 54px;
	height: 54px;
	margin: 0 auto 14px;
	border-radius: 50%;
	background: rgba(255, 255, 255, .22);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 28px;
	line-height: 1;
	color: #fff;
	font-weight: 700;
}

.pcm-estado-titulo {
	color: #fff;
	font-size: 26px;
	font-weight: 800;
	margin: 0 0 8px;
	line-height: 1.2;
	letter-spacing: -.3px;
}

.pcm-estado-resumen {
	color: rgba(255, 255, 255, .94);
	font-size: 15.5px;
	margin: 0 0 4px;
	line-height: 1.5;
}

.pcm-estado-dominio {
	color: rgba(255, 255, 255, .78);
	font-size: 13px;
	margin: 10px 0 0;
	word-break: break-all;
}

/* Pulso solo cuando hay infeccion */
.pcm-estado-infected .pcm-estado-icono {
	animation: pcm-pulso 2s ease-in-out infinite;
}

@keyframes pcm-pulso {
	0%, 100% { transform: scale(1); }
	50% { transform: scale(1.08); }
}

@media (prefers-reduced-motion: reduce) {
	.pcm-estado-infected .pcm-estado-icono { animation: none; }
}

/* --- Hallazgos --- */
.pcm-hallazgos-titulo {
	font-size: 16px;
	font-weight: 700;
	color: #2b3038;
	margin: 0 0 14px;
}

.pcm-hallazgo {
	border: 1px solid #e4e7ec;
	border-left: 4px solid #c9ccd4;
	border-radius: 9px;
	padding: 17px 19px;
	margin-bottom: 12px;
	background: #fff;
}

.pcm-hallazgo-critical {
	border-left-color: var(--pcm-rojo);
	background: var(--pcm-rojo-suave);
	border-color: #f5d3d4;
}

.pcm-hallazgo-warning {
	border-left-color: var(--pcm-amarillo);
	background: var(--pcm-amarillo-suave);
	border-color: #f2e4c0;
}

.pcm-etiqueta {
	display: inline-block;
	font-size: 10.5px;
	font-weight: 800;
	letter-spacing: .6px;
	text-transform: uppercase;
	padding: 3px 9px;
	border-radius: 4px;
	color: #fff;
	margin-bottom: 9px;
}

.pcm-etiqueta-critical { background: var(--pcm-rojo); }
.pcm-etiqueta-warning { background: var(--pcm-amarillo); }

.pcm-hallazgo-titulo {
	font-size: 16px;
	font-weight: 700;
	color: #2b3038;
	margin: 0 0 7px;
	line-height: 1.35;
}

.pcm-hallazgo-detalle {
	font-size: 14px;
	color: #4a5160;
	margin: 0;
	line-height: 1.55;
	word-break: break-word;
}

.pcm-hallazgo-significa {
	margin-top: 11px;
	padding-top: 11px;
	border-top: 1px solid rgba(0, 0, 0, .07);
	font-size: 13.5px;
	color: #5a6070;
	line-height: 1.55;
}

.pcm-hallazgo-significa strong {
	color: #2b3038;
	display: block;
	margin-bottom: 3px;
	font-size: 13px;
}

/* --- Bloque "hay mas en el PDF" --- */
.pcm-ocultos {
	background: #f7f8fa;
	border: 1px dashed #c9ccd4;
	border-radius: 9px;
	padding: 16px 18px;
	text-align: center;
	font-size: 14px;
	color: #5a6070;
	margin-bottom: 12px;
	line-height: 1.55;
}

/* --- Aviso de limitacion --- */
.pcm-aviso {
	background: #f7f8fa;
	border-left: 3px solid #8a909c;
	border-radius: 5px;
	padding: 15px 17px;
	font-size: 13px;
	color: #5a6070;
	line-height: 1.6;
	margin: 20px 0;
}

.pcm-aviso strong {
	color: #2b3038;
}

/* --- Confirmacion de correo --- */
.pcm-email-ok {
	background: #f1f6fc;
	border: 1px solid #cfe0f2;
	border-radius: 9px;
	padding: 17px 19px;
	margin-bottom: 18px;
	font-size: 14px;
	color: #2c4a6b;
	line-height: 1.55;
	text-align: center;
}

.pcm-email-ok strong { display: block; margin-bottom: 4px; font-size: 15px; }

/* --- Llamado a la accion --- */
.pcm-cta {
	border-radius: 11px;
	padding: 26px;
	text-align: center;
	margin-top: 20px;
	background: #2b3a67;
}

.pcm-cta-urgente { background: var(--pcm-rojo); }

.pcm-cta-titulo {
	color: #fff;
	font-size: 19px;
	font-weight: 700;
	margin: 0 0 9px;
	line-height: 1.3;
}

.pcm-cta-texto {
	color: rgba(255, 255, 255, .9);
	font-size: 14.5px;
	line-height: 1.6;
	margin: 0 0 18px;
}

.pcm-cta-boton {
	display: inline-block;
	background: #fff;
	color: #2b3a67;
	padding: 13px 30px;
	border-radius: 8px;
	font-size: 15px;
	font-weight: 700;
	text-decoration: none;
	transition: transform .12s;
}

.pcm-cta-urgente .pcm-cta-boton { color: var(--pcm-rojo); }

.pcm-cta-boton:hover {
	transform: translateY(-1px);
	text-decoration: none;
	color: #2b3a67;
}

.pcm-cta-urgente .pcm-cta-boton:hover { color: var(--pcm-rojo); }

/* --- Reiniciar --- */
.pcm-again {
	display: block;
	width: 100%;
	margin-top: 16px;
	padding: 12px;
	background: none;
	border: 1.5px solid #e4e7ec;
	border-radius: 9px;
	color: #5a6070;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	font-family: inherit;
}

.pcm-again:hover {
	border-color: #2b3a67;
	color: #2b3a67;
}

/* --- Movil --- */
@media (max-width: 560px) {
	.pcm-estado { padding: 26px 18px; }
	.pcm-estado-titulo { font-size: 22px; }
	.pcm-estado-resumen { font-size: 14.5px; }
	.pcm-hallazgo { padding: 15px 16px; }
	.pcm-hallazgo-titulo { font-size: 15px; }
	.pcm-cta { padding: 22px 18px; }
	.pcm-cta-titulo { font-size: 17px; }
}

/* --- Security weaknesses (not infections) --- */
.pcm-deb-titulo {
	margin-top: 24px;
	padding-top: 22px;
	border-top: 1px solid var(--pcp-borde, #e4e7ec);
}

.pcm-deb-intro {
	font-size: 13.5px;
	color: #7a8090;
	margin: -8px 0 14px;
	line-height: 1.5;
}

.pcm-deb {
	border-left: 3px solid var(--pcm-amarillo);
	background: #fdfaef;
	border-radius: 0 8px 8px 0;
	padding: 13px 16px;
	margin-bottom: 9px;
}

.pcm-deb-nombre {
	font-size: 14.5px;
	font-weight: 700;
	color: #2b3038;
	margin: 0 0 4px;
}

.pcm-deb-detalle {
	font-size: 13.5px;
	color: #5a6070;
	margin: 0;
	line-height: 1.5;
	word-break: break-word;
}

/* Exposed: no infection, but the site is wide open. Never green. */
.pcm-estado-exposed { background: var(--pcm-amarillo); }

.pcm-estado-exposed .pcm-estado-icono {
	animation: pcm-pulso 2.4s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
	.pcm-estado-exposed .pcm-estado-icono { animation: none; }
}
