/* assets/css/wizard.css */
.wizard-container {
    max-width: 800px;
    margin: 40px auto;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    overflow: hidden;
    padding-bottom: 30px;
}

/* Barra de Progreso */
.wizard-progress {
    display: flex;
    justify-content: space-between;
    padding: 30px 40px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}
.step-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    flex: 1;
    z-index: 1;
}
.step-indicator:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 15px;
    left: 50%;
    width: 100%;
    height: 3px;
    background: #e2e8f0;
    z-index: -1;
}
.step-number {
    width: 35px;
    height: 35px;
    background: #e2e8f0;
    color: #64748b;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin-bottom: 5px;
    transition: all 0.3s;
}
.step-indicator.active .step-number {
    background: var(--primary-blue);
    color: white;
}
.step-indicator.completed .step-number {
    background: #22c55e;
    color: white;
}
.step-title {
    font-size: 0.8rem;
    font-weight: 600;
    color: #64748b;
}

/* Pasos del Formulario */
.wizard-step {
    display: none; /* Ocultos por defecto */
    padding: 30px 40px;
    animation: fadeIn 0.5s;
}
.wizard-step.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Inputs y Grids */
.form-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.form-grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 15px;
}

/* Checkboxes bonitos (Tarjetas) */
.checkbox-card {
    position: relative;
}
.checkbox-card input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}
.checkbox-card label {
    display: block;
    padding: 15px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    text-align: center;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
    background: #fff;
}
.checkbox-card input:checked + label {
    border-color: var(--primary-blue);
    background-color: #f0f9ff;
    color: var(--primary-blue);
}

/* Sección Logística (Tarjetas grandes) */
.logistics-option {
    display: flex;
    gap: 15px;
    padding: 20px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    margin-bottom: 15px;
    cursor: pointer;
    transition: 0.2s;
}
.logistics-option:hover { border-color: #cbd5e1; }
.logistics-option input:checked + .logistics-content { color: var(--primary-blue); }
.logistics-option input:checked ~ .logistics-price { font-weight: bold; color: var(--primary-blue); }
/* El input radio oculto */
.logistics-option input { margin-top: 5px; }

/* Botones de Navegación */
.wizard-actions {
    display: flex;
    justify-content: space-between;
    padding: 20px 40px 0;
    margin-top: 20px;
    border-top: 1px solid #f1f5f9;
}
.btn-prev {
    background: #e2e8f0;
    color: #475569;
}
.btn-next {
    background: var(--primary-blue);
    color: white;
}
.btn-finish {
    background: #22c55e;
    color: white;
}

/* Ocultar botones según necesidad */
.hidden { display: none !important; }

/* Responsividad */
@media (max-width: 768px) {
    .wizard-container { margin: 20px 10px; }
    .wizard-progress { padding: 20px 10px; }
    .step-title { display: none; } /* Ocultar textos en móvil en la barra */
    .wizard-step { padding: 20px; }
    .form-grid-2 { grid-template-columns: 1fr; }
    .wizard-actions { padding: 20px; }
}
/* --- VENTANAS MODALES (POP-UPS) --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85); /* Fondo oscuro */
    z-index: 9999;
    display: none; /* Oculto por defecto */
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.show {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: #fff;
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    max-width: 450px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.modal-overlay.show .modal-content {
    transform: translateY(0);
}

.modal-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    display: block;
}

.modal-title {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 10px;
    color: #333;
}

.modal-text {
    font-size: 1rem;
    color: #666;
    margin-bottom: 30px;
    line-height: 1.5;
}

.btn-modal {
    padding: 15px 30px;
    border-radius: 50px;
    border: none;
    font-weight: 700;
    cursor: pointer;
    text-transform: uppercase;
    text-decoration: none;
    display: inline-block;
    width: 100%;
}

.btn-success { background: #10b981; color: white; }
.btn-success:hover { background: #059669; }

.btn-error { background: #ef4444; color: white; }
.btn-error:hover { background: #dc2626; }

/* --- ESTILOS DE LAS VENTANAS MODALES --- */
.modal-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 9999;
    display: none; /* Oculto por defecto */
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.show {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: #fff;
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    max-width: 450px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.modal-overlay.show .modal-content {
    transform: translateY(0);
}

.modal-icon { font-size: 4rem; display: block; margin-bottom: 20px; }
.modal-title { font-size: 1.8rem; font-weight: 800; color: #333; margin-bottom: 10px; }
.modal-text { font-size: 1rem; color: #666; margin-bottom: 30px; }

.btn-modal {
    padding: 15px 30px;
    border-radius: 50px;
    border: none;
    font-weight: 700;
    cursor: pointer;
    text-transform: uppercase;
    text-decoration: none;
    display: inline-block;
    width: 100%;
}

.btn-success { background: #10b981; color: white; }
.btn-error { background: #ef4444; color: white; }