/* Certify Certificados — Frontend */

.certcert-emitir {
	max-width: 480px;
	margin: 24px auto;
	font-family: inherit;
}

.certcert-box {
	background: #ffffff;
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	padding: 28px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.certcert-box h3 {
	margin: 0 0 4px;
	font-size: 22px;
}

.certcert-evento {
	margin: 0 0 18px;
	color: #6b7280;
	font-size: 15px;
}

.certcert-step label {
	display: block;
	margin: 14px 0 4px;
	font-size: 13px;
	font-weight: 600;
	color: #374151;
}

.certcert-step input,
.certcert-step select {
	width: 100%;
	box-sizing: border-box;
	padding: 10px 12px;
	border: 1px solid #d1d5db;
	border-radius: 8px;
	font-size: 15px;
	margin-bottom: 4px;
}

.certcert-step input:focus,
.certcert-step select:focus {
	outline: none;
	border-color: #2563eb;
	box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.certcert-btn {
	display: inline-block;
	margin-top: 14px;
	padding: 11px 22px;
	background: #2563eb;
	color: #ffffff;
	border: none;
	border-radius: 8px;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
}

.certcert-btn:hover {
	background: #1d4ed8;
}

.certcert-btn:disabled {
	opacity: 0.6;
	cursor: wait;
}

.certcert-msg {
	margin: 12px 0 0;
	font-size: 14px;
	line-height: 1.4;
}

.certcert-msg.is-error {
	color: #b91c1c;
}

.certcert-msg.is-success {
	color: #047857;
}

.certcert-soporte {
	margin-top: 14px;
	padding: 14px 16px;
	background: #f0fdf4;
	border: 1px solid #bbf7d0;
	border-radius: 10px;
	text-align: center;
}

.certcert-soporte-texto {
	margin: 0 0 10px;
	font-size: 14px;
	color: #166534;
	line-height: 1.4;
}

.certcert-btn-wsp {
	background: #25d366;
	color: #ffffff;
	text-decoration: none;
}

.certcert-btn-wsp:hover {
	background: #1eb857;
	color: #ffffff;
}

.certcert-error {
	color: #b91c1c;
	background: #fef2f2;
	border: 1px solid #fecaca;
	border-radius: 8px;
	padding: 12px 16px;
}

/* ---------- Resultados de verificación ---------- */
.certcert-cert-card {
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	padding: 20px;
	margin-top: 16px;
	background: #f9fafb;
	text-align: center;
}

.certcert-cert-nombre {
	font-size: 20px;
	font-weight: 700;
	color: #111827;
}

.certcert-cert-evento {
	margin-top: 4px;
	font-size: 15px;
	color: #374151;
}

.certcert-cert-fecha {
	margin-top: 2px;
	font-size: 13px;
	color: #6b7280;
}

.certcert-cert-codigo {
	margin-top: 10px;
	font-size: 12px;
	color: #9ca3af;
	letter-spacing: 0.05em;
}

.certcert-cert-list {
	margin-top: 16px;
	display: grid;
	gap: 10px;
}

.certcert-cert-row {
	border: 1px solid #e5e7eb;
	border-radius: 10px;
	padding: 14px 16px;
	background: #f9fafb;
}

/* ---------- Credencial digital POK ---------- */
.certcert-pok #certcert_pok_orders {
	margin: 4px 0 2px;
}

.certcert-pok .certcert-pok-evento {
	margin: 12px 0 0;
	padding: 8px 10px;
	background: #eff6ff;
	border-radius: 8px;
	font-size: 13px;
	color: #1e40af;
}

.certcert-pok .certcert-pok-confirma {
	display: flex !important;
	align-items: flex-start;
	gap: 8px;
	margin: 16px 0 0 !important;
	font-weight: 500 !important;
	line-height: 1.45;
	cursor: pointer;
}

.certcert-pok .certcert-pok-confirma input {
	width: auto;
	margin: 2px 0 0;
	flex: 0 0 auto;
}

.certcert-pok-resultado {
	text-align: center;
}

.certcert-pok-link-wrap {
	margin-top: 14px;
}

.certcert-btn-pok {
	background: #0f766e;
	text-decoration: none;
}

.certcert-btn-pok:hover {
	background: #115e59;
	color: #ffffff;
}

.certcert-sub {
	color: #6b7280;
	font-size: 13px;
	margin-top: 10px;
}

/* ---------- Flujo de reclamo: compra encontrada + declaración ---------- */
.certcert-encontrado {
	margin: 0 0 18px;
	padding: 14px 16px;
	background: #f0fdf4;
	border: 1px solid #bbf7d0;
	border-radius: 10px;
}

.certcert-encontrado-titulo {
	margin: 0 0 8px;
	font-size: 14px;
	font-weight: 700;
	color: #166534;
}

.certcert-encontrado .certcert-orders label {
	margin-top: 0;
	color: #166534;
}

.certcert-encontrado .certcert-orders select {
	background: #ffffff;
}

.certcert-orders-dato {
	margin: 0;
	font-size: 13px;
	color: #166534;
}

/* El checkbox de acepto rompe el width:100% de los inputs del paso. */
.certcert-step .certcert-confirma {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin: 18px 0 0;
	padding: 13px 14px;
	background: #f9fafb;
	border: 1px solid #e5e7eb;
	border-radius: 10px;
	font-size: 13px;
	font-weight: 500;
	line-height: 1.45;
	color: #374151;
	cursor: pointer;
}

.certcert-step .certcert-confirma input[type="checkbox"] {
	width: auto;
	flex: 0 0 auto;
	margin: 2px 0 0;
	padding: 0;
	border-radius: 4px;
}

.certcert-confirma-texto {
	display: block;
}

.certcert-btn-upgrade {
	background: #0891b2;
	text-decoration: none;
	text-align: center;
}

.certcert-btn-upgrade:hover {
	background: #0e7490;
	color: #ffffff;
}

.certcert-btn-outline {
	background: #ffffff;
	color: #166534;
	border: 1px solid #86efac;
	text-decoration: none;
	text-align: center;
}

.certcert-btn-outline:hover {
	background: #f0fdf4;
	color: #166534;
}

/* ---------- Modal: documento no encontrado ---------- */
.certcert-modal {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
}

.certcert-modal[hidden] {
	display: none;
}

.certcert-modal-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(17, 24, 39, 0.55);
}

.certcert-modal-card {
	position: relative;
	width: 100%;
	max-width: 460px;
	max-height: 88vh;
	overflow-y: auto;
	background: #ffffff;
	border-radius: 14px;
	padding: 26px 24px 22px;
	box-shadow: 0 20px 50px rgba(0, 0, 0, 0.28);
	text-align: center;
	font-family: inherit;
}

.certcert-modal-x {
	position: absolute;
	top: 8px;
	right: 10px;
	width: 34px;
	height: 34px;
	padding: 0;
	background: transparent;
	border: none;
	border-radius: 50%;
	font-size: 26px;
	line-height: 1;
	color: #9ca3af;
	cursor: pointer;
}

.certcert-modal-x:hover {
	background: #f3f4f6;
	color: #374151;
}

.certcert-modal-titulo {
	margin: 0 0 12px;
	font-size: 19px;
	line-height: 1.3;
	color: #111827;
}

.certcert-modal-texto {
	margin: 0 0 12px;
	font-size: 14px;
	line-height: 1.55;
	color: #4b5563;
	text-align: left;
}

.certcert-modal-dni {
	margin: 0 0 18px;
	padding: 8px 12px;
	background: #f3f4f6;
	border-radius: 8px;
	font-size: 13px;
	color: #374151;
}

.certcert-modal-card .certcert-btn {
	display: block;
	width: 100%;
	box-sizing: border-box;
	margin-top: 10px;
}

.certcert-modal-nota {
	margin: 14px 0 0;
	font-size: 12px;
	line-height: 1.45;
	color: #6b7280;
}

.certcert-modal-volver {
	margin-top: 16px;
	background: none;
	border: none;
	padding: 0;
	font-size: 13px;
	color: #6b7280;
	text-decoration: underline;
	cursor: pointer;
}

.certcert-modal-volver:hover {
	color: #374151;
}

body.certcert-modal-abierto {
	overflow: hidden;
}

/* ---------- Paso 3: resultado (PDF + credencial digital) ---------- */
.certcert-resultado {
	text-align: center;
}

.certcert-resultado-titulo {
	margin: 0 0 8px;
	font-size: 19px;
	font-weight: 700;
	color: #047857;
}

.certcert-resultado-nombre {
	margin: 0 0 4px;
	font-size: 15px;
	color: #374151;
}

.certcert-resultado-codigo {
	margin: 0 0 6px;
	font-size: 13px;
	color: #6b7280;
	letter-spacing: 0.03em;
}

.certcert-cred {
	margin: 20px 0 0;
	padding: 16px;
	background: #f0fdfa;
	border: 1px solid #99f6e4;
	border-radius: 10px;
}

.certcert-cred-titulo {
	margin: 0 0 6px;
	font-size: 15px;
	font-weight: 700;
	color: #0f766e;
}

.certcert-cred-estado {
	margin: 0;
	font-size: 13px;
	line-height: 1.45;
	color: #115e59;
}

.certcert-cred-estado.is-error {
	color: #b91c1c;
}

/* ---------- Pantalla: este documento ya emitió ---------- */
.certcert-ya-card {
	margin-top: 14px;
	padding: 16px;
	background: #f9fafb;
	border: 1px solid #e5e7eb;
	border-radius: 10px;
	text-align: center;
}

.certcert-ya-nombre {
	font-size: 16px;
	font-weight: 700;
	color: #111827;
}

.certcert-ya-evento {
	margin-top: 2px;
	font-size: 14px;
	color: #4b5563;
}

.certcert-ya-codigo {
	margin: 8px 0 4px;
	font-size: 12px;
	color: #9ca3af;
	letter-spacing: 0.05em;
}

.certcert-ya-card .certcert-btn {
	margin-top: 10px;
}

.certcert-res-soporte {
	margin: 14px 0 0;
	font-size: 13px;
	color: #6b7280;
}

.certcert-res-soporte a {
	color: #0f766e;
	font-weight: 600;
}

.certcert-ya-cred {
	margin-top: 12px;
	padding: 12px;
	background: #f0fdfa;
	border: 1px solid #99f6e4;
	border-radius: 8px;
}

.certcert-ya-cred-titulo {
	font-size: 14px;
	font-weight: 700;
	color: #0f766e;
}

.certcert-ya-cred-estado {
	margin: 4px 0 0;
	font-size: 12px;
	color: #115e59;
}

.certcert-ya-cred-estado.is-error {
	color: #b91c1c;
}

.certcert-ya-cred .certcert-btn-pok {
	margin-top: 8px;
}

/* ---------- Contraste contra el tema / Elementor ----------
   El kit de Elementor (`.elementor-kit-18 button`) marca los <button> de TODO el
   sitio con `border-radius:999px !important; background:transparent !important`,
   así que ningún selector nuestro gana por especificidad: los botones del plugin
   quedaban transparentes y en forma de píldora, y se perdía la jerarquía visual
   (primario / secundario / verde de WhatsApp).
   Se responde con `!important` PERO acotado a los formularios del plugin
   (`.certcert-emitir` / `.certcert-verificar`), así que no toca nada del resto
   del sitio. Si algún día se cambia la paleta, tocar solo acá. */
.certcert-emitir .certcert-btn,
.certcert-verificar .certcert-btn,
.certcert-emitir .certcert-modal .certcert-btn {
	padding: 11px 22px !important;
	border: none !important;
	border-radius: 8px !important;
	background: #2563eb !important;
	color: #ffffff !important;
	font-size: 15px !important;
	font-weight: 600 !important;
	line-height: 1.3 !important;
	text-transform: none !important;
	text-decoration: none !important;
	cursor: pointer;
}

.certcert-emitir .certcert-btn:hover,
.certcert-verificar .certcert-btn:hover {
	background: #1d4ed8 !important;
	color: #ffffff !important;
}

.certcert-emitir .certcert-btn:disabled,
.certcert-verificar .certcert-btn:disabled {
	opacity: 0.65;
	cursor: wait;
}

.certcert-emitir .certcert-btn-wsp {
	background: #25d366 !important;
	color: #ffffff !important;
}

.certcert-emitir .certcert-btn-wsp:hover {
	background: #1eb857 !important;
	color: #ffffff !important;
}

.certcert-emitir .certcert-btn-pok {
	background: #0f766e !important;
	color: #ffffff !important;
}

.certcert-emitir .certcert-btn-pok:hover {
	background: #115e59 !important;
	color: #ffffff !important;
}

.certcert-emitir .certcert-btn-upgrade {
	background: #0891b2 !important;
	color: #ffffff !important;
}

.certcert-emitir .certcert-btn-upgrade:hover {
	background: #0e7490 !important;
	color: #ffffff !important;
}

.certcert-emitir .certcert-btn-linkedin {
	background: #0a66c2 !important;
	color: #ffffff !important;
}

.certcert-emitir .certcert-btn-linkedin:hover {
	background: #084e96 !important;
	color: #ffffff !important;
}

.certcert-emitir .certcert-btn-copiar {
	background: #f3f4f6 !important;
	color: #374151 !important;
	border: 1px solid #d1d5db !important;
}

.certcert-emitir .certcert-btn-copiar:hover {
	background: #e5e7eb !important;
	color: #111827 !important;
}

.certcert-emitir .certcert-btn-outline {
	background: #ffffff !important;
	color: #166534 !important;
	border: 1px solid #86efac !important;
}

.certcert-emitir .certcert-btn-outline:hover {
	background: #f0fdf4 !important;
	color: #166534 !important;
}

/* Campos del formulario: que no los re-maquete el tema. */
.certcert-emitir .certcert-step input:not([type="checkbox"]),
.certcert-emitir .certcert-step select {
	width: 100%;
	box-sizing: border-box;
	padding: 10px 12px;
	border: 1px solid #d1d5db;
	border-radius: 8px;
	background: #ffffff;
	font-size: 15px;
}

.certcert-emitir .certcert-step input:focus,
.certcert-emitir .certcert-step select:focus {
	outline: none;
	border-color: #2563eb;
	box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.certcert-emitir .certcert-step .certcert-confirma input[type="checkbox"] {
	width: 18px;
	height: 18px;
	min-width: 18px;
	padding: 0;
	border: 1px solid #9ca3af;
	border-radius: 4px;
	background: #ffffff;
	appearance: auto;
}

/* ---------- Estado de carga (emisión y consulta a POK) ---------- */
.certcert-spinner {
	display: inline-block;
	width: 14px;
	height: 14px;
	margin-right: 8px;
	vertical-align: -2px;
	border: 2px solid rgba(255, 255, 255, 0.45);
	border-top-color: #ffffff;
	border-radius: 50%;
	animation: certcert-girar 0.7s linear infinite;
}

.certcert-spinner-dark {
	border-color: rgba(15, 118, 110, 0.25);
	border-top-color: #0f766e;
}

@keyframes certcert-girar {
	to {
		transform: rotate(360deg);
	}
}

@media (prefers-reduced-motion: reduce) {
	.certcert-spinner {
		animation-duration: 2s;
	}
}

/* ---------- Acciones del resultado (LinkedIn / copiar link) ---------- */
.certcert-acciones {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	justify-content: center;
	margin-top: 14px;
}

.certcert-acciones .certcert-btn {
	margin-top: 0;
	font-size: 14px;
	padding: 9px 16px;
}

.certcert-btn-linkedin {
	background: #0a66c2;
	color: #ffffff;
}

.certcert-emitir .certcert-btn-linkedin:hover {
	background: #084e96;
	color: #ffffff;
}

.certcert-btn-copiar {
	background: #f3f4f6;
	color: #374151;
	border: 1px solid #d1d5db;
}

.certcert-emitir .certcert-btn-copiar:hover {
	background: #e5e7eb;
	color: #111827;
}

/* ---------- Pantallas chicas ---------- */
@media (max-width: 480px) {
	.certcert-emitir {
		margin: 12px auto;
	}

	.certcert-box {
		padding: 20px 16px;
	}

	.certcert-emitir .certcert-btn {
		width: 100%;
		box-sizing: border-box;
		text-align: center;
	}

	.certcert-modal {
		padding: 12px;
	}

	.certcert-modal-card {
		padding: 22px 16px 18px;
	}
}

