/* Preregistro por etapas (2026-09-24) */
#preregistro [hidden] { display: none !important; }
.pre-pasos { display: flex; gap: 8px; list-style: none; padding: 0; margin: 0 0 28px; }
.pre-paso { flex: 1; text-align: center; padding: 10px 6px; border-radius: 6px; background: #edf5ff; color: #818992; font-size: 14px; }
.pre-paso span { display: block; font-weight: 700; font-size: 16px; }
.pre-paso-actual { background: #13c4a1; color: #fff; }
.pre-paso-hecho { background: #d6f3ec; color: #0b7d67; }
.pre-mensaje { margin-bottom: 20px; padding: 12px 16px; border-radius: 6px; }
.pre-mensaje-error { background: #fdecea; color: #a12622; }
.pre-mensaje-ok { background: #e6f4ea; color: #1e6b34; }
.pre-honeypot { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }
#preregistro select.form-control { display: block; width: 100%; }
#preregistro .pre-acciones { display: flex; gap: 12px; margin-top: 10px; flex-wrap: wrap; }
#preregistro .pre-caja { margin-top: 28px; padding: 12px 16px; border: 1px solid #ddd; border-radius: 6px; }
#preregistro .pre-aviso { padding: 14px 18px; border-radius: 6px; background: #edf5ff; color: #0b7d67; }
#preregistro .pre-google { margin-bottom: 20px; text-align: center; }
#preregistro .pre-o { margin: 12px 0; text-align: center; color: #818992; }
@media (max-width: 575px) { .pre-paso { font-size: 12px; } }

/* Boton "Borrar solicitud y empezar una nueva": separado del resto y en rojo (accion destructiva). */
#preregistro .pre-nuevo-bloque { margin-top: 56px; padding-top: 26px; border-top: 1px solid #e3ebf3; text-align: center; }
#preregistro #pre-nuevo { background-color: #dc3545; color: #fff; }
#preregistro #pre-nuevo::before, #preregistro #pre-nuevo::after { background: #a71d2a; }
#preregistro #pre-nuevo:disabled { opacity: .6; cursor: wait; }

/* Cotizador en vivo (columna derecha; en pantallas chicas va arriba y se queda pegado) */
.pre-cotizador { position: sticky; top: 90px; padding: 18px 20px; border: 1px solid #d6f3ec; border-radius: 10px; background: #f6fcfa; margin-bottom: 24px; }
.pre-cotizador h5 { margin: 0 0 10px; font-size: 18px; }
.pre-cot-tabla { width: 100%; border-collapse: collapse; font-size: 14px; }
.pre-cot-tabla td { padding: 7px 0; border-bottom: 1px solid #e3ebf3; vertical-align: top; }
.pre-cot-tabla td:last-child { text-align: right; white-space: nowrap; padding-left: 10px; }
.pre-cot-total { display: flex; justify-content: space-between; align-items: baseline; margin-top: 12px; font-size: 16px; }
.pre-cot-total strong { font-size: 24px; color: #0b7d67; }
.pre-cot-nota { margin: 10px 0 0; font-size: 12px; color: #818992; }
@media (max-width: 991px) {
	.pre-cotizador { top: 0; z-index: 30; padding: 10px 14px; margin-bottom: 16px; box-shadow: 0 4px 14px rgba(0, 0, 0, .08); }
	.pre-cotizador h5, .pre-cot-nota { display: none; }
	.pre-cot-tabla { font-size: 13px; }
	.pre-cot-total { margin-top: 6px; }
	.pre-cot-total strong { font-size: 20px; }
}
.pre-cot-pago { margin: 8px 0 0; padding: 8px 10px; border-radius: 6px; background: #edf5ff; color: #0b7d67; font-size: 13px; }
.pre-cot-tabla small { display: block; color: #818992; font-size: 12px; }
.pre-cot-tabla tr.pre-subtotal td { font-weight: 700; background: #edf5ff; }
.pre-formas-pago { display: grid; gap: 10px; }
.pre-radio { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border: 1px solid #d6e3ea; border-radius: 8px; cursor: pointer; margin: 0; }
.pre-radio input { margin-top: 5px; }
.pre-radio small { color: #818992; }
.pre-radio:has(input:checked) { border-color: #13c4a1; background: #f6fcfa; }

/* Confirmacion de pago (2026-09-24) */
.pre-confirmacion { text-align: center; }
.pre-confirmacion > * { text-align: left; }
.pre-confirmacion .pre-confirmacion-icono { width: 64px; height: 64px; margin: 0 auto 12px; border-radius: 50%; background: #13c4a1; color: #fff; font-size: 34px; line-height: 64px; text-align: center; }
.pre-confirmacion > h3, .pre-confirmacion > .pre-confirmacion-titulo, .pre-confirmacion > p.muted:first-of-type { text-align: center; }
.pre-pasos-tienda { list-style: none; margin: 22px 0; padding: 0; }
.pre-pasos-tienda li { position: relative; padding: 0 0 16px 42px; color: #7b8794; }
.pre-pasos-tienda li::before { content: ''; position: absolute; left: 0; top: 0; width: 26px; height: 26px; border-radius: 50%; border: 2px solid #cfd8e3; background: #fff; box-sizing: border-box; }
.pre-pasos-tienda li strong { display: block; color: #3d4650; }
.pre-pasos-tienda li span { font-size: 14px; }
.pre-pasos-tienda li.hecho::before { background: #13c4a1; border-color: #13c4a1; }
.pre-pasos-tienda li.actual::before { border-color: #13c4a1; box-shadow: 0 0 0 4px rgba(19,196,161,.2); }
.pre-pasos-tienda li.hecho strong, .pre-pasos-tienda li.actual strong { color: #0b7d67; }

/* Cotizacion (etapa 4): el detalle de cada renglon va debajo del concepto, y los botones quedan en una fila, del mismo alto y ancho. 2026-09-25 */
#preregistro .pre-cot-tabla-grande small { display: block; color: #818992; font-size: 13px; font-weight: 400; margin-top: 3px; }
/* Etapa 4: "Pagar" en una fila propia, grande y con el logo; debajo, los dos botones secundarios del mismo ancho y alto. */
#preregistro .pre-acciones.pre-acciones-cotizacion { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: stretch; }
#preregistro .pre-acciones-cotizacion .btn { display: flex; align-items: center; justify-content: center; text-align: center; min-height: 56px; margin: 0; padding: 10px 16px; font-size: 15px; line-height: 1.25; box-sizing: border-box; white-space: normal; overflow-wrap: anywhere; letter-spacing: 0; }
#preregistro .pre-acciones-cotizacion #pre-pagar { grid-column: 1 / -1; order: -1; min-height: 66px; font-size: 18px; gap: 12px; }
#preregistro .pre-acciones-cotizacion .btn[hidden] { display: none; }
@media (max-width: 575px) { #preregistro .pre-acciones.pre-acciones-cotizacion { grid-template-columns: 1fr; } #preregistro .pre-acciones-cotizacion #pre-pagar { font-size: 16px; } }
