/* Cotiza Fácil — estilos del cotizador
   Diseño deliberadamente sobrio: este formulario vive dentro de tu
   sitio existente, así que hereda tipografía del tema y solo aporta
   estructura, espaciado y estados claros (cargando / error / éxito). */

.cf-cotizador {
	max-width: 640px;
	margin: 0 auto;
	font-size: 16px;
}

.cf-form-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
	margin-bottom: 20px;
}

.cf-field {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.cf-field label {
	font-size: 0.85em;
	font-weight: 600;
	color: #333;
}

.cf-field input {
	padding: 10px 12px;
	border: 1px solid #ccc;
	border-radius: 6px;
	font-size: 1em;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.cf-field input:focus {
	outline: none;
	border-color: #2563eb;
	box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.cf-field input:invalid:not(:placeholder-shown) {
	border-color: #dc2626;
}

.cf-cp-info {
	font-size: 0.82em;
	color: #16a34a;
	min-height: 1.1em;
}

.cf-cp-info--error {
	color: #dc2626;
}

.cf-cp-info--cargando {
	color: #888;
}

.cf-btn-submit {
	width: 100%;
	padding: 14px 20px;
	background: #2563eb;
	color: #fff;
	border: none;
	border-radius: 6px;
	font-size: 1.05em;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.15s ease;
}

.cf-btn-submit:hover:not(:disabled) {
	background: #1d4ed8;
}

.cf-btn-submit:disabled {
	background: #93c5fd;
	cursor: wait;
}

.cf-resultados {
	margin-top: 24px;
}

.cf-peso-vivo {
	font-size: 0.9em;
	color: #555;
	margin-bottom: 16px;
	padding: 10px 14px;
	background: #f3f4f6;
	border-radius: 6px;
	min-height: 1.2em;
}

.cf-embalaje-campo {
	margin-bottom: 20px;
	padding: 12px 14px;
	background: #f9fafb;
	border: 1px solid #e5e7eb;
	border-radius: 6px;
}

.cf-embalaje-label {
	display: flex;
	align-items: center;
	gap: 8px;
	font-weight: 600;
	font-size: 0.95em;
	cursor: pointer;
}

.cf-embalaje-label input[type="checkbox"] {
	width: 18px;
	height: 18px;
	flex-shrink: 0;
	cursor: pointer;
}

.cf-embalaje-nota {
	margin: 6px 0 0 26px;
	font-size: 0.8em;
	color: #6b7280;
}

.cf-embalaje-advertencia {
	font-size: 0.85em;
	color: #92400e;
	background: #fffbeb;
	border: 1px solid #fde68a;
	padding: 10px 14px;
	border-radius: 6px;
	margin-bottom: 16px;
}

.cf-opcion {
	padding: 16px;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	margin-bottom: 12px;
}

.cf-opcion-top {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
}

.cf-opcion-info {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.cf-opcion-paqueteria {
	font-weight: 700;
	font-size: 1.05em;
}

.cf-opcion-detalle {
	font-size: 0.85em;
	color: #666;
}

.cf-opcion-precio {
	font-size: 1.4em;
	font-weight: 700;
	color: #16a34a;
	white-space: nowrap;
}

.cf-opcion-desglose {
	margin-top: 12px;
	padding-top: 12px;
	border-top: 1px dashed #e5e7eb;
}

.cf-opcion-desglose-linea {
	display: flex;
	justify-content: space-between;
	font-size: 0.9em;
	color: #555;
	padding: 2px 0;
}

.cf-opcion-desglose-total {
	font-weight: 700;
	color: #111;
	font-size: 1em;
	margin-top: 4px;
}

.cf-btn-whatsapp {
	display: block;
	margin-top: 12px;
	padding: 10px 16px;
	background: #25d366;
	color: #fff;
	text-align: center;
	text-decoration: none;
	border-radius: 6px;
	font-weight: 600;
	font-size: 0.9em;
	transition: background 0.15s ease;
}

.cf-btn-whatsapp:hover {
	background: #1ebe5b;
}

.cf-mensaje-error {
	padding: 14px;
	background: #fef2f2;
	border: 1px solid #fecaca;
	color: #991b1b;
	border-radius: 6px;
}

.cf-mensaje-cargando {
	padding: 14px;
	color: #555;
	text-align: center;
}

@media (max-width: 520px) {
	.cf-form-grid {
		grid-template-columns: 1fr;
	}

	.cf-opcion-top {
		flex-direction: column;
		align-items: flex-start;
	}

	.cf-opcion-precio {
		font-size: 1.6em;
	}
}
