/* Cotizador Jota Zelada · formulario público.
   Todo vive bajo .cjz-app para no chocar con el tema de WordPress. */

@font-face {
	font-family: "Plus Jakarta Sans";
	font-style: normal;
	font-weight: 200 800;
	font-display: swap;
	src: url("../fonts/plus-jakarta-latin-ext.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
	font-family: "Plus Jakarta Sans";
	font-style: normal;
	font-weight: 200 800;
	font-display: swap;
	src: url("../fonts/plus-jakarta-latin.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

.cjz-app {
	--cjz-morado: #6326e6;
	--cjz-morado-hover: #4d16c5;
	--cjz-error: #d9381e;
	background: #f4f4f5;
	color: #3f3f46;
	font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
	font-size: 16px;
	line-height: 1.5;
	padding: 32px 16px;
	-webkit-font-smoothing: antialiased;
	min-height: 100vh;
	box-sizing: border-box;
}

body.cjz-pagina {
	margin: 0;
	background: #f4f4f5;
}

.cjz-app *,
.cjz-app *::before,
.cjz-app *::after {
	box-sizing: border-box;
}

.cjz-app h1,
.cjz-app h2,
.cjz-app p,
.cjz-app fieldset,
.cjz-app legend {
	margin: 0;
	padding: 0;
	font-family: inherit;
}

.cjz-app fieldset {
	border: 0;
	min-width: 0;
}

.cjz-contenedor {
	max-width: 672px;
	margin: 0 auto;
}

.cjz-tarjeta {
	background: #fff;
	border-radius: 16px;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05), 0 0 0 1px #e4e4e7;
}

.cjz-encabezado {
	overflow: hidden;
	border-radius: 16px 16px 0 0;
}

.cjz-encabezado img {
	display: block;
	width: 100%;
	height: auto;
	max-width: none;
}

.cjz-cuerpo {
	padding: 24px;
}

/* ---- Textos ---- */

.cjz-bienvenida {
	display: grid;
	gap: 16px;
	font-size: 15px;
	line-height: 24px;
	color: #3f3f46;
}

.cjz-bienvenida .cjz-titulo-grande {
	font-size: 20px;
	line-height: 28px;
	font-weight: 700;
	color: #18181b;
}

.cjz-bienvenida .cjz-fuerte {
	font-weight: 600;
	color: #18181b;
}

.cjz-pregunta-servicio {
	margin-top: 32px;
}

.cjz-pregunta-servicio label {
	display: block;
	font-size: 18px;
	line-height: 28px;
	font-weight: 700;
	color: #18181b;
}

.cjz-descripcion-servicio {
	margin-top: 12px;
	border-radius: 8px;
	background: #f5f3ff;
	padding: 12px 16px;
	font-size: 14px;
	line-height: 20px;
	color: #3f3f46;
}

/* ---- Campos ---- */

.cjz-app .cjz-input,
.cjz-app .cjz-select,
.cjz-app .cjz-textarea {
	display: block;
	width: 100%;
	max-width: none;
	margin: 0;
	border: 1px solid #d4d4d8;
	border-radius: 8px;
	background: #fff;
	padding: 10px 12px;
	font-family: inherit;
	font-size: 14px;
	line-height: 20px;
	color: #27272a;
	outline: none;
	box-shadow: none;
	transition: border-color 0.15s, box-shadow 0.15s;
}

.cjz-app .cjz-input:focus,
.cjz-app .cjz-select:focus,
.cjz-app .cjz-textarea:focus {
	border-color: var(--cjz-morado);
	box-shadow: 0 0 0 2px #ede9fe;
}

.cjz-app .cjz-select {
	appearance: none;
	-webkit-appearance: none;
	padding-right: 40px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 7l5 5 5-5' stroke='%2371717a' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 12px center;
	background-size: 16px 16px;
}

.cjz-app .cjz-textarea {
	resize: vertical;
}

/* ---- Pasos ---- */

.cjz-progreso-cabecera {
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-size: 12px;
	line-height: 16px;
	font-weight: 600;
	color: #71717a;
}

.cjz-progreso-barra {
	margin-top: 8px;
	height: 6px;
	overflow: hidden;
	border-radius: 9999px;
	background: #f4f4f5;
}

.cjz-progreso-barra div {
	height: 100%;
	border-radius: 9999px;
	background: var(--cjz-morado);
	transition: width 0.2s;
}

.cjz-titulo-paso {
	margin-top: 20px;
	font-size: 20px;
	line-height: 28px;
	font-weight: 700;
	color: var(--cjz-morado);
}

.cjz-cabecera-paso {
	margin-bottom: 32px;
}

.cjz-preguntas {
	display: grid;
	gap: 32px;
}

.cjz-pregunta legend {
	font-size: 16px;
	line-height: 1.375;
	font-weight: 600;
	color: #18181b;
	padding: 0;
	float: none;
	width: auto;
}

.cjz-pregunta .cjz-opcional {
	margin-left: 8px;
	font-size: 14px;
	font-weight: 400;
	color: #71717a;
}

.cjz-pregunta .cjz-ayuda {
	margin-top: 4px;
	font-size: 14px;
	line-height: 20px;
	color: #71717a;
}

.cjz-opciones {
	margin-top: 12px;
	display: grid;
	gap: 8px;
}

.cjz-opcion {
	border: 1px solid #e4e4e7;
	border-radius: 12px;
	background: #fff;
	transition: border-color 0.15s, background 0.15s;
}

.cjz-opcion.cjz-marcada {
	border-color: var(--cjz-morado);
	background: #f5f3ff;
}

.cjz-opcion.cjz-bloqueada {
	opacity: 0.5;
}

.cjz-opcion > label {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 12px 14px;
	font-size: 14px;
	line-height: 20px;
	color: #27272a;
	cursor: pointer;
	margin: 0;
}

.cjz-opcion.cjz-bloqueada > label {
	cursor: not-allowed;
}

.cjz-app .cjz-opcion input[type="radio"],
.cjz-app .cjz-opcion input[type="checkbox"],
.cjz-app .cjz-acepta input[type="checkbox"] {
	flex-shrink: 0;
	width: 16px;
	height: 16px;
	margin: 2px 0 0;
	accent-color: var(--cjz-morado);
}

/* Algunos temas esconden las casillas nativas para dibujar las suyas. Aquí
   se fuerzan visibles para que nunca desaparezcan. */
.cjz-app .cjz-opcion input[type="radio"],
.cjz-app .cjz-opcion input[type="checkbox"],
.cjz-app .cjz-acepta input[type="checkbox"] {
	-webkit-appearance: auto !important;
	appearance: auto !important;
	display: inline-block !important;
	position: static !important;
	opacity: 1 !important;
	visibility: visible !important;
	clip: auto !important;
	clip-path: none !important;
	width: 16px !important;
	height: 16px !important;
	min-width: 16px !important;
	min-height: 16px !important;
	transform: none !important;
	box-shadow: none !important;
}

.cjz-app .cjz-opcion input[type="radio"]::before,
.cjz-app .cjz-opcion input[type="radio"]::after,
.cjz-app .cjz-opcion input[type="checkbox"]::before,
.cjz-app .cjz-opcion input[type="checkbox"]::after,
.cjz-app .cjz-acepta input[type="checkbox"]::before,
.cjz-app .cjz-acepta input[type="checkbox"]::after {
	content: none !important;
	display: none !important;
}

.cjz-opcion span {
	line-height: 1.375;
}

.cjz-detalle {
	padding: 0 14px 14px 40px;
}

.cjz-detalle label {
	display: grid;
	gap: 6px;
	font-size: 12px;
	line-height: 16px;
	font-weight: 500;
	color: #3f3f46;
	margin: 0;
}

.cjz-contador {
	text-align: right;
	font-size: 12px;
	line-height: 16px;
	color: #a1a1aa;
	margin-top: 8px;
}

.cjz-nota {
	font-size: 12px;
	line-height: 16px;
	color: #a1a1aa;
	margin-top: 8px;
}

.cjz-error {
	margin-top: 8px;
	font-size: 14px;
	line-height: 20px;
	font-weight: 500;
	color: var(--cjz-error);
}

/* ---- Contacto ---- */

.cjz-contacto {
	display: grid;
	gap: 20px;
}

.cjz-fila {
	display: grid;
	gap: 20px;
}

.cjz-contacto label.cjz-campo {
	display: grid;
	gap: 6px;
	font-size: 14px;
	line-height: 20px;
	font-weight: 500;
	color: #27272a;
	margin: 0;
}

.cjz-contacto .cjz-campo .cjz-error {
	margin-top: 0;
	font-weight: 400;
}

.cjz-campo .cjz-leve {
	font-weight: 400;
	color: #71717a;
}

.cjz-acepta label {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	font-size: 14px;
	line-height: 20px;
	color: #3f3f46;
	margin: 0;
}

.cjz-acepta .cjz-error {
	margin-top: 4px;
}

.cjz-trampa {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.cjz-falla {
	border-radius: 8px;
	background: #fef2f2;
	padding: 12px 16px;
	font-size: 14px;
	line-height: 20px;
	font-weight: 500;
	color: #991b1b;
}

/* ---- Botones ---- */

.cjz-acciones {
	margin-top: 40px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	flex-wrap: wrap;
}

.cjz-acciones.cjz-acciones-form {
	margin-top: 8px;
}

.cjz-app .cjz-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin: 0;
	border-radius: 8px;
	font-family: inherit;
	font-size: 14px;
	line-height: 20px;
	white-space: nowrap;
	cursor: pointer;
	text-decoration: none;
	transition: background 0.15s, opacity 0.15s;
}

.cjz-app .cjz-btn-primario {
	border: 0;
	background: var(--cjz-morado);
	padding: 12px 20px;
	font-weight: 600;
	color: #fff;
}

.cjz-app .cjz-btn-primario:hover:not(:disabled) {
	background: var(--cjz-morado-hover);
}

.cjz-app .cjz-btn-secundario {
	border: 1px solid #d4d4d8;
	background: #fff;
	padding: 12px 16px;
	font-weight: 500;
	color: #3f3f46;
}

.cjz-app .cjz-btn-secundario:hover:not(:disabled) {
	background: #fafafa;
}

.cjz-app .cjz-btn:disabled {
	cursor: not-allowed;
	opacity: 0.5;
}

.cjz-app .cjz-btn svg {
	width: 16px;
	height: 16px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.cjz-giro {
	animation: cjz-giro 1s linear infinite;
}

@keyframes cjz-giro {
	to {
		transform: rotate(360deg);
	}
}

/* ---- Pantalla final ---- */

.cjz-final {
	padding: 24px;
	text-align: center;
}

.cjz-final-ilustracion {
	display: flex;
	justify-content: center;
}

.cjz-final-ilustracion img {
	width: 160px;
	height: 160px;
	max-width: none;
}

.cjz-final h2 {
	margin-top: 16px;
	font-size: 24px;
	line-height: 32px;
	font-weight: 700;
	color: #18181b;
}

.cjz-final .cjz-final-texto {
	margin-top: 12px;
	font-size: 14px;
	line-height: 24px;
	color: #52525b;
}

.cjz-final .cjz-final-urgente {
	margin-top: 24px;
	font-size: 12px;
	line-height: 16px;
	color: #71717a;
}

.cjz-final a {
	font-weight: 600;
	color: var(--cjz-morado);
	text-decoration: none;
}

.cjz-final a:hover {
	text-decoration: underline;
}

.cjz-no-disponible {
	max-width: 576px;
	margin: 0 auto;
	padding: 64px 0;
	text-align: center;
}

.cjz-no-disponible h1 {
	font-size: 24px;
	line-height: 32px;
	font-weight: 700;
	color: #18181b;
}

.cjz-no-disponible p {
	margin-top: 12px;
	font-size: 14px;
	color: #52525b;
}

.cjz-no-disponible a {
	font-weight: 600;
	color: var(--cjz-morado);
}

@media (min-width: 640px) {
	.cjz-app {
		padding: 48px 24px;
	}

	.cjz-cuerpo,
	.cjz-final {
		padding: 40px;
	}

	.cjz-fila.cjz-dos {
		grid-template-columns: 1fr 1fr;
	}

	.cjz-final-ilustracion img {
		width: 192px;
		height: 192px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.cjz-giro {
		animation: none;
	}
}

.cjz-detalle-titulo {
	margin: 0 0 6px;
	font-size: 12px;
	line-height: 16px;
	font-weight: 500;
	color: #3f3f46;
}

.cjz-rango {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
}

@media (max-width: 480px) {
	.cjz-rango {
		grid-template-columns: 1fr;
	}
}

.cjz-verificacion {
	margin: 8px 0 20px;
	text-align: center;
}

.cjz-verificacion #cjz-turnstile {
	min-height: 65px;
	text-align: center;
}

.cjz-verificacion #cjz-turnstile > div,
.cjz-verificacion #cjz-turnstile iframe {
	margin-left: auto;
	margin-right: auto;
}

.cjz-verificado {
	margin: 0;
	font-size: 14px;
	font-weight: 600;
	color: #1e7e34;
}
