/* ========== AUTODIAGNÓSTICO DIGITAL ========== */

#autodiagnostico-wrapper {
    max-width: 800px;
    margin: 60px auto;
    padding: 0 20px;
}

.diagnostico-paso {
    display: none;
}

.diagnostico-paso.activo {
    display: block;
    animation: fadeIn 0.4s ease;
}

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

.diagnostico-card {
    background: white;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.diagnostico-progreso {
    background: #f0f0f0;
    border-radius: 10px;
    height: 30px;
    margin-bottom: 30px;
    overflow: visible;
    position: relative;
}

.progreso-bar {
    background: linear-gradient(90deg, #244e9a 0%, #47a5dc 100%);
    height: 100%;
    transition: width 0.4s ease;
    border-radius: 10px;
}

.progreso-texto {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #244e9a;
    font-weight: 700;
    font-size: 14px;
    z-index: 10;
    white-space: nowrap;
}

.diagnostico-titulo {
    font-size: 32px;
    font-weight: 700;
    color: #244e9a;
    margin: 0 0 30px 0;
}

.diagnostico-pregunta {
    margin-bottom: 25px;
}

.diagnostico-pregunta label {
    display: block;
    font-size: 16px;
    font-weight: 600;
    color: #1f1f1f;
    margin-bottom: 10px;
}

.diagnostico-pregunta input[type="text"],
.diagnostico-pregunta input[type="email"],
.diagnostico-pregunta input[type="number"],
.diagnostico-pregunta input[type="tel"],
.diagnostico-pregunta select,
.diagnostico-pregunta textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 15px;
    transition: all 0.3s ease;
    font-family: inherit;
}

.diagnostico-pregunta input:focus,
.diagnostico-pregunta select:focus,
.diagnostico-pregunta textarea:focus {
    outline: none;
    border-color: #244e9a;
    box-shadow: 0 0 0 3px rgba(36, 78, 154, 0.1);
}

.diagnostico-pregunta textarea {
    min-height: 100px;
    resize: vertical;
}

.diagnostico-checkboxes {
    margin-top: 10px;
}

.diagnostico-checkbox-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
    padding: 10px;
    border-radius: 6px;
    transition: background 0.2s ease;
}

.diagnostico-checkbox-item:hover {
    background: #f8f9fb;
}

.diagnostico-checkbox-item input[type="checkbox"] {
    margin-top: 3px;
    width: 18px;
    height: 18px;
    cursor: pointer;
    flex-shrink: 0;
}

.diagnostico-checkbox-item label {
    font-size: 15px;
    font-weight: 400;
    color: #1f1f1f;
    cursor: pointer;
    margin: 0;
}

.diagnostico-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 25px;
}

.diagnostico-checkbox input[type="checkbox"] {
    margin-top: 4px;
    width: 18px;
    height: 18px;
    cursor: pointer;
    flex-shrink: 0;
}

.diagnostico-checkbox label {
    font-size: 14px;
    color: #666;
    cursor: pointer;
    font-weight: 400;
}

.diagnostico-checkbox label a {
    color: #244e9a;
    text-decoration: none;
    font-weight: 600;
}

.diagnostico-checkbox label a:hover {
    text-decoration: underline;
}

.btn-continuar,
.btn-enviar {
    background: linear-gradient(135deg, #244e9a 0%, #47a5dc 100%);
    color: white;
    border: none;
    padding: 15px 40px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 20px;
}

.btn-continuar:hover,
.btn-enviar:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(36, 78, 154, 0.3);
}

.btn-continuar:disabled,
.btn-enviar:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

#diagnostico-resultado {
    max-width: 800px;
    margin: 30px auto;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
}

#diagnostico-resultado.exito {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

#diagnostico-resultado.error {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

#diagnostico-resultado h3 {
    margin: 0 0 10px 0;
    font-size: 24px;
}

#diagnostico-resultado p {
    margin: 0;
    font-size: 16px;
}

@media (max-width: 768px) {
    #autodiagnostico-wrapper {
        margin: 30px auto;
    }
    
    .diagnostico-card {
        padding: 30px 20px;
    }
    
    .diagnostico-titulo {
        font-size: 24px;
    }
    
    .progreso-texto {
        font-size: 12px;
    }
    
    .btn-continuar,
    .btn-enviar {
        width: 100%;
    }
}