/* css/wizard.css */
/* "PASO FIRME" v21.5: Estilos del Wizard de Cotización */

/* Override del cuerpo para fondo SaaS */
body.wizard-mode {
    background-color: #f8f9fc;
    font-family: 'Inter', system-ui, sans-serif;
}

/* Contenedor Principal */
.wizard-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 40px -10px rgba(0,0,0,0.08);
    border: 1px solid #edf2f7;
    padding: 40px;
    margin-top: 20px;
}

/* Barra de Progreso */
.wizard-progress-bar {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
    position: relative;
}

.wizard-progress-bar::before {
    content: '';
    position: absolute;
    top: 15px;
    left: 0;
    right: 0;
    height: 3px;
    background: #e2e8f0;
    z-index: 0;
    border-radius: 10px;
}

.wizard-progress-bar .step {
    width: 35px;
    height: 35px;
    background: white;
    border: 3px solid #e2e8f0;
    border-radius: 50%;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #94a3b8;
    transition: all 0.3s;
    position: relative;
    cursor: default;
}

.wizard-progress-bar .step.active {
    border-color: #3b82f6;
    background: #3b82f6;
    color: white;
    box-shadow: 0 0 0 5px rgba(59, 130, 246, 0.15);
}

.wizard-progress-bar .step strong {
    position: absolute;
    top: 40px;
    width: 120px;
    text-align: center;
    font-size: 0.75rem;
    color: #64748b;
    font-weight: 600;
    text-transform: uppercase;
    transition: opacity 0.3s;
}

.wizard-progress-bar .step.active strong {
    color: #3b82f6;
}

/* Tarjetas de Selección (Grid) */
.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
    margin-bottom: 25px;
}

.service-card {
    background: white;
    border: 2px solid #f1f5f9;
    border-radius: 16px;
    padding: 20px 10px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.service-card:hover {
    border-color: #cbd5e1;
    transform: translateY(-3px);
}

.service-card.selected {
    border-color: #3b82f6;
    background-color: #eff6ff;
    color: #1e3a8a;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
}

.service-card i {
    font-size: 2rem;
    margin-bottom: 10px;
    color: #64748b;
    transition: color 0.2s;
}

.service-card.selected i {
    color: #3b82f6;
}

.service-card h5 {
    font-size: 0.9rem;
    font-weight: 600;
    margin: 0;
}

/* Inputs Ocultos (Accesibilidad visual) */
.service-card input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

/* Pasos y Animaciones */
.wizard-step {
    display: none;
    animation: fadeIn 0.4s ease;
}

.wizard-step.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Elementos de UI Específicos */
.bg-blue-light {
    background-color: #eff6ff !important;
}

/* Input "Otro" Expandible */
#otro_giro_container {
    transition: all 0.3s;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    margin-top: 0;
}

#otro_giro_container.show {
    opacity: 1;
    max-height: 260px;
    margin-top: 15px;
}

/* Autocomplete de Industrias */
#industry_suggestions {
    max-height: 220px;
    overflow-y: auto;
    border-radius: 0.75rem;
    margin-top: 6px;
    border: 1px solid #e2e8f0;
    background: white;
}

#industry_suggestions .list-group-item {
    cursor: pointer;
    font-size: 0.85rem;
    border: none;
    border-bottom: 1px solid #f1f5f9;
}

#industry_suggestions .list-group-item:hover {
    background-color: #f8fafc;
}

/* Botones Personalizados */
.btn-saas-primary {
    background-color: #0f172a;
    color: white;
    border: none;
    transition: background-color 0.2s;
}

.btn-saas-primary:hover {
    background-color: #1e293b;
    color: white;
}

/* Recaptcha */
.g-recaptcha-container {
    display: flex;
    justify-content: center;
    margin-top: 20px;
    margin-bottom: 10px;
}

.recaptcha-error {
    color: #dc3545;
    font-size: 0.875em;
    text-align: center;
    display: none;
    margin-top: 5px;
}