/**
 * Archivo: wp-content/themes/nicawebs-child/assets/cotizador.css
 * Función: Estilos del cotizador por pasos (barra de progreso, tarjetas de opción, campos y botones).
 * Relación: Lo carga inc/cotizador.php junto con assets/cotizador.js, solo donde está el shortcode [nicawebs_cotizador].
 *           Usa los colores de theme.json (variables --wp--preset--color--*).
 */
.nw-cot {
	--c-acento: var(--wp--preset--color--turquesa, #0E7A84);
	--c-marino: var(--wp--preset--color--marino, #0B2545);
	--c-borde: #D5DCE4;
	background: #fff; border: 1px solid var(--wp--preset--color--plata, #E3E8EE); border-radius: 20px;
	padding: clamp(20px, 4vw, 44px); display: flex; flex-direction: column; gap: 24px;
	box-shadow: 0 24px 48px -32px rgba(11, 37, 69, .35);
}
.nw-cot [hidden] { display: none !important; }

.nw-cot__cabecera { display: flex; flex-direction: column; gap: 12px; }
.nw-cot__paso-texto { margin: 0; font-size: 13px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: #3B4C63; }
.nw-cot__barra { height: 8px; background: #E3E8EE; border-radius: 999px; overflow: hidden; }
.nw-cot__barra span { display: block; height: 100%; background: var(--c-acento); border-radius: 999px; transition: width .3s ease; }

.nw-cot__paso { border: 0; padding: 0; margin: 0; min-width: 0; }
.nw-cot__paso legend { font-size: 20px; font-weight: 700; color: var(--c-marino); margin-bottom: 16px; padding: 0; }
.nw-cot__req { font-size: 14px; font-weight: 400; font-style: italic; color: #5A6B80; }

.nw-cot__opciones { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.nw-cot__opcion {
	display: flex; gap: 14px; align-items: flex-start; padding: 20px; min-height: 96px; box-sizing: border-box;
	border: 1.5px solid var(--c-borde); border-radius: 12px; cursor: pointer; background: #fff;
	transition: border-color .15s, background .15s;
}
.nw-cot__opcion:hover { border-color: #8A97A8; }
.nw-cot__opcion:has(input:checked) { border: 2px solid var(--c-acento); background: #EEF6F8; }
.nw-cot__opcion:has(input:focus-visible) { outline: 3px solid rgba(14, 122, 132, .35); outline-offset: 2px; }
.nw-cot__opcion input { accent-color: var(--c-acento); width: 18px; height: 18px; margin: 2px 0 0; flex: none; }
.nw-cot__opcion-texto { display: flex; flex-direction: column; gap: 6px; }
.nw-cot__opcion-texto strong { font-size: 17px; font-weight: 600; color: var(--c-marino); line-height: 1.3; }
.nw-cot__opcion-texto small { font-size: 13px; color: #5A6B80; line-height: 1.45; }

.nw-cot__campos { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.nw-cot__campos label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; color: var(--c-marino); }
.nw-cot__ancho { grid-column: 1 / -1; }
.nw-cot__campos input, .nw-cot__campos textarea {
	font: inherit; font-weight: 400; font-size: 16px; padding: 13px 14px; border: 1.5px solid #C9D1DA; border-radius: 10px;
	background: #fff; color: var(--c-marino);
}
.nw-cot__campos input:focus, .nw-cot__campos textarea:focus { outline: none; border-color: var(--c-acento); box-shadow: 0 0 0 3px rgba(14, 122, 132, .2); }
.nw-cot__consentimiento { display: flex; gap: 10px; align-items: flex-start; margin-top: 16px; font-size: 14px; color: #3B4C63; line-height: 1.5; }
.nw-cot__consentimiento input { accent-color: var(--c-acento); width: 18px; height: 18px; margin-top: 2px; }
.nw-cot__trampa { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.nw-cot__error { margin: 0; padding: 12px 14px; border-radius: 10px; background: #FDECEC; color: #8A1C1C; font-size: 15px; }

.nw-cot__acciones { display: flex; justify-content: space-between; align-items: center; gap: 12px; border-top: 1px solid #E3E8EE; padding-top: 20px; }
.nw-cot__atras { font: inherit; font-size: 16px; font-weight: 600; color: #3B4C63; background: none; border: 0; padding: 12px 8px; cursor: pointer; min-height: 48px; }
.nw-cot__siguiente, .nw-cot__enviar {
	margin-left: auto; font: inherit; font-size: 16px; font-weight: 600; color: #fff; background: var(--c-acento);
	border: 0; border-radius: 999px; padding: 14px 28px; min-height: 48px; cursor: pointer;
}
.nw-cot__siguiente:hover, .nw-cot__enviar:hover { background: var(--c-marino); }
.nw-cot__enviar:disabled { opacity: .6; cursor: wait; }

.nw-cot__listo { text-align: center; padding: 32px 0; }
.nw-cot__listo h3 { margin: 0 0 10px; font-size: 28px; color: var(--c-marino); }
.nw-cot__listo p { margin: 0; color: #3B4C63; }
