.icep-cv-validador {
	--icep-verde: #16a34a;
	--icep-verde-oscuro: #15803d;
	--icep-rojo: #dc2626;
	--icep-texto: #1e293b;
	--icep-texto-suave: #64748b;
	--icep-borde: #e2e8f0;

	max-width: 560px;
	margin: 40px auto;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	box-sizing: border-box;
	padding: 0 16px;
}

.icep-cv-validador *,
.icep-cv-validador *::before,
.icep-cv-validador *::after {
	box-sizing: border-box;
}

.icep-cv-card {
	background: #fff;
	border-radius: 20px;
	padding: 40px 36px;
	box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06), 0 12px 32px rgba(15, 23, 42, 0.08);
	border: 1px solid var(--icep-borde);
	text-align: center;
	animation: icepCvAparecer 0.4s ease;
}

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

.icep-cv-icono-header {
	width: 56px;
	height: 56px;
	margin: 0 auto 16px;
	border-radius: 50%;
	background: linear-gradient(135deg, #dcfce7, #bbf7d0);
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--icep-verde-oscuro);
}

.icep-cv-icono-header svg {
	width: 28px;
	height: 28px;
}

.icep-cv-titulo {
	margin: 0 0 8px;
	font-size: 24px;
	font-weight: 700;
	color: var(--icep-texto);
	letter-spacing: -0.02em;
}

.icep-cv-subtitulo {
	margin: 0 0 28px;
	font-size: 14.5px;
	color: var(--icep-texto-suave);
	line-height: 1.6;
}

.icep-cv-form-row {
	display: flex;
	gap: 10px;
}

.icep-cv-input-wrap {
	flex: 1;
	position: relative;
}

.icep-cv-input-icono {
	position: absolute;
	left: 14px;
	top: 50%;
	transform: translateY(-50%);
	width: 18px;
	height: 18px;
	color: #94a3b8;
	pointer-events: none;
}

.icep-cv-form-row input[type="text"] {
	width: 100%;
	padding: 13px 14px 13px 40px;
	border: 1.5px solid var(--icep-borde);
	border-radius: 12px;
	font-size: 15.5px;
	color: var(--icep-texto);
	background: #f8fafc;
	transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
	letter-spacing: 0.02em;
}

.icep-cv-form-row input[type="text"]::placeholder {
	color: #b0b8c4;
	letter-spacing: normal;
}

.icep-cv-form-row input[type="text"]:focus {
	outline: none;
	border-color: var(--icep-verde);
	background: #fff;
	box-shadow: 0 0 0 4px rgba(22, 163, 74, 0.1);
}

.icep-cv-form-row button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 0 24px;
	border: none;
	border-radius: 12px;
	background: var(--icep-verde);
	color: #fff;
	font-size: 15.5px;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.15s ease, transform 0.05s ease;
	white-space: nowrap;
}

.icep-cv-form-row button:hover {
	background: var(--icep-verde-oscuro);
}

.icep-cv-form-row button:active {
	transform: scale(0.97);
}

.icep-cv-form-row button:disabled {
	opacity: 0.75;
	cursor: default;
}

.icep-cv-spinner {
	display: none;
	width: 15px;
	height: 15px;
	border: 2px solid rgba(255, 255, 255, 0.4);
	border-top-color: #fff;
	border-radius: 50%;
	animation: icepCvGirar 0.7s linear infinite;
}

.icep-cv-form-row button.icep-cv-cargando .icep-cv-btn-texto {
	display: none;
}

.icep-cv-form-row button.icep-cv-cargando .icep-cv-spinner {
	display: inline-block;
}

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

/* ---- Resultado ---- */
.icep-cv-resultado {
	display: none;
	margin-top: 26px;
	text-align: left;
	border-radius: 14px;
	overflow: hidden;
	animation: icepCvAparecer 0.35s ease;
}

.icep-cv-resultado.icep-cv-mostrar {
	display: block;
}

.icep-cv-resultado-header {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 16px 18px;
	font-weight: 700;
	font-size: 16px;
}

.icep-cv-resultado-header svg {
	width: 22px;
	height: 22px;
	flex-shrink: 0;
}

.icep-cv-resultado.icep-cv-valido {
	border: 1.5px solid #bbf7d0;
	background: #f0fdf4;
}

.icep-cv-resultado.icep-cv-valido .icep-cv-resultado-header {
	background: #dcfce7;
	color: var(--icep-verde-oscuro);
}

.icep-cv-resultado.icep-cv-invalido {
	border: 1.5px solid #fecaca;
	background: #fef2f2;
}

.icep-cv-resultado.icep-cv-invalido .icep-cv-resultado-header {
	background: #fee2e2;
	color: var(--icep-rojo);
}

.icep-cv-resultado-cuerpo {
	padding: 18px;
}

.icep-cv-resultado-cuerpo p {
	margin: 0;
	color: var(--icep-texto-suave);
	font-size: 14.5px;
	line-height: 1.6;
}

.icep-cv-datos {
	width: 100%;
	border-collapse: collapse;
}

.icep-cv-datos tr:not(:last-child) td {
	border-bottom: 1px dashed #d9e4dd;
}

.icep-cv-datos td {
	padding: 9px 0;
	vertical-align: top;
	font-size: 14.5px;
}

.icep-cv-datos td:first-child {
	font-weight: 600;
	width: 42%;
	color: var(--icep-texto-suave);
}

.icep-cv-datos td:last-child {
	color: var(--icep-texto);
	font-weight: 500;
	text-align: right;
}

.icep-cv-badge-estado {
	display: inline-block;
	padding: 2px 10px;
	border-radius: 20px;
	font-size: 12.5px;
	font-weight: 700;
	background: #dcfce7;
	color: var(--icep-verde-oscuro);
}

@media (max-width: 480px) {
	.icep-cv-card {
		padding: 28px 22px;
	}

	.icep-cv-form-row {
		flex-direction: column;
	}

	.icep-cv-form-row button {
		padding: 13px 24px;
	}

	.icep-cv-datos td:last-child {
		text-align: left;
	}
}
